  	function chklogon(frm){
    	with(frm){
      		if (account.value=="") {
        		alert(' 请输入您的用户名！ ');
        		account.focus();
        		return(false);
      		}
      		else if(password.value==""){
        		alert(" 请输入您的密码！");
        		password.focus();
        		return(false);
      		}
      		else if(memtype[0].checked){
        		action="http://www.hxjob.com/person/logcheck.asp";
        		return true;
      		}
      		else if(memtype[1].checked){
        		action="http://www.hxjob.com/enterprise/logcheck.asp";
        		return true;
      		}
      		else {
        		alert(" 请选择您的会员类型!");
        		return(false);
      		}
    	}
  	}
 function chklogon_w(frm){
    	with(frm){
      		if (account.value=="") {
        		alert(' 请输入您的用户名！ ');
        		account.focus();
        		return(false);
      		}
      		else if(password.value==""){
        		alert(" 请输入您的密码！");
        		password.focus();
        		return(false);
      		}
      		else if(memtype.value=="person"){
        		action="http://www.hxjob.com/person/logcheck.asp";
        		//return true;
      		}
      		else if(memtype.value=="enterprise"){
        		action="http://www.hxjob.com/enterprise/logcheck.asp";
        		//return true;
      		}
      		else {
        		alert(" 请选择您的会员类型!");
        		return(false);
      		}
    	}
  	}
 
  	function reg(){
    	with(frmlogon){
			if     (memtype[0].checked){
				location.href = "http://www.hxjob.com/person/Person_Reg.asp";
			}
			else if(memtype[1].checked){
				location.href = "http://www.hxjob.com/enterprise/register.asp";
			}
			else{
				alert(" 请先选择注册会员的种类！");
				memtype[0].checked=true;
				memtype[0].focus();
			}
    	}
  	}
	
	var bV=parseInt(navigator.appVersion);
	var NS4=(document.layers) ? true : false;
	var IE4=((document.all)&&(bV>=4))?true:false;
	var ver4 = (NS4 || IE4) ? true : false;
	
	isExpanded = false;
	
	function getimages(el) {
	   ind = null;
	   for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id == el) {
		   ind = i;
		   break;
		}
	   }
	   return ind;
	}
	
	function arrange() {
	   nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
	   for (i=firstInd+1; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		   if (whichEl.visibility != "hide") {
			whichEl.pageY = nextY;
			nextY += whichEl.document.height;
		   }
	   }
	}
	
	function initIt(){
	   if (NS4) {
		for (i=0; i<document.layers.length; i++) {
		   whichEl = document.layers[i];
			if (whichEl.id.imagesOf("Child") != -1) whichEl.visibility = "hide";
		}
		arrange();
	   }
	   else {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
		   if (tempColl(i).className == "child") tempColl(i).style.display = "none";
		}
	   }
	}
	
	function expandIt(el) {
	   if (IE4) {expandIE(el)} else {expandNS(el)}
	}
	
	function expandIE(el) { 
	   whichEl = eval(el + "Child");
	   if (whichEl.style.display == "none") {
		whichEl.style.display = "block";
	   }
	}
	
	function expandNS(el) {
	   whichEl = eval("document." + el + "Child");
	   whichEl.visibility = "show";
	   arrange();
	}
	
	function closeIt(el) {
	   if (IE4) {closeIE(el)} else {closeNS(el)}
	}
	
	function closeIE(el) { 
	   whichEl = eval(el + "Child");
	   whichEl.style.display = "none";
	}
	
	function closeNS(el) {
	   whichEl = eval("document." + el + "Child");
	   whichEl.visibility = "hide";
	   arrange();
	}
	
	function expandThis(el) {
	   closeAll();
	   expandIt(el);
	}
	
	function closeAll() { 
	   if (NS4) {
		for (i=0; i<document.layers.length; i++) {
		   whichEl = document.layers[i];
			if (whichEl.id.imagesOf("Child") != -1) whichEl.visibility = "hide";
		}
		arrange();
	   }
	   else {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
		   if (tempColl(i).className == "child") tempColl(i).style.display = "none";
		}
	   }
	}   
	
	with (document) {
	   write("<STYLE TYPE='text/css'>");
	   if (NS4) {
		write(".parent {position:absolute; visibility:hidden}");
		write(".child {position:absolute; visibility:hidden}");
		write(".regular {position:absolute; visibility:hidden}")
	   }
	   else {
		write(".child {display:none}")
	   }
	   write("</STYLE>");
	}
	
	onload = initIt;