 function show(item_name)
  {
    showhide=document.getElementById(item_name).style.display;
	if(showhide=='block'){
	    document.getElementById(item_name).style.display='none';
	}else{
	    document.getElementById(item_name).style.display='block';
	}
  }
  
  function hidden(item_name)
  {
	    document.getElementById(item_name).style.display='none';
  }
  
  function show_div(item_name)
  {
	    document.getElementById(item_name).style.display='block';
  }
  
function show_select(select_type,input_Name,select_W,select_H,select_bgImg,add_item,form_name,font_color,font_size){
		if (select_type==0)
		{
	        div_select_id="pro_class";	
		}
		else
		{
	        div_select_id="site_go";	
		}
	document.write("<style>")
    document.write(".select_kuang{width:"+(select_W-4)+"px;padding-left:4px;border:1px solid #cccccc;background:#ffffff;overflow:scroll;")
	document.write("overflow-x:hidden;padding-top:8px; position:relative;top:"+select_H+"px;;z-index:100;height:150px;left:-1px;")
	document.write("SCROLLBAR-FACE-COLOR:#B9BBBA ;SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; ")
	document.write("SCROLLBAR-3DLIGHT-COLOR: #ffffff;SCROLLBAR-ARROW-COLOR: #7E7E7E; SCROLLBAR-TRACK-COLOR: #ffffff;")
	document.write("SCROLLBAR-DARKSHADOW-COLOR: #ffffff;SCROLLBAR-BASE-COLOR: #ffffff}")
	document.write(".select_kuang ul{margin:0px;padding:0px;}")
	document.write(".select_kuang li{width:"+(select_W-1)+"px;font-size:"+font_size+"px;float:left;clear:both;padding:3px 5px 2px 5px;}")
	document.write(".select_value{width:10px;display:none;}")
	document.write("</style>")
	document.write ("<div style=\"width:"+select_W+"px;height:"+select_H+"px;background:url("+select_bgImg+") repeat-y right;line-height:19px;padding-left:4px;text-align:left;color:"+font_color+";cursor:default;\" onclick=\"show('"+div_select_id+"')\">");
	document.write ("<div style=\"position:absolute;top:"+(document.body.offsetHeight-198)+"px\">")
	document.write ("<div class=\"select_kuang\" id=\""+div_select_id+"\" style=\"display:none;cursor:default;\" onmousemove=\"show_div('"+div_select_id+"')\" onmouseout=\"hidden('"+div_select_id+"')\">")
	document.write ("<ul>");
	for(i=0;i<add_item.length;i++)
	{
		select_option=add_item[i].split("|",2)[0];
		select_value =add_item[i].split("|",2)[1];
		if (select_type==0)
		{
	        document.write ("<li id=item_"+i+" onmousemove=\"javas"+"cript:this.style.background='#e8e8e8'\" onmouseout=\"javas"+"cript:this.style.background=''\" onclick=\"add_value('"+input_Name+"','"+select_option+"','"+select_value+"','"+form_name+"')\" >"+select_option+"</li><div id=\"value_"+i+"\" class=\"select_value\">"+select_value+"</div>")	
		}
		else if(select_type==1)
		{
	        document.write ("<li id=item_"+i+" onmousemove=\"javas"+"cript:this.style.background='#e8e8e8'\" onmouseout=\"javas"+"cript:this.style.background=''\" onclick=\"go_url('"+select_option+"','"+select_value+"')\" >"+select_option+"</li><div id=\"value_"+i+"\" class=\"select_value\">"+select_value+"</div>")	
		}
	}
	document.write ("</ul>")
	document.write ("</div>")
	document.write ("</div><div id=\"item_all\">"+add_item[0].split("|",2)[0]+"</div></div>")
	
	}
  
  
  
  
  function add_value(input_Name,select_option,select_value,form_name)
  {
	  select_option=select_option
	  if(select_value==0){select_value=''}
	  eval("document."+form_name+"."+input_Name+".value='"+select_value+"'")
	  if(navigator.appName.indexOf("Explorer") > -1){
        document.getElementById("item_all").innerText=select_option;
      } else{
        document.getElementById("item_all").textContent=select_option;
      }
  }
  
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


  function go_url(select_option,select_value){
	  if (select_value!=0){
	      MM_openBrWindow(select_value,'','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')
	  }
  }



