function user_login_login(){
	if (document.frmlogin.username.value=="")
	{
		document.frmlogin.username.focus();
		alert("用户名不能为空!");
		//return false;
	}else if (document.frmlogin.password.value=="")
	{
		document.frmlogin.password.focus();
		alert("密码不能为空!");
		//return false;
	}else{
	 var password=document.frmlogin.password.value;
     var username=document.frmlogin.username.value;
	 var i=parseInt(document.frmlogin.appno.value);
  switch (i)
  {
      case 1:
      document.frmlogin.password.value="";
      var path='fedulogin.jsp?&username='+username+'&password='+password;
      window.open(path,'','');
      break;
      case 2:
      document.frmlogin.password.value="";
      var path='feducitylogin.jsp?username='+username+'&password='+password;
      window.open(path,'','');
      break;
      case 3:
      document.frmlogin.password.value="";
      tjLogin(username,password);
      break;
      default:
  }}}
  
function user_login_cancel(){
	//alert("user_login_cancel");
	document.frmlogin.username.value="";
	document.frmlogin.password.value=""
}
function search_in(){
	if (document.frmsearch.wd.value=="")
	{
		document.frmsearch.wd.focus();
		alert("请输入关键字");
	}else{
	document.frmsearch.action="search.jsp";
	document.frmsearch.submit();
	}
}
function search_baidu(){
	if (document.frmsearch.wd.value=="")
	{
		document.frmsearch.wd.focus();
		alert("请输入关键字");
	}else{
		//document.frmsearch.action="http://www.baidu.com/s";
		document.frmsearch.action="search.jsp";
		//document.frmsearch.action="#";
		document.frmsearch.submit();
	}
}
function flink(selObj,restore)  //下拉跳转
{ 
	window.open(selObj.options[selObj.selectedIndex].value,"_blank");
	if (restore) selObj.selectedIndex=0;
}
 function tjLogin(username,password){
   tjLogFrame.location= 'http://tejiao.qgbzb.cee.edu.cn/forward?js=login.js&page=login.jsp&params={dengLuMM:"'+password+'",dengLuDH:"'+username+'"}';
 }