function showmenu(){
	document.getElementById("searchmenu1").style.display="block";
 }

function showmenu_gl(){
	 var keyword=document.getElementById("headKeyword");
    if(keyword.value=="请输入关键字" || keyword.value==""){
    	alert("请输入关键字");
    	return false;	
    }
    window.open(encodeURI(encodeURI("../showpage/search.jsp?type="+keyword.value+"")),"_blank")
}
function colsemenu_zw(){
    var keyword=document.getElementById("headKeyword");
    if(keyword.value=="请输入关键字" || keyword.value==""){
    	document.getElementById("searchmenu1").style.display="none";
    	alert("请输入关键字");
    	return false;	
    }
	//search2.query.value =keyword.value; 
	search2.acceptCharset = "gbk";
	document.charset = "gbk"
	search2.query.value = keyword.value;
	search2.submit();
	document.getElementById("searchmenu1").style.display="none";
 }
 
function colsemenu_zl(){
    var keyword=document.getElementById("headKeyword");
    if(keyword.value=="请输入关键字" || keyword.value==""){
    	document.getElementById("searchmenu1").style.display="none";
    	alert("请输入关键字");
    	return false;	
    }
    var url = "../showpage/search.jsp?type="+keyword.value;
    
	window.open(encodeURI(encodeURI(url)),"_blank")
	document.getElementById("searchmenu1").style.display="none";
 }
 
function loginlt(){
  var username=document.getElementById('username').value;
  if(username==""){
  	window.open("http://www.nblr.gov.cn/Helloer/index.jsp","_blank")
  }else{
      document.getElementById('login').submit();
  }
 }
 function showHideMenu_div(type,obj){
 	if(type==1){
 		obj.style.display = "none";
 	}else if(type==2){
 		obj.style.display = "";
 	}
 }
 document.onmousedown = hiddenMenu;
 
 function hiddenMenu(){
 	if(document.getElementById("searchmenu1") && document.getElementById("searchmenu1").style.display=='block'){
 		document.getElementById("searchmenu1").style.display='none';
 	}
 }