
var Validator = function(){}

Validator.prototype.required = function(element){
    if(element!=null && element!="")
    {
    	return true;
    }
	else return false;
}

Validator.prototype.email = function(element){
	email = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2})$/;
	return (email.test(element));
}

Validator.prototype.equals = function(element1, element2){
	return (element1==element2);
}

