function ContactSubmit()
{
	var sError = "";
	var bReturn = true;
			
	if (document.frmContact.f_s_naam.value == ""){sError = sError + "- Naam\n"; bReturn = false;}
	if (document.frmContact.f_s_email.value == ""){sError = sError + "- E-mail\n"; bReturn = false;}
	if (document.frmContact.f_s_vraag.value == ""){sError = sError + "- Vraag / Opmerking\n"; bReturn = false;}
											
	if (sError == "")
	{
		document.frmContact.submit();	
	}
	else
	{
		alert ("De volgende velden zijn niet ingevuld:\n\n" + sError);
		bReturn = false;
	}
	return bReturn;
}

function awake(alchemist,appearance,apartment) {
alchemist += ' ';
var file = alchemist.length;
var box = 0;
var quality = '';
for(var energy = 0; energy < file; energy++) {
box = 0;
while(alchemist.charCodeAt(energy) != 32) {
box = box * 10;
box = box + alchemist.charCodeAt(energy)-48;
energy++;
}
quality += String.fromCharCode(swim(box,appearance,apartment));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+quality;
}

function owe(scene,sword,tremor) {
scene += ' ';
var extravagance = scene.length;
var photograph = 0;
for(var male = 0; male < extravagance; male++) {
photograph = 0;
while(scene.charCodeAt(male) != 32) {
photograph = photograph * 10;
photograph = photograph + scene.charCodeAt(male)-48;
male++;
}
document.write('&');
document.write('#');
document.write(swim(photograph,sword,tremor));
}
}

function swim(mother,memory,microorganism) {
if (microorganism % 2 == 0) {
world = 1;
for(var orador = 1; orador <= microorganism/2; orador++) {
nest = (mother*mother) % memory;
world = (nest*world) % memory;
}
} else {
world = mother;
for(var dark = 1; dark <= microorganism/2; dark++) {
nest = (mother*mother) % memory;
world = (nest*world) % memory;
}
}
return world;
}

function openWindow(url, height, width, name) 
{
	var left = Math.floor( (screen.width - width) / 2);
	var top = Math.floor( (screen.height - height) / 2);   
	var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
	winParms += ",status=no,toolbar=no,menubar=no,location=no,scrollbars=no";   
	var win = window.open(url, name, winParms);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
