function CheckEmail(TheEmail) {
	if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(TheEmail)){return true;}
	else {return false;}
}

function checkMobile(str){
	var re = /^(\+[0-9]{2}|)1[358][0-9]{9}$/;
	if (!re.test(str)){return false;}
	else {return true;}
}

function checkIdentityCard(str){
	var re = /^([0-9x]{15}|[0-9x]{18})$/;
	return re.test(str);
}

function IsEmpty(s){return ((s == null) || (s.length == 0))}

function IsAccounts(s) {
	var re = /^[a-zA-Z0-9][a-zA-Z0-9-_]{3,16}$/;
	if (!re.test(s)){return false;}
	else {return true;}
}

function IsValidStr(s) {
	var errorChar;
	var badChar = "*><,[]{}?/+=|\\'\":;~!@#$%^&()`~";
	if (isEmpty(s)){return true;}
	errorChar = isCharsInBagEx(s, badChar)
	if (errorChar == true ) {return true;}
	return false;
}

function IsDateStr(str) {return (/^\d{4}-[0-1]?\d{1}-[0-3]?\d{1}$/.test(str));}

function Is_Zh_Cn(s) {return (/[^\x00-\xff]/g.test(s));}

