function showHoverImg(img){
	document.images['switch'].src=img;
}

function showImage(documentroot,name,width,height,comment) {
	OpenWindow = window.open("","","width="+width+",height="+height+",top=40,left=40,directories=no,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no");
	
	OpenWindow.document.write("<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n");
	OpenWindow.document.write("<html>\n");
	OpenWindow.document.write("<head>\n");
	OpenWindow.document.write("<title>"+comment+"</title>\n");
	OpenWindow.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\n");
	OpenWindow.document.write("<style type='text/css'>\n");
	OpenWindow.document.write("body {\n");
	OpenWindow.document.write("	font-family: verdana, geneva, arial, helvetica, sans-serif;\n");
	OpenWindow.document.write("	font-size: 11px;\n");
	OpenWindow.document.write("	font-style: normal;\n");
	OpenWindow.document.write("	margin: 0;\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write("a.hover_black_bold {\n");
	OpenWindow.document.write("	color: #000000;\n");
	OpenWindow.document.write("	text-decoration: none;\n");
	OpenWindow.document.write("	font-weight: bold;\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write("a:hover.hover_black_bold {\n");
	OpenWindow.document.write("	color: #007091;\n");
	OpenWindow.document.write("	text-decoration: none;\n");
	OpenWindow.document.write("	font-weight: bold;\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write(".image {\n");
	OpenWindow.document.write("	border: 1px solid #898989\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write("</style>\n");
	OpenWindow.document.write("</head>\n");
	OpenWindow.document.write("<body>\n");
	OpenWindow.document.write("<br /><center><b>[ <a href='javascript:self.close();' class='hover_black_bold' title='Sluit dit venster'>sluit venster</a> ]</b><br /><br /><img src='"+documentroot+"/images/upload/"+name+"' class='image' border'0' alt='"+comment+"' /></center>\n");
	OpenWindow.document.write("</body>\n");
	OpenWindow.document.write("</html>\n");
	
	OpenWindow.document.close()
}

function submitCheckout(){
	if(validateForm(document.forms['checkoutform'],false,false,false,false,8)){
		document.forms['checkoutform'].submit();
		return true;
	}else{
		return false;
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
