//Airline Fill
function select_airline_by_airport(){  
	var i;
	var j=0;  
	var intselect;
	var strPipe="|"  
		
	//alert(document.getElementById("PickupAddressType").options[document.getElementById("PickupAddressType").selectedIndex])
		
	var objPairport=document.getElementById("PickupAddressType").options[document.getElementById("PickupAddressType").selectedIndex]
	var objPairline=document.getElementById("ddlFromAirline")
	var objhidairline=document.getElementById("hidddlAirline")
		
	objPairline.length = 0;
	objPairline.options[0] = new Option("Select Airline",""+"|"+"");
		
	for(i=1; i<objhidairline.options.length;i++){ 
		var p_arr=objhidairline.options[i].value.split(strPipe); 
		if(p_arr[0]==objPairport.value){
			j=j+1;
			objPairline.options[j] = new Option(objhidairline.options[i].text,objhidairline.options[i].value, true, true);
		}
	}
	objPairline.selectedIndex=0;
	FromAirlineValue();
}	

/*********************************************************************************
**function:FromAirlineValue
**Description:validate the pu information 
**Input:s
**Output:s
**08/20/07 - Created (Daniel)
*********************************************************************************/
function FromAirlineValue(){

	if (document.getElementById("ddlFromAirline").selectedIndex>0){
		var strPipe="|";
		var strAll=document.getElementById("ddlFromAirline").options[document.getElementById("ddlFromAirline").selectedIndex].value.split(strPipe); 
		document.getElementById("txtterminal").value=strAll[1];
		document.getElementById("txtpickupPoint").value=strAll[2];
		document.getElementById("txtdirections").value=strAll[3];		
	}	
	
}	

function Show_AllInformation(){
	document.getElementById("tr_terminal").style.display="";
	document.getElementById("tr_pickuppoint").style.display="";
	document.getElementById("tr_directions").style.display="";
}