 function selectcityfeatureinfo(cityname){
		var returninfo="",featurename="";
		if(cityname=="杭州"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="杭州")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
				    if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=1&title="+cityfeatureinfo[j][3]+"&name=hangzhou&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					    returninfo+="<a href=dishi/list.jsp?id=1&title="+cityfeatureinfo[j][3]+"&name=hangzhou&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=hangzhou&id=1 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=hangzhou&id=1";
            document.getElementById("citypic").src="images/city_img.gif";
		}else if(cityname=="宁波"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="宁波")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=2&title="+cityfeatureinfo[j][3]+"&name=ningbo&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					    returninfo+="<a href=dishi/list.jsp?id=2&title="+cityfeatureinfo[j][3]+"&name=ningbo&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
					
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=ningbo&id=2 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=ningbo&id=2";
            document.getElementById("citypic").src="images/2.gif";
		}else if(cityname=="湖州"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="湖州")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=7&title="+cityfeatureinfo[j][3]+"&name=huzhou&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					    returninfo+="<a href=dishi/list.jsp?id=7&title="+cityfeatureinfo[j][3]+"&name=huzhou&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
					

				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=huzhou&id=7 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=huzhou&id=7";
            document.getElementById("citypic").src="images/3.gif";
		}else if(cityname=="丽水"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="丽水")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=10&title="+cityfeatureinfo[j][3]+"&name=lishui&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=10&title="+cityfeatureinfo[j][3]+"&name=lishui&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
					
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=name=lishui&id=10 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=lishui&id=10";
            document.getElementById("citypic").src="images/4.gif";
		}else if(cityname=="温州"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="温州")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=5&title="+cityfeatureinfo[j][3]+"&name=wenzhou&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}else{
						returninfo+="<a href=dishi/list.jsp?id=5&title="+cityfeatureinfo[j][3]+"&name=wenzhou&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=name=wenzhou&id=5 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=wenzhou&id=5";
            document.getElementById("citypic").src="images/5.gif";
		}else if(cityname=="舟山"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="舟山")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=9&title="+cityfeatureinfo[j][3]+"&name=zhoushan&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=9&title="+cityfeatureinfo[j][3]+"&name=zhoushan&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?nname=zhoushan&id=9 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=zhoushan&id=9";
            document.getElementById("citypic").src="images/6.gif";
		}else if(cityname=="嘉兴"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="嘉兴")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=4&title="+cityfeatureinfo[j][3]+"&name=jiaxing&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=4&title="+cityfeatureinfo[j][3]+"&name=jiaxing&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
					
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=jiaxing&id=4 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=jiaxing&id=4";
            document.getElementById("citypic").src="images/7.gif";
		}else if(cityname=="绍兴"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="绍兴")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=3&title="+cityfeatureinfo[j][3]+"&name=shaoxing&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=3&title="+cityfeatureinfo[j][3]+"&name=shaoxing&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
					
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=shaoxing&id=3 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=shaoxing&id=3";
            document.getElementById("citypic").src="images/8.gif";
		}else if(cityname=="金华"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="金华")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=8&title="+cityfeatureinfo[j][3]+"&name=jinhua&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=8&title="+cityfeatureinfo[j][3]+"&name=jinhua&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}	
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=jinhua&id=8 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=jinhua&id=8";
            document.getElementById("citypic").src="images/9.gif";
		}else if(cityname=="衢州"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="衢州")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=11&title="+cityfeatureinfo[j][3]+"&name=quzhou&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=11&title="+cityfeatureinfo[j][3]+"&name=quzhou&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}	
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=quzhou&id=11 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=quzhou&id=11";
            document.getElementById("citypic").src="images/10.gif";
		}else if(cityname=="台州"){
		   for (var j=0;j <cityfeatureinfo.length;j++)
			{    
				if(cityfeatureinfo[j][2]=="台州")
				{
					
					if(cityfeatureinfo[j][1]!="" && cityfeatureinfo[j][1].length>6){
					    featurename = cityfeatureinfo[j][1].substring(0,6);
					}else{
					    featurename = cityfeatureinfo[j][1] ;
					}
					if(cityfeatureinfo[j][4]=="0"){
						returninfo+="<a href=dishi/display.jsp?id=6&title="+cityfeatureinfo[j][3]+"&name=taizhou&fid="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
				    }else{
					   returninfo+="<a href=dishi/list.jsp?id=6&title="+cityfeatureinfo[j][3]+"&name=taizhou&FEATUREID="+cityfeatureinfo[j][0]+" target=_blank title="+cityfeatureinfo[j][1]+">"+featurename+"</a>";
					}
				}	
			}
			document.getElementById("scityinfo").innerHTML=returninfo+"<a href=dishi/index.jsp?name=taizhou&id=6 class=much target=_blank></a>";
			document.getElementById("cityhref").href="dishi/index.jsp?name=taizhou&id=6";
            document.getElementById("citypic").src="images/11.gif";
		}
	
	}
	
