<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
  alert(x);
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_showHideLayers_1() { //v6.0
  var i,p,v,obj,q,args=MM_showHideLayers_1.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; 
	if(v=='show'){
		v = 'visible';
        q = "";
	}else if(v=='hide'){
		v = 'hidden';
        q = "absolute"; 	
	}
   }
    obj.visibility=v; 
	obj.position=q;}
}
//热点企业招聘点选5页
var loop_id=0;
function  showHideLayers_hot(num,total) { //v6.0
  var p,v,obj,q ,sty;
  for (i=1; i<total; i++){
  	
  if ((obj=MM_findObj("Alist"+i))!=null) { 
  	
    if (obj.style) { obj=obj.style; 
    	p=MM_findObj("ahot"+i);
    	 
			if(i==num){
				v = 'block';
				q = "";
				sty='now';
		    
			}else {
				v = 'none';
				q = "absolute"; 
				sty='hot_company_number1';	
			}
   }
	  obj.display =v; 
	  obj.position=q;
	  p.className=sty;
	} 
	}loop_id=num;
}

//验证码随机数4位
function random_validate(){
var index = Math.floor(Math.random() * 9999); 
if(index<1000){
	index =random_validate();
	}
return index ; 
}
//验证码分割成4位数图片
function cut_validate(){
var 	image1=new Array(5);
var mathrand=random_validate();

image1[0]=Math.floor(mathrand/1000);
image1[1]=Math.floor((mathrand%1000)/100);
image1[2]=Math.floor((mathrand%100)/10);
image1[3]= mathrand%10 ;	
image1[4]=mathrand;
return image1;
}

function get_validate(id,pathimg){
var image=	cut_validate();
var widths=14;
var height=19;
var path='..';
obj=MM_findObj(id);
if(pathimg)path=pathimg;
obj.innerHTML="<img src='"+path+"/images/"+image[0]+".gif' width='"+widths+"' height='"+height+"'/>"+"<img src='"+path+"/images/"+image[1]+".gif' width='"+widths+"' height='"+height+"'/>"+"<img src='"+path+"/images/"+image[2]+".gif' width='"+widths+"' height='"+height+"'/>"+"<img src='"+path+"/images/"+image[3]+".gif' width='"+widths+"' height='"+height+"'/><input name='get_validate1' id='get_validate1' type='hidden'  value='"+image[4]+"'/>";
}


///登陆验证提交
function formcheck(form_1){
var form_2=eval(form_1); 
if(form_2.username.value==""){
alert('输入用户名');
return false;
}
if(form_2.password.value==""){
alert('输入密码');
return false;
}

	form_2.submit();
}
//-->