// JavaScript Document

function focusForm()
             { document.mcnsportEnquiryForm.guestName.focus(); }  


function validateEnquiry(theForm)
    {
    
      if (theForm.name.value == "")   {
        alert("Please enter your name before hitting send!");
        theForm.name.focus();
        return (false);
      }
    	   
	  var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
	  if (!emailfilter.test(theForm.email.value)){
		alert("Please enter a valid email address, thank you.")
        theForm.email.focus();
		return (false);
	  }

	// With the Name and Email fields completed, process the form...
      return (true);
}