/**
* form validator object for validating forms
*
**/
function FormValidator()
{
	
}
FormValidator.prototype.isEmpty = function(val)
{
   var regExp =  /^\s*$/;
   return (regExp.test(val));
	
}

/**
*
* Since there are many ways to validate on e-mails, depending on the defenition of an e-mail address,
* 
**/
FormValidator.prototype.isNoEmail = function(val) 
{
     //var regExp = /^[A-Za-z][A-Za-z0-9_.]*@[A-Za-z0-9_]+.[A-Za-z0-9_.]+[A-za-z]$/;
     var regExp = /^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+/;
     //var regExp = /^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-z]{2,6}(\.[a-z]{2})?$/i;

    return !(regExp.test(val));
}

/**
*     9-digits 123456789.
**/
FormValidator.prototype.isNoTelefono = function(val) 
{
   var regExp =  /^\d{9}$/;
   return !(regExp.test(val));
}






