//检查纯数字
function isNum(str){return /^\d$/gi.test(str);}
//检查浮点数字
function isFloat(str){return /^(\d)*(.\d)*$/gi.test(str)&&str.length>0;}
//检查Email
function isEmail(str){return /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/gi.test(str);}
//检查是否为空
function isEmpty(str){try{return str.toString().length<1}catch(e){return true;}}
//检测用户名是否符合要求
function CheckUsername(str){
	return /^[\w][\w.-@]{3,30}[\w]$/i.test(str);
}