var ww = 560;
var wh = 540;
var l = Math.round((screen.width / 2) - (ww / 2));
var t = Math.round((screen.height / 2) - (wh / 2));
var schrijf = "width=" + ww + ",height=" + wh + ",left=" + l + ",top=" + t + ",scrollbars=yes,status=no";


var ww = 560;
var wh = 460;
var l = Math.round((screen.width / 2) - (ww / 2));
var t = Math.round((screen.height / 2) - (wh / 2));
var addbirth = "width=" + ww + ",height=" + wh + ",left=" + l + ",top=" + t + ",scrollbars=yes,status=no";

var ww = 560;
var wh = 370;
var l = Math.round((screen.width / 2) - (ww / 2));
var t = Math.round((screen.height / 2) - (wh / 2));
var newpass = "width=" + ww + ",height=" + wh + ",left=" + l + ",top=" + t + ",scrollbars=yes,status=no";

function openPopup(url,name,p) 
{
	window.open(url,name,p);
}


function chkForm()
{
	var errors = "";
	
	if ((document.plaatsform.wie.value == "--"))	
	{
		errors +=  "-> Wie ontbreekt.\n";
	}
	
	if ((document.plaatsform.dag.value == ""))	
	{
		errors +=  "-> Geen dag.\n";
	}
	
	if ((document.plaatsform.maand.value == ""))	
	{
		errors +=  "-> Geen maand.\n";
	}
	
	if ((document.plaatsform.text.value == ""))	
	{
		errors +=  "-> Geen omschrijving.\n";
	}
	
	if(errors)
	{
		errors = "" + errors;
		alert("\n"+errors+"\n");
		errors = "";
		return false;
	} 
	else 
	{
		return true;
	}
	    
}


function chkForm2()
{
	var errors = "";
	
	if ((document.addbirthform.wie.value == "--"))	
	{
		errors +=  "-> Wie ontbreekt.\n";
	}
	
	if ((document.addbirthform.forename.value == ""))	
	{
		errors +=  "-> Geen voornaam.\n";
	}
	
	if ((document.addbirthform.surname.value == ""))	
	{
		errors +=  "-> Geen achternaam.\n";
	}
	
	if ((document.addbirthform.dag.value == ""))	
	{
		errors +=  "-> Geen geboortedag.\n";
	}
	
	if ((document.addbirthform.maand.value == ""))	
	{
		errors +=  "-> Geen geboortemaand.\n";
	}
	
	if ((document.addbirthform.jaar.value == ""))	
	{
		errors +=  "-> Geen geboortejaar.\n";
	}
	
	if(errors)
	{
		errors = "" + errors;
		alert("\n"+errors+"\n");
		errors = "";
		return false;
	} 
	else 
	{
		return true;
	}
	    
}




function chkForm2b()
{
	var errors = "";
	
	if ((document.addbirthform2.wie.value == "--"))	
	{
		errors +=  "-> Wie ontbreekt.\n";
	}
	
	if ((document.addbirthform2.forename.value == ""))	
	{
		errors +=  "-> Geen voornaam.\n";
	}

	if ((document.addbirthform2.email.value == ""))	
	{
		errors +=  "-> Geen E-mail adres.\n";
	}
	
	
	if(errors)
	{
		errors = "" + errors;
		alert("\n"+errors+"\n");
		errors = "";
		return false;
	} 
	else 
	{
		return true;
	}
	    
}





function chkForm3()
{
	var errors = "";
	
	if ((document.tipform.wie.value == "--"))	
	{
		errors +=  "-> Wie ontbreekt.\n";
	}
	
	if ((document.tipform.email.value == ""))	
	{
		errors +=  "-> Jouw E-mail ontbreekt.\n";
	}
	
	if ((document.tipform.text.value == ""))	
	{
		errors +=  "-> Geen bericht.\n";
	}
	
	if ((document.tipform.hun_email.value == ""))	
	{
		errors +=  "-> Hun E-mail ontbreekt.\n";
	}
	
	if(errors)
	{
		errors = "" + errors;
		alert("\n"+errors+"\n");
		errors = "";
		return false;
	} 
	else 
	{
		return true;
	}
	    
}




function chkFormInvite()
{
	var errors = "";
	
	if ((document.inviteform.forename.value == ""))	
	{
		errors +=  "-> Geen voornaam.\n";
	}
	
	if ((document.inviteform.surname.value == ""))	
	{
		errors +=  "-> Geen achternaam.\n";
	}
	
	if ((document.inviteform.dag.value == ""))	
	{
		errors +=  "-> Geen geboortedag.\n";
	}
	
	if ((document.inviteform.maand.value == ""))	
	{
		errors +=  "-> Geen geboortemaand.\n";
	}
	
	if ((document.inviteform.jaar.value == ""))	
	{
		errors +=  "-> Geen geboortejaar.\n";
	}
	
	if(errors)
	{
		errors = "" + errors;
		alert("\n"+errors+"\n");
		errors = "";
		return false;
	} 
	else 
	{
		return true;
	}
	    
}






function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval("window.location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function belbios_reserveer(url, target) 
{
	var w = 600;
	var h = 450;

	var l = Math.round((screen.width / 2) - (w / 2));
	var t = Math.round((screen.height / 2) - (h / 2));

	if (target && target.location) 
	{
		target.location.href = url;
	} else 
	{
		window.open(url, "belbios", "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=yes");
	}
}


function belbios_cinema(url, target) 
{
	var w = 400;
	var h = 240;

	var l = Math.round((screen.width / 2) - (w / 2));
	var t = Math.round((screen.height / 2) - (h / 2));

	if (target && target.location) 
	{
		target.location.href = url;
	} else 
	{
		window.open(url, "belbios", "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=yes");
	}

}