//颜色变化---------------------------------------------
var old_bg="";
function inStyle(obj)
{
    old_bg=obj.style.background;
	obj.style.background="#F7f7f7";
	obj.style.cursor="hand";
}
function outStyle(obj)
{
    obj.style.background=old_bg;
}
//表单检测---------------------------------------------
function  check(form){
    if(form.chrName.value==""){
	  alert("请输入用户名");
	  form.chrName.focus();
	  return false;
	}
	if(form.chrPassword.value==""){
	  alert("请输入密码");
	  form.chrPassword.focus();
	  return false;
	}
  }

//英文版表单检测---------------------------------------------
 function  checken(form){
    if(form.chrName.value==""){
	  alert("Please enter your User Id.");
	  form.chrName.focus();
	  return false;
	}
	if(form.chrPassword.value==""){
	  alert("Please enter your password.");
	  form.chrPassword.focus();
	  return false;
	}
  }
//控制表格显示---------------------------------------------
    function show(obj_id)
  {
     obj=eval("document.all."+obj_id);
	 if(obj.style.display=="none")
	   obj.style.display="";
	 else
	   obj.style.display="none";
  }
//弹出窗口控制---------------------------------------------
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

