	function selet(str,Dimg)
	{
		if(str.style.display == "none")
		{
		    
			str.style.display = "block" ;
			Dimg.src = "Images/blue_yin.gif" ;
			Dimg.title="显示最低舱位"
		}
		else
		{
			str.style.display = "none" ;
			Dimg.src = "Images/blue_xiang.gif" ;
			Dimg.title="显示所有舱位"
		}
	}
	
	function YuDJ(Yu01,Yu02,Yu03,Yu04,Yu05,Yu06,Yu07,Yu08,Yu09,Yu10,Yu11,Yu12,Yu13,Yu14,Yu15,sAirV03,C_Price,B_Price,licheng,sPrice)
	{
		var Str,intStr,AirID,Scity01,Scity02,Scity03,Scity04,Scity05,StrV ;
		Str = Yu01+"$"+Yu02+"$"+Yu03+"$"+Yu04+"$"+Yu05+"$"+Yu06+"$"+Yu07+"$"+Yu08+"$"+Yu09+"$"+Yu10+"$"+Yu11+"$"+Yu12+"$"+Yu13+"$"+Yu14+"$"+Yu15+"$"+C_Price+"$"+B_Price+"$"+licheng+"$"+sPrice ;
		if(sAirV03 == "1")
		{	
			document.getElementById("Inf_1").value = Str              //保存第一程的预订信息
            inf_2 = document.getElementById("Inf_2").value;           //保存第二程的查询条件
			document.Reform.strValue.value = inf_2 ;
			document.Reform.re_both.value = "0";
			document.Reform.submit() ;				//查下一程
		}
		else
		{
			inf_1 = document.getElementById("Inf_frist").value
			if(inf_1 !="")
			{
			    Str = inf_1 + "@" + Str ;
			    strtmp = Str.split("@");
				//Str2 = strtmp[1];
				str1tmp = strtmp[0].split("$");
				str2tmp = strtmp[1].split("$");
				sDate1 = str1tmp[0];
				sDate2 = str2tmp[0];
				sDate1 = sDate1.replace(/-/g,"/");
				sDate2 = sDate2.replace(/-/g,"/");
				if(Date.parse(sDate1)-Date.parse(sDate2)>=0)
				{
					alert("回程日期小于出发日期,请重新选择!");
					return false;
				}
			}
			document.submitForm.StrValue.value = Str ;		//预订
			document.submitForm.submit() ;
		}
	}
	//重新查询
	function TJDD()		
	{ 
		var sCity = document.Reform.startcity01.value ;		//出发城市
		var eCity = document.Reform.EndCity01.value	;		//到达城市
		var sDate = document.Reform.StrDate01.value ;		//出发日期
		var sAirc = document.Reform.airlineCode01.value ;	//航空公司
		var airID = document.Reform.airID.value ;			//授权号
		var strTag = document.Reform.strTag.value ;			//票志号
		//var sPword = document.Reform.sPword.value ;			//授权密码
		//var order_flag = document.Reform.order_flag.value ;	//状态
		var strV = sCity+"@"+eCity+"@"+sDate+"@"+sAirc+"@"+strTag+"@"+airID;
		if(document.Reform.re_both.value == "0")                 
		{
		    if(document.Reform.Inf_frist.value != "")                //处理第二程的重新查询
			{
			  document.Reform.Inf_1.value = document.Reform.Inf_frist.value;
			}
			strV = strV;			//单程
		}
		else
		{
		    document.Reform.re_both.value = "1"
			strV = strV;          //多程也当单程处理
		}
		document.Reform.strValue.value = strV ;
 		document.Reform.submit();
	}

var popUpWin=0;
function openURL(strValue)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
	popUpWin = open('YDGJ_ticket.asp?strValue='+strValue, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=no,copyhistory=yes,width=500,height=500,left=0, top=10');
}

function GetJX(par)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
	popUpWin = window.open('ShowJX.asp?strValue='+par, 'newwindow', 'height=380, width=470,left=300,top=200,scrollbars=auto,toolbar=no,location=no,directories=no,menubar=no');
}