function selectCitydiv(obj){
oPopup = window.createPopup(); 
	var oBody = oPopup.document.body;

		var ss = oPopup.document.createStyleSheet();

		ss.addRule("a","color:#3c7411;text-decoration:none;"); 
		ss.addRule("a:hover","color:#CC3300;"); 

		oBody.innerHTML = getSelectCityInformation();
		var flash = document.getElementById("citydiv");
		var x,y;

			x = flash.offsetLeft;
			y = flash.offsetTop;
				//	alert(x);

		  oPopup.show(x+960,y+25,50,175,document.body);

}

function getSelectCityInformation(){


		var returnValue = "";
				
				
				
					
				
				returnValue += "<div style='position:relative;border:1px #000000 solid;width:50px;z-index:80;font-size:10pt;padding:3px'>"

				returnValue += "<div>"//getselectCityValueByCityName(杭州)
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"杭州\");' >杭州</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"宁波\")'>宁波</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"温州\")'>温州</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"绍兴\")'>绍兴</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"嘉兴\")'>嘉兴</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"湖州\")'>湖州</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"金华\")'>金华</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"衢州\")'>衢州</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"丽水\")'>丽水</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"台州\")'>台州</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div>"
				returnValue += "<a href='#' onmousedown='parent.getselectCityValueByCityName(\"舟山\")'>舟山</a>&nbsp;"
				returnValue += "</div>"
				
				

				
	return returnValue;

}
//写cookies函数 
function SetCookie(name,value)//两个参数，一个是cookie的名子，一个是值
{
    var Days = 30; //此 cookie 将被保存 30 天
    var exp  = new Date();    //new Date("December 31, 9998");
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name)//取cookies函数        
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr != null) return unescape(arr[2]); return null;

}
function delCookie(name)//删除cookie
{
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval=getCookie(name);
    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}
function getselectCityValueByCityName(CityName){
document.getElementById("cityinfo").innerHTML="城市:"+CityName;
 var key ="CityName="+CityName;
	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
				http_request = new XMLHttpRequest();
			}
			
			else if (window.ActiveXObject) { // IE
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			http_request.open("post","getWeather.jsp",true);
			http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");	
			http_request.onreadystatechange =function()
			
			{ 
				if(http_request.readyState == 4)
					
				      { 
					 if(http_request.status == 200 && http_request.responseText)
						{
						
							var weatherStr,weatherinfo;
							weatherStr= http_request.responseText;
							if(weatherStr!=null){
							  weatherStr = weatherStr.split("##");
							   weatherinfo = weatherStr[0]+"  "+weatherStr[1];
							  selectWeatherByPic(weatherStr[1]);
							}
							document.getElementById("cityinfoweather").innerHTML=weatherinfo;
                            SetCookie("cityname",CityName);
							//SetCookie("cityinfoweather",weatherinfo);
						}
					 }
				} 
		     http_request.send(key); 
	  if(parent.oPopup!=undefined){
		oPopup.hide();
		oPopup = null;}
		
}
/*
通过天气变化取图片
*/
function selectWeatherByPic(weather){
   var WeahterPic;
   if(weather!=null){
     
	    if(weather.indexOf("大雪")!=-1 || weather.indexOf("暴雪")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_1.gif>";
		}else if(weather.indexOf("中雪")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_2.gif>";
		}else if(weather.indexOf("雪")!=-1 || weather.indexOf("有雪")!=-1 || weather.indexOf("小雪")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_4.gif>";
		}else if(weather.indexOf("雨夹雪")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_5.gif>";
		}else if(weather.indexOf("大雨")!=-1 || weather.indexOf("暴雨")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_6.gif>";
		}else if(weather.indexOf("中雨")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_7.gif>";
		}else if(weather.indexOf("雷雨")!=-1 || weather.indexOf("雷阵雨")!=-1 || weather.indexOf("阵雨")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_8.gif>";
		}else if(weather.indexOf("雨")!=-1 || weather.indexOf("小雨")!=-1 || weather.indexOf("有雨")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_9.gif>";
		}else if(weather.indexOf("大雾")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_10.gif>";
		}else if(weather.indexOf("雾")!=-1 || weather.indexOf("有雾")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_11.gif>";
		}else if(weather.indexOf("阴")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_12.gif>";
		}else if(weather.indexOf("多云")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_13.gif>";
		}else if(weather.indexOf("云")!=-1 || weather.indexOf("有云")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_14.gif>";
		}else if(weather.indexOf("晴")!=-1){ 
		   WeahterPic = "<img src=images/weather/weather_15.gif>";
		}
		 document.getElementById("weatherPic").innerHTML=WeahterPic;
        //  SetCookie("WeahterPic",WeahterPic);
   
   }
}

function swf(file,w,h) {
//document.write('<div style=\"float:left\">')
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+file+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+file+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>');
document.write('</object>');
//document.write('</div>')



/*

var flash = document.getElementById("flashdiv");
var x,y;

	x = flash.offsetLeft;
	y = flash.offsetTop;


var logo = document.createElement("div");
  

	
	  with(logo){

		  style.position	=	"relative";
		  style.width		=	"143px";
		 style.height		=	"0px";
			style.left		=	x;		
		 style.top			=   y-100;
		// style.backgroundImage    = "images/logo.gif";

		//  style.border		=	"1px #000 solid";
		 //style.float		=	"left";
	  }
	logo.innerHTML = "<img src='images/logo.gif'/>";
	
	flash.insertBefore(logo);
	logo.style.height="0px"
	//alert(logo.style.height);

	
*/
}

function typeDetail(){

	var var1="";
	thisform=document.getElementById("charge_form");
	var1=thisform.TypeName.value;
	if(var1=="0"){
		window.open("charge/charge.jsp?TypeName="+thisform.TypeName.value,"","height=280,width=270,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no,left=0,top=0");
	}
	
}


function planType(obj,i,img,src){
	
	var userImg = img
	var userObject = obj;
	var parentObject = userObject.parentNode;
	var publicSearch = document.getElementById("publicSearch");


	var firstNode = parentObject.childNodes[0]
	var secondNode = parentObject.childNodes[1]
	var thirdNode = parentObject.childNodes[2]
	var fourNode = parentObject.childNodes[3]
	var fiveNode = parentObject.childNodes[4]

		firstNode.innerHTML = "<img src=\"imagesYs/cxch2.gif\"  width=\"78\" height=\"26\" style=\"cursor:hand\" onclick=\"planType(this.parentNode,1,'cxch','plan.html')\"/>";
		secondNode.innerHTML = "<img src=\"imagesYs/qcyp2.gif\" width=\"78\" height=\"26\" style=\"cursor:hand\" onclick=\"planType(this.parentNode,3,'qcyp','car.html')\"/>";
		thirdNode.innerHTML = "<img src=\"imagesYs/csgj2.gif\" width=\"78\" height=\"26\" style=\"cursor:hand\" onclick=\"planType(this.parentNode,2,'csgj','bus.html')\"/>";
		fourNode.innerHTML = "<img src=\"imagesYs/mhdg2.gif\" width=\"78\" height=\"26\" style=\"cursor:hand\" onclick=\"planType(this.parentNode,4,'mhdg','air.jsp')\"/>";
		fiveNode.innerHTML = "<img src=\"imagesYs/ssky2.gif\" width=\"78\" height=\"26\" style=\"cursor:hand\" onclick=\"planType(this.parentNode,5,'ssky','water.html')\"/>";
		
		userObject.innerHTML = "<img src=\"imagesYs/" + userImg + ".gif\" width=\"78\" height=\"26\" />";
		publicSearch.src = src;
		

}




function fPopUpCalendarDlg(ctrlobj)
{
	showx = event.screenX - event.offsetX; 
	showy = event.screenY - event.offsetY + 18; 
	newWINwidth =18;

	retval = window.showModalDialog("calendar/calendardlg.htm", "", "dialogWidth:200px; dialogHeight:190px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
	if( retval != null ){
		ctrlobj.value = retval;
	}
}


function dosearch(theForm){

	if (theForm.FirstStation.value == "" || theForm.FinalStation.value == ""){
		alert("出发地或目的地不能为空！");
		theForm.FirstStation.focus();
		return;
	}

	switch(parseInt(theForm.tripType.value)){

		case 1:
			//alert("所有");
			theForm.submit();
			break;
		case 2:
			//alert("火车");	
			//window.open("KeYunChaXun/index.jsp?ClassId=2&FirstStation="+theForm.FirstStation.value+"&FinalStation="+theForm.FinalStation.value);
			window.open("KeYunChaXun/chaxun1.jsp?TrafficID=1&FirstStation="+theForm.FirstStation.value+"&FinalStation="+theForm.FinalStation.value);
			break;
		case 3:
			//alert("汽车");
			//window.open("KeYunChaXun/index.jsp?ClassId=2&FirstStation="+theForm.FirstStation.value+"&FinalStation="+theForm.FinalStation.value+"&setoutdate="+theForm.tripType.value);
			window.open("KeYunChaXun/index.jsp?var1="+theForm.FirstStation.value+"&var2="+theForm.FinalStation.value);
			break
		case 4:
			//alert("飞机");	
            //window.open("KeYunChaXun/index.jsp?ClassId=3&FirstStation="+theForm.FirstStation.value+"&FinalStation="+theForm.FinalStation.value);
			window.open("KeYunChaXun/chaxunair.jsp?airTrafficID=2&AirFirstStation="+theForm.FirstStation.value+"&AirFinalStation="+theForm.FinalStation.value);
			break
		default:
			theForm.submit();
			break;

	}
}





function sslkfunc(obj,i,str){

	var userObject = obj
		var num = i
	var myArray = new Array();
/*	var parentObject = userObject.parentNode
	
	var lastChild = parentObject.childNodes[6].childNodes[0]
			alert(lastChild);
	

		parentObject.childNodes[2].className = "dslk_0";
		parentObject.childNodes[3].className = "csj_0";
		parentObject.childNodes[4].className = "wxyh_0";
		parentObject.childNodes[5].className = "zj_0";

	var userClassName = userObject.className

		userObject.className = userClassName + "0";
     */
	   if(num==0){
       document.getElementById("zj").className="pick";
	   document.getElementById("zj1").className="";
	   document.getElementById("zj2").className="";
	   document.getElementById("zj3").href=str;
	   }else if(num==1){
	   document.getElementById("zj").className="";
	   document.getElementById("zj1").className="pick";
	   document.getElementById("zj2").className="";
	   document.getElementById("zj3").href=str;
	   }else if(num==2){
	   document.getElementById("zj").className="";
	   document.getElementById("zj1").className="";
	   document.getElementById("zj2").className="pick";
	   document.getElementById("zj3").href=str;
	   }
		myArray[0] = document.getElementById("ssluTable0")
		myArray[1] = document.getElementById("ssluTable1")
		myArray[2] = document.getElementById("ssluTable2")
	//	myArray[3] = document.getElementById("ssluTable3")

		for(var i=0;i<3;i++){
			
			myArray[i].style.display = "none";
		
		}
		myArray[num].style.display   = "block";
	//	lastChild.href = str;


}





var objFocus
var oPopup


function EventFocus(obj,width,height){



	oPopup = window.createPopup(); 
	var oBody = oPopup.document.body;

		var ss = oPopup.document.createStyleSheet();

		ss.addRule("a","color:#333333;text-decoration:none;"); 
		ss.addRule("a:hover","color:#FF0000;text-decoration:underline;"); 

		oBody.innerHTML = getStationInformation();

		var x,y
		objFocus = obj

			x = obj.offsetLeft
			y = obj.offsetTop

			while(obj = obj.offsetParent){

				x += obj.offsetLeft; 
				y += obj.offsetTop; 
			}

		  oPopup.show(x+1,y+25,width,height,document.body);
}





function setValue(obj){

		objFocus.value = obj.innerText
		oPopup.hide();
		oPopup = null;
}



function openPop(obj,popCode,width,height){


	
	oPopup = window.createPopup(); 
var oBody = oPopup.document.body;

	var theForm = obj.form;
	var radios = theForm.carTypeRadio;


		for(var i = 0 ; i < radios.length ; i++){
				
			if (radios[i].tag == obj.value){
				
				radios[i].checked = true;
				break;
			}
		
		}

	oBody.innerHTML = popCode.innerHTML;

	var x,y
	objFocus = obj

		x = obj.offsetLeft
		y = obj.offsetTop

		while(obj = obj.offsetParent){

			x += obj.offsetLeft; 
			y += obj.offsetTop; 
		}

	  oPopup.show(x,y+23,width,height,document.body);

}



//-->

function setValue4Pop(theForm){

		

		var retrunValue = "";
		var integer = 0;
		var radios = theForm.carTypeRadio;
		var nextSibling = objFocus.nextSibling;
		
			for(var i = 0 ; i < radios.length ; i++){
					
				if (radios[i].checked){

					retrunValue = radios[i].value;
					integer = i;
					break;
				}
			
			}
	

		objFocus.value = radios[integer].tag;
		nextSibling.value = retrunValue;
		oPopup.hide();
		oPopup = null;
}




function getStationInformation(){


		var returnValue = "";
				
				
							
				
				returnValue += "<div style='border:1px #000000 solid;width:400px;z-index:100;font-size:10pt;padding:3px'>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>杭州</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>富阳</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>建德</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>临安</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>桐庐</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>淳安</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>宁波</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>奉化</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>慈溪</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>余姚</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>象山</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>宁海</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>温州</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>瑞安</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>永嘉</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>乐清</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>洞头</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>泰顺</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>文成</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>平阳</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>苍南</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>绍兴</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>诸暨</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>嵊州</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>上虞</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>新昌</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>嘉兴</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>桐乡</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>海宁</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>平湖</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>海盐</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>嘉善</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>湖州</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>德清</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>长兴</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>安吉</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>金华</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>东阳</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>兰溪</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>义乌</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>永康</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>浦江</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>武义</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>磐安</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>衢州</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>江山</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>开化</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>龙游</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>常山</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>丽水</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>龙泉</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>遂昌</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>松阳</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>景宁</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>青田</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>庆元</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>缙云</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>云和</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>台州</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>临海</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>温岭</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>天台</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>三门</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>仙居</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>玉环</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>舟山</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>岱山</a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'>嵊泗</a>&nbsp;"
				returnValue += "</div>"

				returnValue += "<div style='margin-top:4px;margin-bottom:4px;'>"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>上海</b></a>&nbsp;"
				returnValue += "<a href='#' onmousedown='parent.setValue(this)'><b>苏州</b></a>&nbsp;"
				returnValue += "</div>"
				
				

				
	return returnValue;

}




function changeSreach(obj){

	$(".cmenu > li > a").each(function(i){this.className = "";});
	$(obj).attr("className","pick");
	$("#plan").load($(obj).attr("value") + ".html");

}





