﻿// JScript 文件
var Ariy=document.getElementById;
//检测邮箱是否合法
String.prototype.email = function() { return !/^[a-zA-Z0-9][\w\.\-]*[a-zA-Z0-9]@([a-zA-Z]*|\d*)(\.[a-zA-Z]+)+$/.test(this);}; 
//去空格
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, "");};


