<!--

function isEmail(string) {
if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
	return true;
else
	return false;
}

function isProper(string) {

   if (!string) return false;
   var iChars = "*|,\"<>[]{}`\';()@&$#%";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
} 
                     
function isReady(form) {
	if (isProper(form.txtName.value) == false) {
        alert("Please enter your name.");
        form.txtName.focus();
        return false;
    }
    if (isEmail(form.txtEmail.value) == false) {
        alert("Please enter a valid email address.");
        form.txtEmail.focus();
        return false;
    }
    return true;
}

function isReadyContact(form) {
	if (isProper(form.txtName.value) == false) {
        alert("Please enter your name.");
        form.txtName.focus();
        return false;
    }
    if (isEmail(form.txtEmail.value) == false) {
        alert("Please enter a valid email address.");
        form.txtEmail.focus();
        return false;
    }
	if (isProper(form.txtEnq.value) == false) {
        alert("Please enter the nature of your enquiry.");
        form.txtEnq.focus();
        return false;
    }
    return true;
}