<!--
	//globale var client wordt een reference naar de te openen window
	var client=0;
			
	/*Functie sluit het client venster*/
	function sluit() {
		if(client!=0) { //als het client window bestaan heeft
			if(!client.closed) { //en het bestaat nog steeds
				client.close();
			}
		}
	}
			
	/*Functie opent het client venster */
	function openen(url, width, height) {
		var mag_openen=false;
		if(client==0) { 			//als de window nog nooit geopend is
			mag_openen=true; 		//dan mag deze geopend worden
		}
		else {
			if(client.closed) {	//als de window al eens geopend is, maar weer gesloten	
				mag_openen=true;	//dan mag deze geopend worden
			}
			else {
				client.focus(); 	//anders krijgt deze de focus
			}
		}
		if(mag_openen) {			//de window openen 
			var x,y;
			if(screen) {
				x=screen.availWidth/2-width/2;
				y=screen.availHeight/2-height/2;
			}
			else {
				x=window.pageXOffset+ window.outerWidth/2-width/2;
				y=window.pageYOffset+ window.outerHeight/2-height/2;
			}
			client=window.open(url,"client","location=no,menubar=no,toolbar=no,status=no,width="+width+",height="+height+",screenX="+x+",screenY="+y+",top="+y+",left="+x+",scrollbars=no,resizable=yes");
		}
	}	
	
	function wwtoevoegen(form, id, width, height, vlag) {
		var aantal=eval("document."+form+".aantal.value");
		//openen('ww/ww.php?actie=toevoegen&vlag='+vlag+'&id='+id+'&aantal='+aantal,width,height);
		window.location='ww/ww.php?actie=toevoegen&vlag='+vlag+'&id='+id+'&aantal='+aantal;
		eval("document."+form+".aantal.value=1");
	}
	
	function printensluiten(pad) {
		if(document.all) {
			document.all.hide.style.visibility='hidden';
		}
		else {
			document.hide.style.visibility='hidden';
		}
		window.print();
		window.opener.location=pad;
		window.close();
	}
// -->