// JavaScript Document
<!--

function isEmail(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 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.first_name.value) == false) {
        alert("Please enter a first name.");
        form.first_name.focus();
        return false;
    }
    if (isProper(form.last_name.value) == false) {
        alert("Please enter a last name.");
        form.last_name.focus();
        return false;
    }
    if (isEmail(form.email1.value) == false) {
        alert("Please enter a valid email address.");
        form.email1.focus();
        return false;
    }
    return true;
}

function isProper(string) {
    if (string.search(/^\w+( \w+)?$/) != -1)
        return true;
    else
        return false;
}

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;
}

// End -->