

function checkNawForm(frm){
	a = frm;
	if(checkString(a.naam,"Naam")&&
	checkPhone(a.telefoon,"Telefoon")&&
	checkEmail(a.email,"E-mail")&&
	checkString(a.commentaar,"Commentaar")){return true;}
	else{return false;}
}

function checkStepOne(frm){
	a = frm
	if(
	CheckSelectedCity()&&
	checkBoxChecked(a.gender,"Geslacht")&&
	checkString(a.firstName,"Voornaam")&&
	checkString(a.lastName,"Achternaam")&&
	checkString(a.address,"Adres")&&
	checkZipCode(a.zipcode,"Postcode")&&
	checkString(a.city,"Woonplaats")&&
	checkPhone(a.phone,"Telefoon")&&
	checkEmail(a.email,"E-mail")&&
	checkBoxChecked(a.cwi,"Ingeschreven bij CWI")&&
	checkBoxChecked(a.otherCompany,"Ingeschreven bij ander reïntergratiebedrijf")
	){return true;}
	else{return false;}
}

function CheckSelectedCity()
{
	a = frm
	if(a.regionSelector.value == ""){alert("U heeft nog geen plaats geselecteerd.");return false;}
	else{return true;}
}



function checkStepTwo(frm){
	a = frm
	if(
	checkString(a.education,"Hoogst genoten opleiding")&&
	checkString(a.jobPast,"Werkervaring laatste 5 jaar")&&
	checkString(a.jobPreferences,"Gewenste functies")&&
	checkString(a.prefRegions,"Gewenste regio")&&
	checkString(a.mediaReference,"In contact gekomen met")&&
	checkString(a.cv,"CV")&&
	checkExtension(a.cv,"U heeft geen Word of PDF bestand gekoppeld")
	){return true;}
	else{return false;}
}

function checkLogin(frm){
	a = frm
	if(
	checkString(a.username,"Gebruikersnaam")&&
	checkString(a.password,"Wachtwoord")
	){return true;}
	else{return false;}
}

function updateProfile(frm){
	a = frm
	if(
	checkString(a.address,"Adres")&&
	checkZipCode(a.zipcode,"Postcode")&&
	checkString(a.city,"Woonplaats")&&
	checkPhone(a.phone,"Telefoon")&&
	checkEmail(a.email,"E-mail") &&
	checkString(a.city,"jobPreferences")&&
	checkString(a.city,"prefRegions")
	){return true;}
	else{return false;}
}

function checkEmployerForm(frm){
	a = frm
	if(
	checkString(a.organisation,"Organisatie")&&
	checkString(a.branche,"Branche")&&
	checkBoxChecked(a.gender,"Geslacht")&&
	checkString(a.firstName,"Voornaam")&&
	checkString(a.lastName,"Achternaam")&&
	checkString(a.address,"Adres")&&
	checkZipCode(a.zipcode,"Postcode")&&
	checkString(a.city,"Woonplaats")&&
	checkPhone(a.phone,"Telefoon")&&
	checkEmail(a.email,"E-mail")
	){return true;}
	else{return false;}
}

function checkJobData()
{
	a = frm
	if(
	checkString(a.jobTitle,"Naam van de functie")&&
	checkString(a.jobDescription,"Functie omschrijving")&&
	checkString(a.jobSkills,"Functie eisen")&&
	checkString(a.jobRegion,"Werkgebied")
	){return true;}
	else{return false;}
}

function removeProfile(frm)
{
	a = frm
	if(
	checkString(a.reason,"Reden van uitschrijving")
	){return true;}
	else{return false;}
}

function removeJob(frm)
{
	a = frm
	if(
	checkString(a.reason,"Reden van verwijderen")
	){return true;}
	else{return false;}
}

function rotaryLogOff(sSubject)
{
	if(confirm("Weet u zeker dat u wilt uitloggen ?"))
	{document.location = "/internet/login/rotaryLogOffScript.asp?subject="+ sSubject +"&hyperlink=inloggen";}
}

function checkExtension(obj,sAlert)
{
	if(obj.value.length > 0)
	{
		sLastDot 	= obj.value.lastIndexOf(".")
		sExt		= obj.value.substring(sLastDot+1,obj.value.length)
		sExt		= sExt.toLowerCase();
		if(sExt != "doc" && sExt != "pdf"){alert(sAlert);return false}
		else{return true}
	}
	else{return true}
}


//function goto(tUrl,itemId)
//{
	//document.location = tUrl + itemId;
//}

function hideOrShow(id){
	a = document.getElementById(id);
	if(a.style.display == ""){a.style.display = "none";}
	else{a.style.display = "";}
}

function checkGuestForm(){
	a = document.frmGuestbook;
	if(checkString(a.door,"Naam") &&
	checkEmail(a.email,"e-Mail") &&
	checkString(a.bericht,"Bericht")){return true;}
	else{return false;}
}

function showPage(fieldName,selectedValue){
	var splitValue
	splitValue = selectedValue.split("@");
	if(splitValue[0] > 0 ){
		document.location = "/default.asp?pageId=" + splitValue[1];
		}
		else{alert("U heeft een hoofdstuk aangeklikt. Een hoofdstuk bevat geen informatie. \n Selecteer een artikel onder een hoofdstuk");fieldName.selectedIndex = 0;}
}

function openBigger(img){
	window.open(img.src,"img","top=10,left=10,width=640,height=490,scrollbars=yes");
}

function openImageViewer(img)
{
	window.open("/internet/imageViewer/viewer.asp?img="+ img,"","top=0,left=0,width=10,height=10,scrollbars=no");
}

function checkJobRespondForm(){
	a = document.frmRespond;
	if(
	checkString(a.naam,"Naam") &&
	checkEmail(a.email,"e-Mail")
	){if(confirm("Wilt u uw reactie versturen ?")){return true;}else{return false;}}
	else{return false;}
}