// JavaScript Document for Email check
function checkMail(mailId){
	try{
		var mailObj = document.getElementById(mailId);
		var email_re=/(\d|[a-z]|_)+@(\d|[a-z])+.(com|net|cn|org)/;

		if(! email_re.test(mailObj.value)){
			alert("请输入正确的邮箱地址！");
			mailObj.focus();
			return false;	
		}
	}catch(exception){
		alert("Make sure the object id is correct!");
		return false;
	}
	return true;
}
