if(document.images)
{
   buttonover=new Image();
   buttonover.src="/index/images/index__07.gif";
   buttonout=new Image();
   buttonout.src="/index/images/index_07.gif";
   
   button1over=new Image();
   button1over.src="/index/images/index__08.gif";
   button1out=new Image();
   button1out.src="/index/images/index_08.gif";

   button2over=new Image();
   button2over.src="/index/images/index__09.gif";
   button2out=new Image();
   button2out.src="/index/images/index_09.gif";

   button3over=new Image();
   button3over.src="/index/images/index__10.gif";
   button3out=new Image();
   button3out.src="/index/images/index_10.gif";

   button4over=new Image();
   button4over.src="/index/images/index__11.gif";
   button4out=new Image();
   button4out.src="/index/images/index_11.gif";

   button5over=new Image();
   button5over.src="/index/images/index__12.gif";
   button5out=new Image();
   button5out.src="/index/images/index_12.gif";
   
   button6over=new Image();
   button6over.src="/index/images/index__13.gif";
   button6out=new Image();
   button6out.src="/index/images/index_13.gif";

   button7over=new Image();
   button7over.src="/index/images/index__14.gif";
   button7out=new Image();
   button7out.src="/index/images/index_14.gif";

   button8over=new Image();
   button8over.src="/index/images/index003_151.gif";
   button8out=new Image();
   button8out.src="/index/images/index003_15.gif";
   
   button9over=new Image();
   button9over.src="/index/images/index003_161.gif";
   button9out=new Image();
   button9out.src="/index/images/index003_16.gif";
   
   button10over=new Image();
   button10over.src="/index/images/index003_171.gif";
   button10out=new Image();
   button10out.src="/index/images/index003_17.gif";

   button11over=new Image();
   button11over.src="/index/images/index003_181.gif";
   button11out=new Image();
   button11out.src="/index/images/index003_18.gif";

   button12over=new Image();
   button12over.src="/index/images/index003_191.gif";
   button12out=new Image();
   button12out.src="/index/images/index003_19.gif";
   
   button13over=new Image();
   button13over.src="/index/images/index002_21_01.gif";
   button13out=new Image();
   button13out.src="/index/images/index002-21_01.gif";
   
   button14over=new Image();
   button14over.src="/index/images/index002_21_02.gif";
   button14out=new Image();
   button14out.src="/index/images/index002-21_02.gif";

   //用于“机构简介”
   button15over=new Image();
   button15over.src="/jgjj/images/jgjj__19.gif";
   button15out=new Image();
   button15out.src="/jgjj/images/jgjj_19.gif";

   button16over=new Image();
   button16over.src="/jgjj/images/jgjj__23.gif";
   button16out=new Image();
   button16out.src="/jgjj/images/jgjj_23.gif";
   
   button17over=new Image();
   button17over.src="/jgjj/images/jgjj__24.gif";
   button17out=new Image();
   button17out.src="/jgjj/images/jgjj_24.gif";

   button18over=new Image();
   button18over.src="/jgjj/images/jgjj__25.gif";
   button18out=new Image();
   button18out.src="/jgjj/images/jgjj_25.gif";

   button19over=new Image();
   button19over.src="/jgjj/images/jgjj__26.gif";
   button19out=new Image();
   button19out.src="/jgjj/images/jgjj_26.gif";
   
   button20over=new Image();
   button20over.src="/jgjj/images/jgjj__27.gif";
   button20out=new Image();
   button20out.src="/jgjj/images/jgjj_27.gif";
   
   button21over=new Image();
   button21over.src="/jgjj/images/jgjj__28.gif";
   button21out=new Image();
   button21out.src="/jgjj/images/jgjj_28.gif";

   //用于“政务公开”
   button22over=new Image();
   button22over.src="/zwgk/images/zwgk__19.gif";
   button22out=new Image();
   button22out.src="/zwgk/images/zwgk_19.gif";
   
   button23over=new Image();
   button23over.src="/zwgk/images/zwgk__23.gif";
   button23out=new Image();
   button23out.src="/zwgk/images/zwgk_23.gif";

   //用于“专家库管理”
   button24over=new Image();
   button24over.src="/zjk/images/zjk__19.gif";
   button24out=new Image();
   button24out.src="/zjk/images/zjk_19.gif";

   button25over=new Image();
   button25over.src="/zjk/images/zjk__23.gif";
   button25out=new Image();
   button25out.src="/zjk/images/zjk_23.gif";
   
   button26over=new Image();
   button26over.src="/zjk/images/zjk__24.gif";
   button26out=new Image();
   button26out.src="/zjk/images/zjk_24.gif";
   
   button27over=new Image();
   button27over.src="/zjk/images/zjk__25.gif";
   button27out=new Image();
   button27out.src="/zjk/images/zjk_25.gif";

   //用于“index里面的专家库”
   button28over=new Image();
   button28over.src="/index/images/index__41.gif";
   button28out=new Image();
   button28out.src="/index/images/index_41.gif";

   button29over=new Image();
   button29over.src="/index/images/index__44.gif";
   button29out=new Image();
   button29out.src="/index/images/index_44.gif";
   
   button30over=new Image();
   button30over.src="/index/images/index__46.gif";
   button30out=new Image();
   button30out.src="/index/images/index_46.gif";
   
   button31over=new Image();
   button31over.src="/index/images/index__47.gif";
   button31out=new Image();
   button31out.src="/index/images/index_47.gif";
	//咨询动态
   button32over=new Image();
   button32over.src="/zxdt/images/zxdt0_19.gif";
   button32out=new Image();
   button32out.src="/zxdt/images/zxdt_19.gif";

   button33over=new Image();
   button33over.src="/zxdt/images/zxdt0_23.gif";
   button33out=new Image();
   button33out.src="/zxdt/images/zxdt_23.gif";
	

   //咨询业管理
   button34over=new Image();
   button34over.src="/zxygl/images/zxygl__23.gif";
   button34out=new Image();
   button34out.src="/zxygl/images/zxygl_23.gif";

   button35over=new Image();
   button35over.src="/zxygl/images/zxygl__24.gif";
   button35out=new Image();
   button35out.src="/zxygl/images/zxygl_24.gif";

   button36over=new Image();
   button36over.src="/zxygl/images/zxygl__25.gif";
   button36out=new Image();
   button36out.src="/zxygl/images/zxygl_25.gif";
 }
   function over(imageName)
  {
     if(document.images)
	 {
	   document[imageName].src=eval(imageName+"over.src");
	  }
   }
   function out(imageName)
  {
     if(document.images)
	 {
	   document[imageName].src=eval(imageName+"out.src");
	  }
   }

