// JavaScript Document
function checkformulier(field){
var status = 'okee'
// GA KIJKEN WELKE VELDEN VERPLICHT ZIJN.
// DEZE BEGINNEN MET check_
var frm = document.forms[0];
for (var e = 0; e < frm.length; e++) {
	var name = frm.elements[e].name;
    if(name.substr(0,6) == 'check_'){
	var naamzondercheck = name.substr(6,28)
		if(frm.elements[e].value==''){
	 	alert('U heeft geen '+ naamzondercheck + ' ingevoerd');
		status = 'niet okee';
		}
	}
    }

if(status=='okee'){
frm.submit();
}
}

// functies-voor-popupjes
var win=null;
var WinFocus=false;
function NewWindow(mypage,myname,w,h,scroll,pos)
{
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}


// de-popup-voor-het-wachtwoord-vergeten-venster
function PopUpWachtwoord(){
popupwindowtje = NewWindow('http://e-learning.e-sites.nl/wachtwoord.php','popww','400','300','no','center');
}