function Cbo_Error(status,statusText,responseText)
{
  alert(responseText) ;
}

function query(year,month,day)
{
    var now = new Date(); 
    var nowday = now.getDate();
	var nowyear = now.getYear();
	var nowmonth = now.getMonth()+1;
	if(nowyear>year)
	{
	  	return;
	}
    if(nowyear>=year&&(nowmonth>=month||year<nowyear)&&day-nowday<0)
	{
		return;
	}
	else
	{
		document.Reform.StrDate01.value = year+"-"+month+"-"+day;
		TJDD();
	}
}

function GetZQ(Airs,CW)
{
	var cbo = new CallBackObject() ;
	cbo.OnComplete = ShowZq;
	cbo.onError = Cbo_Error;
	x=event.clientX + document.body.scrollLeft;
	y=event.clientY + document.body.scrollTop;
	cbo.DoCallBack("zq_show.asp?Airs="+Airs+"&CW="+CW+"&X="+x+"&Y="+y+"") ;
}

function GetJT(Fltno,Dates,Num,air_ID)
{
  if(parseInt(Num)>0)
  {
    var cbo = new CallBackObject() ;
	cbo.OnComplete = ShowJT;
	cbo.onError = Cbo_Error;
	x=event.clientX + document.body.scrollLeft;
	y=event.clientY + document.body.scrollTop;
	cbo.DoCallBack("jt_show.asp?Fltno="+Fltno+"&Dates="+Dates+"&air_ID="+air_ID+"&X="+x+"&Y="+y+"") ;
  }
}

function ShowJT(responseText,responseXML)
{
     if(responseText=="")
	 {
	 	return;
	 }
	 else
	 {
	     re_arr = new Array();
		 re_arr = responseText.split("@");
		 //return;
		 var content = re_arr[0];
		 var x = re_arr[1];
		 var y = re_arr[2];
		 floatArea=document.getElementById("jt");
		 floatArea.style.display="none";
		 floatArea.innerHTML = "<div id=\"floatcontentzq\">";
		 floatArea.innerHTML += "<div class=\"c\" align=\"center\"><strong>经停信息</strong>";
	     floatArea.innerHTML += "<div class=\"d\"  align=\"left\" style=\"background-color:#F3F8FE\">"+content+"<br><br>";
	     floatArea.innerHTML += "</div></div>";
		 floatArea.style.left=(x-150)+"px";
		 floatArea.style.top=y+"px";
		 floatArea.style.width="250px";
		 floatArea.style.height="150px";
		 floatArea.style.display="";
     }
}

function ShowZq(responseText,responseXML)
{
	 if(responseText=="")
	 {
	 	return;
	 }
	 else
	 {
	     re_arr = new Array();
		 re_arr = responseText.split("@");
		 var content = re_arr[0];
		 var x = re_arr[1];
		 var y = re_arr[2];
	     floatArea=document.getElementById("zq");
		 floatArea.style.display="none";
		 floatArea.innerHTML = "<div id=\"floatcontentzq\">";
		 floatArea.innerHTML += "<div class=\"a\" align=\"left\">&nbsp;&nbsp;&nbsp;<strong>退改签规定</strong>";
	     floatArea.innerHTML += "<div class=\"b\"  align=\"left\" style=\"background-color:#F3F8FE\">"+content+"<br><br>";
	     floatArea.innerHTML += "</div></div>";
		 floatArea.style.left=(x-200)+"px";
		 floatArea.style.top=(y-10)+"px";
		 floatArea.style.width="250px";
		 floatArea.style.height="150px";
		 floatArea.style.display="";
	 }
}


function closeFloat_ZQ()
{
	 floatArea=document.getElementById("zq");
	 floatArea.innerHTML="";
	 floatArea.style.display="none";
}

function closeFloat_JT()
{
	 floatArea=document.getElementById("jt");
	 floatArea.innerHTML="";
	 floatArea.style.display="none";
}
