// site stat vars 
var sc_project=1007445; 
var sc_invisible=1; 
var sc_partition=9; 
var sc_security="78961c87"; 
var sc_remove_link=1; 
// end site stat vars

if (top.location != self.location) {top.location = self.location}

function validemail(email) {
invalidChars = " /:,;"
if (email == "") {
return true
}
for (i=0; i<invalidChars.length; i++) {
badChar = invalidChars.charAt(i)
if (email.indexOf(badChar,0) > -1) {
return false
}
}
atPos = email.indexOf("@",1)
if (atPos == -1) {
return false
}
if (email.indexOf("@",atPos+1) > -1) {
return false
}
periodPos = email.indexOf(".",atPos)
if (periodPos == -1) {
return false
}
if (periodPos+3 > email.length){
return false
}
return true
}

function submitit(passform) {
if ((passform.name1.value=="")||(passform.name1.value=="Enter your name")) {
alert("Please enter your name")
passform.name1.focus()
return false
}
if ( ((passform.tel.value=="")||(passform.tel.value=="Enter telephone number")) && ((passform.email.value=="")||(passform.email.value=="Enter e-mail address")) ){
alert(("Please enter either your telephone number or e-mail address"))
passform.tel.focus()
return false
}
if ((passform.email.value!="")&&(passform.email.value!="Enter e-mail address")) {
if (!validemail(passform.email.value)) {
alert("The e-mail address is invalid")
passform.email.focus()
passform.email.select()
return false
}
}
if ((passform.msg.value=="")||(passform.msg.value=="Enter your message")) {
alert(("Please enter a message"))
passform.msg.focus()
return false
}
return true
}
