function CheckLogin()
{
	if (document.Gforms.gName.value.length == 0) {
		alert("请输入您的用户名.");
		document.Gforms.gName.focus();
		return false;
	}
	if (document.Gforms.gName.value.indexOf("<")!=-1 || document.Gforms.gName.value.indexOf(">")!=-1){
		alert("用户名中不能包含英文半角括号 (<,>) ");
		document.Gforms.gName.focus();
		return false;
	}
	if (document.Gforms.gName.value.indexOf("'")!=-1){
		alert("用户名中不能包含 (') ");
		document.Gforms.gName.focus();
		return false;
	}
	if (document.Gforms.gPass.value.length == 0) {
		alert("请输入您的密码.");
		document.Gforms.gPass.focus();
		return false;
	}
      return true;

}
