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 isReady(form) {
	if(form.name.value==""){
		alert("Please enter your Name.");
        form.name.focus();
        return false;
		}

    if (isEmail(form.email.value) == false) {
        alert("Please enter a valid email address.");
        form.email.focus();
        return false;
    	}

    return true;
}


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.search(/^\w+( \w+)?$/) != -1)
        return true;
    else
        return false;
}
