	<!--
	function Validate(frm) {
	var strError
	strError = ""
		if (frm.VIPVenue.value == "")  {
			strError = "     - VIP Venue\n" + strError;
			frm.VIPVenue.focus();
		}
		if (frm.NumberofGuests.value == "")  {
			strError = "     - Number of Guests.\n" + strError;
			frm.NumberofGuests.focus();
		}
		if (frm.TimeofFunction.value == "")  {
			strError = "     - Time of Function.\n" + strError;
			frm.TimeofFunction.focus();
		}
		if (frm.DateofFunction.value == "")  {
			strError = "     - Date of Function.\n" + strError;
			frm.DateofFunction.focus();
		}
		if (frm.TypeofFunction.value == "")  {
			strError = "     - Type of Function.\n" + strError;
			frm.TimeofFunction.focus();
		}
		if (frm.Email.value == "")  {
			strError = "     - Email.\n" + strError;
			frm.Email.focus();
		}
		if (frm.FaxNo.value == "")  {
			strError = "     - FaxNo.\n" + strError;
			frm.FaxNo.focus();
		}
		if (frm.TelNo.value == "")  {
			strError = "     - TelNo.\n" + strError;
			frm.TelNo.focus();
		}
		if (frm.Address.value == "")  {
			strError = "     - Address.\n" + strError;
			frm.Address.focus();
		}
		if (frm.ContactPerson.value == "")  {
			strError = "     - Contact Person.\n" + strError;
			frm.ContactPerson.focus();
		}
		if (frm.FullName.value == "")  {
			strError = "     - Full Name.\n" + strError;
			frm.FullName.focus();
		}
		
			if (strError != "") {
				strError = "    The following fields need to be filled in,\n     or completed correctly:\n\n" + strError;
				strError = "ERROR(S)\n\n " + strError;
						alert(strError);
						return(false);
			}

		


		if (frm.EMail.value != "") {
			if (echeck(frm.EMail.value)==false){
				frm.EMail.focus()
				return false
			}
		}

	}


	function echeck(str) {
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   alert("Invalid E-mail")
	   return false
	}
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("Invalid E-mail")
	   return false
	}
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		alert("Invalid E-mail")
		return false
	}
	 if (str.indexOf(at,(lat+1))!=-1){
		alert("Invalid E-mail")
		return false
	 }
	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		alert("Invalid E-mail")
		return false
	 }
	 if (str.indexOf(dot,(lat+2))==-1){
		alert("Invalid E-mail")
		return false
	 }
	 if (str.indexOf(" ")!=-1){
		alert("Invalid E-mail")
		return false
	 }
	 return true					
	}
	