
function check(){
  if (document.form.userID.value==''){
     window.alert("请输入用户名！");
     document.form.userID.focus();
     return false;
  }
  else
  {
  	if (document.form.password.value==''){
     window.alert("请输入密码！");
     document.form.password.focus();
     return false;}
  }
  return true ;
}
//-->

/**************************
 * 检查浏览器版本
 * date  : 2009-5-12
 */
function ie6check(){
	var verStr = navigator.appVersion;
    if (verStr.indexOf("MSIE") != -1) {
		if(verStr.indexOf("6")==-1 && verStr.indexOf("7")==-1){
	     	window.open ("/browser/ietip/01.htm","indexWin","width=267,height=178,left=100,top=0,resizable=no,scrollbars=no");
		}
	}
}

/**************************
 * 首页设置主页
 * author: yanf
 * date  : 2009-5-20
 */
function SetHome(obj,vrl){
	try{
		obj.style.behavior='url(#default#homepage)';
    	obj.setHomePage(vrl);
    }catch(e){
        if(window.netscape) {
        	try {
            	netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
            }catch (e){ 
                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'"); 
            }
            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
            prefs.setCharPref('browser.startup.homepage',vrl);
        }
    }
}
function setFestivalBg()
{
	if(document.getElementById("chinaTop").className=="china09101"){
		document.getElementById("chinaTop").className = "china09101_2";
		document.getElementById("reSyleId").className="";
		document.getElementById("chinaback").className="";
		document.getElementById("indexBgId").display="none";
	}
}
function setFav()
{
	AddFavorite('http://www.sanyajob.com/','【姑苏人才网】 - 苏州最大人才招聘网站');
}