function validate()
{

if(document.contact.email.value == "")
{ alert("Please enter your Email Address.")
document.contact.email.focus()
return false }

if(document.contact.lname.value == "")
{ alert("Please enter your Last Name.")
document.contact.lname.focus()
return false }

if(document.contact.fname.value == "")
{ alert("Please enter your First Name.")
document.contact.fname.focus()
return false }

if((document.contact.location[0].checked==false)&&(document.contact.location[1].checked==false))
{ alert("Please select Restaurant Location.")
document.contact.location[0].focus()
return false }

if(document.contact.comments.value == "")
{ alert("Please enter your Comments.")
document.contact.comments.focus()
return false }


}

//------------------------------------

//The "^" means beginning of string
//The "$" means end of string
//The "." means any character
//the "+" means one or more
//A "\" is an escape ... avoids literal translation of character
//A "\." means read a period as an ascii character (in the email), not as javascript
//A "$/" means end of string
// "!" means not

function checkEmail()
{
var emailFilter = /^.+@.+\..{2,4}$/;
if(!(emailFilter.test(document.contact.email.value)))
{ alert("Please provide a valid Email Address format.");
document.contact.email.focus()
return false}
}
