var UKCBD = "UK Christian Bookshops Directory\n \n"
var GVB = UKCBD + "Sorry, 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.ShopName.value == "")
{
alert(GVB + "your shop name." + PTA);
frm.ShopName.focus();
return false;
}
if (frm.ShopName.value == "business")
{
alert(UKCBD + "Thank you. Please click the \"Start Over\" button to clear the form.");
return false;
}
if (frm.ShopAddress.value == "")
{
alert(GVB + "your Shop Address. Please go back to the Shop Address section and complete it.");
frm.ShopAddress.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 shop's Opening Times." + PTA);
frm.Opening_Times.focus();
 return false;
}
}

