function openFotoOUD(URL, name, width, height) {
	var winl = (screen.width - width) / 2;
    //var wint = (screen.height - height) / 2-10;
    var wint = 10;
    winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,location=no'
	window.open(URL, name, winprops);
}

    function ss(w){
		window.status=w;return true;
	}
	function cs(){
		window.status='';
	}
	
   function openFoto(mypage, myname, w, h) {
       //var mypage = 'mail.php?aan='+aan;
       var winl = (screen.width - w) / 2;
       var wint = (screen.height - h) / 2;
       winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
       win = window.open(mypage, myname, winprops)
       if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }
   function sluitVenster() {
       window.close("Control");
   }
   
   function foto_upload(URL, name, w, h) {
       var winl = (screen.width - w) / 2;
       var wint = (screen.height - h) / 2;
       winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable'
       win = window.open(URL, name, winprops)
       if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

	   //window.open(URL, name, 'width=' + width + ',height=' + height,'status=yes,location=yes,resize=yes');
   }

   function sendMail(URL) {
       window.open(URL, 'name=emailForm,width=400,height=400')
   }
   
   function NewWindow(mypage, myname, w, h, scroll) {
       //var mypage = 'mail.php?aan='+aan;
       var winl = (screen.width - w) / 2;
       var wint = (screen.height - h) / 2;
       winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
       win = window.open(mypage, myname, winprops)
       if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }
   
   function linkWindow(mypage, myname, w, h, scroll) {
       var winl = 0;
       var wint = 0;
       var w = screen.width-10;
       var h = screen.height-180;
       winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,location=yes,status=yes,menubar=yes,toolbar=yes'
       win = window.open(mypage, myname, winprops)
       if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }

   function openEmail(URL, name, width, height) {
	   window.open(URL, name, 'width=' + width + ',height=' + height);
   }
