// JavaScript Document

function openpop(f,n,w,h,i){
	x=(screen.availWidth-w) / 2; y=((screen.availHeight-h) / 2)-10;
	var BEpop=window.open(f,n,'width='+w+',height='+h+','+i+',top='+y+',left='+x+',screenY='+y+',screenX='+x);
	if(BEpop) { BEpop.focus();
	}else{ alert("Popups worden tegengehouden door uw browser.");}
}

function showinf(id){
	FindIt("infdiv"+id).style.visibility = "visible";
}
		
function hideinf(id){
  FindIt("infdiv"+id).style.visibility = "hidden";
}



function showDictionary(DIVid,dir){
	if(dir==1){
		FindIt(DIVid).style.display = "inline";
	}else{
		FindIt(DIVid).style.display = "none";
	}
}


// the money function ------------------------------------------		
		function money(Mnum)
			{
				Mnum = Math.round(Mnum*100)/100;
				Mnum = ''+Mnum+'';
								
				if(Mnum == '' || Mnum == '0') { Mnum = '0,00'; }else{
				Mafter = Mnum.split('.'); 
				
				MCount = Mafter.length
			
				if(MCount == 2)
					{
						Mlength = Mafter[1].length;
						if (Mlength == 1)
						{
							Mnum = Mnum+'0';	
						}
					}else{
						Mnum = Mnum+'.00';
					}

				Mnum = Mnum.replace('.',',');
				}
				
				return Mnum;
			}
 // end money function ------------------------------------------
 
 
 function preloadImages() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
 