function changeprice (strselect) {
  opt_id = strselect.value;
  
  if(document.getElementById) {
    if (document.getElementById('prijs')) {
      document.getElementById('prijs').innerHTML = prijsopties[opt_id]['prijs'];
    }
    if (document.getElementById('prijsinclbtw')) {
      document.getElementById('prijsinclbtw').innerHTML = prijsopties[opt_id]['prijsinclbtw'];
    }
  }
  else if(document.all) {
    if (document.all['prijsinclbtw']) {
      document.all['prijs'].innerHTML = prijsopties[opt_id]['prijs'];
    }
    
    if (document.all['prijsinclbtw']) {
      document.all['prijsinclbtw'].innerHTML = prijsopties[opt_id]['prijsinclbtw'];
    }
  }
  else {
    if (document.layers['prijs']) {
      with(document.layers['prijs'].document){write(prijsopties[opt_id]['prijs']);close();}
    }
    if (document.layers['prijsinclbtw']) {
      with(document.layers['prijsinclbtw'].document){write(prijsopties[opt_id]['prijsinclbtw']);close();}
    }
  }
  
}

function openwin(URL, wdt, hgt, windowname){
  window.open(URL, windowname, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1');
}

function vergroten(imgName,imgWidth,imgHeight) {
    popup = window.open( "" ,'_blank','Height=' + imgHeight + ',Width=' + imgWidth + ',scrollbars=no,resize=no,left=0,top=0');
    popup.document.write('<html><head><title>' + imgName + '</title>');
    popup.document.write('</head>');
    popup.document.write('<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
    popup.document.write('<a href="./products/' + imgName + '" target="blank"><img src="./products/img/' + imgName + '" border="0"></a>');
    popup.document.write('</body></html>');
    popup.document.close()
}
function meerfotos(id,imgName,imgWidth,imgHeight) {
    popup = window.open( "" ,'_blank','Height=' + imgHeight + ',Width=' + imgWidth + ',scrollbars=no,resize=no,left=0,top=0');
    popup.document.write('<html><head><title>' + imgName + '</title>');
    popup.document.write('</head>');
    popup.document.write('<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
    popup.document.write('<table cellspacing=0 cellpadding=0 border=0 width="' + imgWidth + '" height="' + imgHeight + '">');
    popup.document.write('<tr><td>');
    popup.document.write('<a href="./products/' + imgName + '" target="blank"><img src="./products/img/' + imgName + '" border="0"></a>');
    popup.document.write('</td></tr><tr><td align="center">');
    popup.document.write('<a href="./fotobrowse.php?id=' + id + '&positie=last"><img src="./img/left.gif" width="16" height="16" alt="Vorige Foto" border="0"></a>&nbsp;<a href="./products/'+imgName+'" target="blank"><img src="./img/vergrootglas.jpg" width="20" height="21" alt="Vergroten" border="0"></a>&nbsp;<a href="./fotobrowse.php?id=' + id + '&positie=2"><img src="./img/right.gif" width="16" height="16" alt="Volgende Foto" border="0"></a>');
    popup.document.write('</td></tr></table>');
    popup.document.write('</body></html>');
    popup.document.close()
}
