var GVB = "Christian Cafes Directory\n \nSorry, you haven't included "var VEA = "a valid email address.\nIt should be something like \"yourname@somedomain.com\""var PTA = " Please try again..."function Validate(frm){if (frm.CafeName.value == ""){alert(GVB + "your company name." + PTA);frm.CafeName.focus();return false;}if (frm.Address.value == ""){alert(GVB + "your address. Please go back to the address section and complete it.");frm.CafeName.focus();return false;}if (frm.Phone.value == ""){alert(GVB + "your telephone number." + PTA);frm.Phone.focus();return false;}if (frm.Contact.value == ""){alert(GVB + "the name of your contact person." + PTA);frm.Contact.focus();return false;}if (frm.email.value == ""){alert(GVB + "an email address." + PTA);frm.email.focus();return false;}if (frm.email.value.indexOf("@") == -1){alert(GVB + VEA + PTA);frm.email.focus();return false;}if (frm.email.value.indexOf(".") == -1){alert(GVB + VEA + PTA);frm.email.focus(); return false;}if (frm.Opening_Times.value == ""){alert(GVB + "your Opening Times." + PTA);frm.Opening_Times.focus(); return false;}}
