function validateForm() {
with (document.addpharma) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (name.value == "") alertMsg += "\nPharmacy Name";
if (address1.value == "") alertMsg += "\nAddress";
if (email.value == "") alertMsg += "\nE-mail";
if (city.value == "") alertMsg += "\nCity";
if (province.value == "") alertMsg += "\nProvince";
if (postalcode.value == "") alertMsg += "\nPostal Code";
if (phone.value == "") alertMsg += "\nPhone";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }
