
	
	function enterSearch(){
	/*		
	var str = String("/vacancy/search");
	//str = str + String(search_form.select.value) ;
	res = document.getElementById("search_type");
	//alert(search_form.select.value);	exit;
	search_form.action = "/"+ String(res) +"/search";
	alert(search_form.action);
	
	*/
	
	var str = String("/vacancy/search");
	//str = str + String(form1.select.value) ;
	res = document.getElementById("search_type");
	//alert(res.value);
	//exit;
	//alert(document.getElementById("search_form_id").action);
	document.getElementById("search_form_id").action= "/"+ String(res.value) +"/search";
	//alert(document.getElementById("search_form_id").action);

	
}
		
		function go(v){
  if(v == 0){
    alert("Выберите рубрику второго уровня");
  }

}

 jsHover = function() {
    var hEls = document.getElementById("mmenu").getElementsByTagName("LI");
    for (var i=0, len=hEls.length; i<len; i++) {
      hEls[i].onmouseover=function() { this.className+=" jshover"; }
      hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
    }
  }
  if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
  
  
  dom = (document.getElementById)? true : false;
  isOpera = (window.opera)? true : false;
isOpera7 = (isOpera && document.readyState)? true : false;
  function  showLogin(islogin) {
	if( isOpera &&  !isOpera7 ) {
		return true;
	} else if (dom) {
		document.getElementById('login-form').style.display = "block";
                if(islogin){
		    document.forms['login'].passwd.focus();
                }
                else{
		    document.forms['login'].login.focus();
                }
		return false;
	}
	return true;
}

function hideLogin() {
	document.getElementById('login-form').style.display = "none";
	return false;
}

  function  showReg(islogin) {
	if( isOpera &&  !isOpera7 ) {
		return true;
	} else if (dom) {
		document.getElementById('reg-form').style.display = "block";
		return false;
	}
	return true;
}

function hideReg() {
	document.getElementById('reg-form').style.display = "none";
	return false;
}
