
function OpenTermsAndConditions(){
	pURL = "TermsAndConditions.asp";
	NewWindow(pURL, "NWTPopup", 800, 600, 'yes');
}
function OpenPrivacyPolicy(){
	pURL = "PrivacyPolicy.asp";
	NewWindow(pURL, "NWTPopup", 800, 600, 'yes');
}


function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function checkEmailAddress(aEmailAddress){
	var at = aEmailAddress.indexOf("@", 0); 	// Er moet een @-teken in voor komen.
	var punt = aEmailAddress.indexOf(".", at);	// Na het @-teken moet er een punt komen.
	
//	at = aEmailAddress.indexOf("@", 0);
//	punt = aEmailAddress.indexOf(".", at);
	
	if ((at == -1) || (punt == -1)){
		return false;
	} 
	else{
		return true;
	}
}