var win=null;
function open_popupscreen(mypage,myname,w,h,pos,infocus){
	if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
	win.focus();
}

function open_renteberekening() {
	// Open een nieuw window om de algemene voorwaarden te laten zien.
	filenaam="calc.php";
	t	= (screen.height / 2) - 240;
	l	= (screen.width / 2)- 320;
	overlegal = window.open(filenaam,'newwin','scrollbars=yes,resizable=yes,width=640,height=480,top='+t+',left='+l+'');
	overlegal.opener=self
	overlegal.focus()
}

function open_euroc() {
	// Open een nieuw window om de algemene voorwaarden te laten zien.
	filenaam="euroconverter.php";
	t	= (screen.height / 2) - 200;
	l	= (screen.width / 2)- 200;
	euroconverter = window.open(filenaam,'newwin','scrollbars=yes,resizable=yes,width=400,height=280,top='+t+',left='+l+'');
	euroconverter.opener=self
	euroconverter.focus()
}

function showMail() {
	t	= (screen.height / 2) - 275;
	l	= (screen.width / 2)- 375;
	mailWin = window.open('webmail.php','newwin','scrollbars=yes,resizable=yes,menu=yes,width=750,height=550,top='+t+',left='+l+'');
	mailWin.opener=self
	mailWin.focus()
}

