function isEmail( email ) {
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){
        return true;
    }
    return false;
}
/*
    prototype functions
*/
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}



function isNumber( number ){
    
    var anum=/(^\d+$)|(^\d+\.\d+$)/;
    
    if ( anum.test(number) ){
        result=true;
    }else{                    
        result=false;
    }
    return (result);
}
