// JavaScript Document
function submitReservation(myForm) {
if ((myForm.name1.value == "") || (myForm.position1.value == "") || (myForm.email1.value == "") || (myForm.company1.value == "")) 
{ alert("You must fill up all the text fields for at least one registrant."); return false; }

	//-------- begin email validation--------------//
echeck = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
if (echeck.test(myForm.email1.value)) {
return true;	
}
else {
 alert("Invalid Email Address Format")
 myForm.email1.focus()
 myForm.email1.select()
 return false
}
	//-------- end email validation----------------//

}

function showAdvisory(module) {
alert("Sorry! The "+module+" is currently offline.")

}

function submitContact(myForm) {
if ((myForm.fullname.value == "") || (myForm.email.value == "") || (myForm.message.value == "")) 
{ alert("You must fill up all the required fields (in red)."); return false; }

	//-------- begin email validation--------------//
echeck = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
if (echeck.test(myForm.email.value)) {
return true;	
}
else {
 alert("Invalid Email Address Format")
 myForm.email.focus()
 myForm.email.select()
 return false
}
	//-------- end email validation----------------//
}