function validForm(passForm) {			//checks for non blank name and email address for register,contactus
if (passForm.name.value == "") {
	alert("Please enter your name")
	passForm.name.focus()
	return false
}
if (passForm.email.value == "" ) {			  	
	alert("Please enter an email address")
	passForm.email.focus()
	return false
}
return true
}

//name to thankyou on register.htm
expireDate = new Date
expireDate.setDate(expireDate.getDate()+1)
function setIt() {
email = document.emailform.name.value
document.cookie = "email="+email+";expires="+expireDate.toGMTString()
}

function nob(actual,theiremail) { //opens pop up for contactus.htm,organisation.htm
toname = actual;
toemail = theiremail;
NewWindow = window.open("forms/contactpopup.htm","emailer","width=400,height=300,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,status=no,top=0,left=0")
whofrom = "Sir or Madam";
NewWindow.focus()
}

function updateParent(whof) {	//called by contactpopup, updates contactus with requesters name to use in thankyoupopup
window.opener.whofrom = whof.value
}

function formfiller() {  //called by contactpopup.htm
document.emailform.toemail.value = window.opener.toemail	//form hidden fields toemail and toname updated from referrer link
document.emailform.toname.value = window.opener.toname
}

function newun(popupwin) { //opens pop up for careers
mypopup = "forms\/"+popupwin
NewWindow = window.open(mypopup,"emailer","width=400,height=350,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no,status=no,top=0,left=0")
NewWindow.focus()
}

function dbase(actual,theiremail) { //opens pop up for database.htm
toname = actual;
toemail = theiremail;
NewWindow = window.open("forms/dbasepopup.htm","emailer","width=400,height=220,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,status=no,top=0,left=0")
whofrom = "Sir or Madam"
NewWindow.focus()
}