function UserEnter()
{
  if(window.document.fm.txtn.value.length<1){
   alert("请您填写帐号!");
	document.fm.txtn.focus();
   return;}
  if(window.document.fm.txtp.value.length<1){
   alert("请您填写密码!");
	document.fm.txtp.focus();
   return;}
   	if (document.fm.txtn.value.indexOf("<")!=-1 || document.fm.txtn.value.indexOf(">")!=-1){
		alert("帐号中不能包含 (<,>) ");
		document.fm.txtn.focus();
		return ;
	}
	if (document.fm.txtn.value.indexOf("'")!=-1){
		alert("帐号中不能包含 (') ");
		document.fm.txtn.focus();
		return ;
	}
	
  window.document.fm.submit();
	return true;
}
function searchx()
{
  if(window.document.fm2.sy_key.value.length<1){
   alert("请您填写查询的关键字!");
	document.fm2.sy_key.focus();
   return;
   }
  window.document.fm2.submit();
	return true;
}
function keyDown(){
  if(event.keyCode==13){
	 UserEnter();
  }
}
