

function validate(frm) 
{
    //
    // Check the Email field to see if any characters were entered
    //
	
	
    if (frm.Email.value.length == 0)
    {
        alert("Please enter an e-mail address.");
        frm.Email.focus();
        return false;
    }
    //
    // Now check the Email field for the "@" symbol
    //
   if (frm.Email.value.indexOf("@") == -1)
     {
        alert("Please enter a valid e-mail address.");
        frm.Email.focus();
        return false;
	}	
   //
    // Now check the Name field for the "@" symbol
    //

     if (frm.Name.value.length == 0)
	 {
	 alert("Please enter a name field.");
        frm.Name.focus();
        return false;
	}	
    //
    // Now check the Location field for the "@" symbol
    //

     if (frm.Location.value.length == 0)
	 {
		 alert("Please enter a location field.");
        frm.Location.focus();
        return false;
	}	
	
 //
    // Now check the Phone field for the "@" symbol
    //

     if (frm.Phone.value.length == 0)
	 {
		 alert("Please enter a phone number.");
        frm.Phone.focus();
        return false;
	}
}

