<!--
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=300,height=465');");
}

function popUpFullScreen(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=1024,height=768');");
}


function popup2(url) {
	var props;
	var Nwindow;
	props = "width=600,height=600,left=0,top=0,location=no,scrollbars=no,status=no,resizable=yes,menubar=no,toolbar=no";
	Nwindow = window.open(url,'site',props);
	Nwindow.focus();
}


function AddListItems(Obj,SourceVal) {
	var SelectTo = eval('document.inschrijving.'+Obj);
	
	ClearallItems(SelectTo);
	if (SourceVal != '') {
		var ObjVals = eval('document.inschrijving.data'+SourceVal);
		var ObjValsArr = ObjVals.value.split('|');

		for (i=0; i<ObjValsArr.length; i++) {
			var ItemArr = ObjValsArr[i].split(';');
			var name = ItemArr[0];
			var ID = ItemArr[1];
			SelectTo.options[SelectTo.options.length]=new Option (name,ID);
		}
	}
}

function ClearallItems(Obj) {
	for (i=Obj.options.length-1;i>0; i--) {
		Obj.options[i] = null;
	}
}

function SwitchMeOLD(obj,classNaam,beeld,beeldurl,txtobj,textkleur,titobj,titelkleur,linkobj,linkkleur,theLinkobj,theLinkobj2,theLinkkleur) {
	//alert(theLinkobj);
	obj.className=classNaam;
	document.getElementById(txtobj).className = textkleur;
	document.getElementById(titobj).className = titelkleur;
	document.getElementById(linkobj).className = linkkleur;
	document.getElementById(theLinkobj).className = theLinkkleur;
	document.getElementById(theLinkobj2).className = theLinkkleur;
	//alert("ok");
	document[beeld].src = beeldurl;
}

function SwitchMe(obj,classNaam) {
	//alert(theLinkobj);
	obj.className=classNaam;
	//document.getElementById(txtobj).className = textkleur;
}
function MoveMe(nr, url) {
	if (nr != '') {
		nrs = nr.split("|");
		document.location = url + '&pcat=;' + nrs[0] + ';' + nrs[1] + ';&part=' + nrs[2];
	}
}
function MoveMe2(url,val) {
	if (val != '') {	
		document.location = url + val;
	}
}
function MoveMe3(url,nr) {
	if (nr != '') {
		nrs = nr.split("|");
		document.location = url + '&pcat=;' + nrs[1] + ';&welkeen=' + nrs[0];
	}
}

//CHECKS

function checkLogin_1(fouttext) {
	var form = document.forms["login_1"];
	var fouten = false;
	var color = "#990000";
	
	if(form.veld1_1.value.length != "") {
		form.veld1_1.style.backgroundColor = "";
	} else {
		form.veld1_1.style.backgroundColor = color;
		fouten = true;
	}
	if(form.veld1_2.value.length != "") {
		form.veld1_2.style.backgroundColor = "";
	} else {
		form.veld1_2.style.backgroundColor = color;
		fouten = true;
	}
	
	if(fouten){
		document.getElementById("error_1").innerHTML = "<FONT color='" + color + "'>" + fouttext + "</FONT>";
	}else{
		form.submit();
	}
}
function checkLogin_2(fouttext) {
	var form = document.forms["login_2"];
	var fouten = false;
	var color = "#990000";
	
	if(form.veld2_1.value.length != "") {
		form.veld2_1.style.backgroundColor = "";
	} else {
		form.veld2_1.style.backgroundColor = color;
		fouten = true;
	}
	if(form.veld2_2.value.length != "") {
		form.veld2_2.style.backgroundColor = "";
	} else {
		form.veld2_2.style.backgroundColor = color;
		fouten = true;
	}
	
	if(fouten){
		document.getElementById("error_2").innerHTML = "<FONT color='" + color + "'>" + fouttext + "</FONT>";
	}else{
		form.submit();
	}
}

function checkStap_2(fouttext) {
	var form = document.forms["shop_2"];
	var fouten = false;
	var color = "#990000";
	
	if(form.naam.value.length != "") {
		form.naam.style.borderColor = "";
	} else {
		form.naam.style.borderColor = color;
		fouten = true;
	}
	if(form.adres.value.length != "") {
		form.adres.style.borderColor = "";
	} else {
		form.adres.style.borderColor = color;
		fouten = true;
	}
	if(form.tel.value.length != "") {
		form.tel.style.borderColor = "";
	} else {
		form.tel.style.borderColor = color;
		fouten = true;
	}
	if(form.mail.value.length != "" && echeck(form.mail.value)) {
		form.mail.style.borderColor = "";
	} else {
		form.mail.style.borderColor = color;
		fouten = true;
	}
	if(form.boodschap.value.length != "") {
		form.boodschap.style.borderColor = "";
	} else {
		form.boodschap.style.borderColor = color;
		fouten = true;
	}
	
	if(fouten){
		//document.getElementById("error_1").innerHTML = "<FONT color='" + color + "'>" + fouttext + "</FONT>";
	}else{
		form.submit();
	}
}

function echeck(str) {
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)

	if (str.indexOf(at)==-1) {
		//alert("Invalid E-mail ID")
		
		return false
	}

	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr) {
		//alert("Invalid E-mail ID")

        return false
	}

	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr) {
		//alert("Invalid E-mail ID")

        return false
	}

	if (str.indexOf(at,(lat+1))!=-1) {
		//alert("Invalid E-mail ID")
		
		return false
	}

	if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot) {
		//alert("Invalid E-mail ID")

        return false
	}

	if (str.indexOf(dot,(lat+2))==-1) {
		//alert("Invalid E-mail ID")

        return false
	}

    if (str.indexOf(" ")!=-1) {
		//alert("Invalid E-mail ID")
		
		return false
	}

	return true                                                       
}

//-->
