function check()
{
	if ((document.loginform.username.value=="")||(document.loginform.password.value==""))
	{
		window.alert("请输入用户名/密码！");
		return false;
	}
	else
		return true;
}
function j2gb(url)
{ //alert(location.hostname)
   if (url!=''){
//     alert("ht"+"tp://demo/"+url)
     location.href="ht"+"tp://www.51job.com/"+url;
	 return false;
   }
    if(location.hostname=="big5.51job.com")
    {
        location.href="ht"+"tp://www.51job.com/"+url;
        return false;
    }
    else
    {
        location.href="ht"+"tp://big5.51job.com"+url;
        return false;
    }
}



function opennew()
{
   window.open("tishi.htm","","width=300,height=200,top=0,left=0")
}

function check(){
  if ((document.loginform.username.value=="")||(document.loginform.password.value=="")){
     window.alert("请输入用户名/密码！");
     return false;
  }
  else
  return true;
}

function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
bw=new checkBrowser()

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v3.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function marquee1()
{
	document.write("<marquee behavior=scroll direction=left width=235 height=20 scrollamount=3 scrolldelay=60 onmouseover='this.stop()' onmouseout='this.start()'>")
}

function marquee2()
{
	document.write("</marquee>")
}
