function hideOrShow(id){
	a = document.getElementById(id);
	if(a.style.display == ""){a.style.display = "none";}
	else{a.style.display = "";}
}

function openBigger(img){
	window.open(img.src,"img","top=10,left=10,width=640,height=490,scrollbars=yes");
}

function openImageViewer(querystring)
{
	window.open("/internet/imageViewer/viewer.asp?"+ querystring,"","top=0,left=0,width=10,height=10,scrollbars=no");
}


function gotoRooms()
{
	document.location =  "/internet/webpages/standard.asp?pageId=20";
}

function highImg(obj,lang)
{
	var sPath = "/users/default/pictures/home/buttons/";
	var sImg  = obj.id + "_" + lang + "_on.gif";
	obj.src = sPath + sImg;	
}

function lowImg(obj,lang)
{
	var sPath = "/users/default/pictures/home/buttons/";
	obj.src = sPath + obj.id + "_" + lang + ".gif";	
}

// CHECKS FOR REGINA COELI

function checkTaxiForm(){
	a = document.frmTaxi
	if(checkString(a.gender, "Gender")&&
	checkString(a.fullName, "Name")&&
	checkEmail(a.email, "e-Mail")&&
	checkString(a.coordinator, "Coordinator")&&
	checkEmail(a.recipient, "e-Mail coordinator")&&
	checkCheckedDays()
	){return true;}
	else{return false}
}

function checkTaxiFormNL(){
	a = document.frmTaxi
	if(checkString(a.gender, "Geslacht")&&
	checkString(a.fullName, "Naam")&&
	checkEmail(a.email, "e-Mail")&&
	checkString(a.coordinator, "Coördinator")&&
	checkEmail(a.recipient, "e-Mail coördinator")&&
	checkCheckedDaysNL()
	){return true;}
	else{return false}
}

function checkCheckedDaysPHP(){
	a = document.forms[0]
 	numDaysChecked	= 0
 	isChecked		= false
	weekDays = Array("monday","tuesday","wednesday","thursday","friday")
	for(i=0;i < weekDays.length;i++){
		for(p=0;p < 3;p++){
			fName = weekDays[i] + p;
			if(document.getElementById(fName).checked == true){isChecked = true;break;}
		}
		if(isChecked == true){numDaysChecked++;isChecked = false;}
	}
	return numDaysChecked
}

function checkCheckedDays(){
	a = document.frmTaxi
 	if(
	checkBoxChecked(a.monday,"options monday")&&
	checkBoxChecked(a.tuesday,"options tuesday")&&
	checkBoxChecked(a.wednesday,"options wednesday")&&
	checkBoxChecked(a.thursday,"options thursday")&&
	checkBoxChecked(a.friday,"options friday")
	){return true;}
	else{return false;}
}

function checkCheckedDaysNL(){
	a = document.frmTaxi
 	if(
	checkBoxChecked(a.monday,"opties maandag")&&
	checkBoxChecked(a.tuesday,"opties dinsdag")&&
	checkBoxChecked(a.wednesday,"opties woensdag")&&
	checkBoxChecked(a.thursday,"opties donderdag")&&
	checkBoxChecked(a.friday,"opties vrijdag")
	){return true;}
	else{return false;}
}

function checkUniversalForm(){
	a = document.frmUniversal
	if(checkString(a.gender, "Gender")&&
	checkString(a.fullName, "Name")&&
	checkEmail(a.email, "e-Mail")&&
	checkString(a.coordinator, "Coordinator")&&
	checkEmail(a.recipient, "e-Mail coordinator")&&
	checkBoxChecked(a.choice,"Request for")&&
	checkString(a.description, "Description")
	){return true;}
	else{return false}
}

function checkUniversalFormNL(){
	a = document.frmUniversal
	if(checkString(a.gender, "Geslacht")&&
	checkString(a.fullName, "Naam")&&
	checkEmail(a.email, "e-Mail")&&
	checkString(a.coordinator, "Coördinator")&&
	checkEmail(a.recipient, "e-Mail coördinator")&&
	checkBoxChecked(a.choice,"Verzoek")&&
	checkString(a.description, "Omschrijving")
	){return true;}
	else{return false}
}

function SetKeywordSearchForm() {

    frm = document.forms["frmSearch"];
    frm.action = "/search/search.asp";
    frm.target = "_self";

}