//========================================================================================================
function openWin(name){
	if(name=="首页")
		window.location="/index/index.jsp";
	else if(name=="机构简介")
		window.location="/jgjj/jgjj.jsp";
	else if(name=="政务公开")
		window.location="/zwgk/zwgk.jsp";
	else if(name=="咨询动态"){
		window.location="/zxdt/zxdt.jsp";	
	}
	else if(name=="业务指标"){
		window.location="/gszb/gszb.jsp";	
	}
	else if(name=="咨询业管理"){
		window.location="/zxygl/zxygl.jsp";	
	}
	
	else if(name=="政策法规"){
		window.location="/zcfg/zcfg.jsp";	
	}
	else if(name=="咨询收费标准"){
		window.location="/sfbz/sfbz.jsp";	
	}
	else if(name=="项目评审"){
		window.location="/xmps/xmps.jsp";	
	}
	else if(name=="概算审核"){
		window.location="/gssh/gssh.jsp";	
	}
	else if(name=="中心公告"){
		window.location="/zxgg/zxgg.jsp";	
	}
	else if(name=="项目评审会议安排"){
		window.location="/hyap/hyap.jsp";	
	}
	else if(name=="中心位置"){
		window.location="/zxwz/zxwz.jsp";	
	}
	else if(name=="图片新闻"){
		window.location="/tpxw/tpxw.jsp";	
	}
	else if(name=="评审中心简介")
	    window.location="/jgjj/jgjj.jsp?type="+name;
	else if(name=="中心资信")
	    window.location="/jgjj/jgjj.jsp?type="+name;
    else if(name=="机构设置")
	    window.location="/jgjj/jgjj.jsp?type="+name;
	else if(name=="部门介绍")
	    window.location="/jgjj/jgjj.jsp?type="+name;
	else if(name=="综合办公室")
	    window.location="/jgjj/jgjj.jsp?type="+name;
	else if(name=="项目评审部")
	    window.location="/jgjj/jgjj.jsp?type="+name;
	else if(name=="概算审核部")
	    window.location="/jgjj/jgjj.jsp?type="+name;
	else if(name=="项目评审工作流程图")
		window.location="/zwgk/zwgk.jsp?type="+name;
	else if(name=="概算审核工作流程图")
		window.location="/zwgk/zwgk.jsp?type="+name;
	else if(name=="征集专家通知")
		window.location="/zjk/zjk.jsp?type="+name;
	else if(name=="专家申请表"){
		window.location="/zjk/zjk.jsp?type="+name;
	}
	else if(name=="专家库管理方法")
		window.location="/zjk/zjk.jsp?type="+name;
	else if(name=="专家评审工作指南")
		window.location="/zjk/zjk.jsp?type="+name;
	else window.location="/main/index005.jsp?name="+name;
}
//===========================================================================================================
function openRK(){
	window.open("/glrk/glrk.jsp","","");
}
//=====================================================================================================
function getQuXiao(){
    document.all["uname"].value="";
	document.all["upass"].value="";
	document.all["uname"].focus();
}
function getUser(){
	if(document.form1.uname.value=="")
	{
		alert("用户名不能为空！");
		document.form1.uname.focus();
	}
	else if(document.form1.upass.value=="")
	{
		alert("密码不能为空！");
		document.form1.upass.focus();
	}
	else
	{
		 var yhm=document.all["uname"].value;
	     var pw=document.all["upass"].value;
	     var myConn = new XHConn();
         myConn.connect("/servlet/MyLogin", "POST", "yhm="+yhm+"&pw="+pw, setNewWin1);
	}
}
function  setNewWin1(oXML)
{
  var permit=oXML.responseText;
  if(permit.length>8)
  {
	document.all["uname"].value="";
	document.all["upass"].value="";
	document.all["uname"].focus();
    window.location="/houtai/ht.jsp";
  }
  else 
	{
	  alert("错误的用户名或密码，请重输！");
	  document.all["uname"].value="";
	  document.all["upass"].value="";
	  document.all["uname"].focus();
	}
}
function setFocus(){
	document.all["uanme"].focus();
}

//===========================================================================================================
function setHT(name){
	form1.method="post";
    form1.action = "/houtai/listHouTai.jsp?name="+name;
	form1.submit();
}
function mOver(src){
	src.style.color="#000000";
}
function mOut(src){
	src.style.color="#6b696a";
}
function menuOver(src){
	src.style.color="#6b696a";
}
function menuOut(src){
	src.style.color="black";
}
//==================================================================================================

function openForm(mokuai,id){	
	if(id!=""){		
		if(mokuai=="项目评审"){
			window.open("/xmps/content.jsp?id="+id+"&mokuai="+mokuai,"","");	
		}
		else if(mokuai=="概算审核"){
			window.open("/gssh/content.jsp?id="+id+"&mokuai="+mokuai,"","");	
		}
		else if(mokuai=="图片新闻"){
			window.open("/tpxw/content.jsp?id="+id+"&mokuai="+mokuai,"","");	
		}
		else{
			window.open("/public/content.jsp?id="+id+"&mokuai="+mokuai,"","");
		}

	}
}
