function popup(myURL) {
	var day = new Date();
	var id = day.getTime();
	eval("page" + id + " = window.open('" + myURL + "', '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=600,height=550');");
};

function popupB(myURL) {
	var day = new Date();
	var id = day.getTime();
	eval("page" + id + " = window.open('" + myURL + "', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=550');");
};

function toggleform(bar,e) {
	e.style.display="none";
	var foo= document.getElementById(bar);
	foo.style.display="block";
};

function Verzend(Formulier) {
	document.forms[Formulier].submit();
};

function BevestigFormSubmit(Vraag) {
	if (confirm(Vraag)) {
		return true;
	} else {
		return false;
	};
};

function LokaalInit() {

	var winW = 600;
	var winH = 340;
	var defLW = 0;
	var defLH = 0;

	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		winW = window.innerWidth;
		winH = window.innerHeight; }
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			winW = document.documentElement.clientWidth;
			winH = document.documentElement.clientHeight; }
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			winW = document.body.clientWidth;
			winH = document.body.clientHeight; };

};

