function setBlock(blockNo,flightCount,selDate,selTime,selLastDate,selLastTime,clickFlag){
 if(blockNo==0){
  document.frmBkgFltAvail.selDepartDate.value=selDate;
  document.frmBkgFltAvail.selDepartTime.value=selTime;
  document.frmBkgFltAvail.selDepartLastDate.value=selLastDate;
  document.frmBkgFltAvail.selDepartLastTime.value=selLastTime;
  document.frmBkgFltAvail.departureLeg.value=flightCount;
 }
 else if(blockNo==1){
  document.frmBkgFltAvail.selReturnDate.value=selDate;
  document.frmBkgFltAvail.selReturnTime.value=selTime;
  document.frmBkgFltAvail.selReturnLastDate.value=selLastDate;
  document.frmBkgFltAvail.selReturnLastTime.value=selLastTime;
  document.frmBkgFltAvail.returnLeg.value=flightCount;
 }
 if(clickFlag){
  document.frmBkgFltAvail.fareIndex.value="0";
 }
 return true;
}   
function openFlightDetailsWindow(hRef){
 hWnd=window.open(hRef,"messagewindow",'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=630,height=400,top=150,left=100');
 return(false);
}
function modifyDepartureDate(){
 document.frmBkgFltAvailModify.departDate.value=document.frmBkgFltAvail.DepartureDateModify.value;
 if(document.frmBkgFltAvailModify.departDate.value!=""){
   openWaitingWindow(WAR_NAME + '/main/portlets/global/booking/processingFlight.jsp'+COOKIE+SYMBOL+'processingPage=FltAvail','Processing');
   document.frmBkgFltAvailModify.submit();  
 }
}
function modifyReturnDate(){
 document.frmBkgFltAvailModify.returnDate.value=document.frmBkgFltAvail.ReturnDateModify.value;
 if(document.frmBkgFltAvailModify.returnDate.value!=""){
  openWaitingWindow(WAR_NAME + '/main/portlets/global/booking/processingFlight.jsp'+COOKIE+SYMBOL+'processingPage=FltAvail','Processing');
  document.frmBkgFltAvailModify.submit();       
 }
}
function modifyPassthru(isReturn){
 if(isReturn=="1"){
  document.frmBkgFltAvailModify.departDate.value=document.frmBkgFltAvail.DepartureDateModify.value;
  document.frmBkgFltAvailModify.returnDate.value=document.frmBkgFltAvail.ReturnDateModify.value;
  if(document.frmBkgFltAvailModify.returnDate.value!=""&&document.frmBkgFltAvailModify.departDate.value!=""){
   openWaitingWindow(WAR_NAME + '/main/portlets/global/booking/processingFlight.jsp'+COOKIE+SYMBOL+'processingPage=FltAvail','Processing');     
   document.frmBkgFltAvailModify.submit();       
  }
 }
 else{
  document.frmBkgFltAvailModify.returnDate.value=document.frmBkgFltAvail.ReturnDateModify.value;
  if(document.frmBkgFltAvailModify.returnDate.value!=""){
   openWaitingWindow(WAR_NAME + '/main/portlets/global/booking/processingFlight.jsp'+COOKIE+SYMBOL+'processingPage=FltAvail','Processing');     
   document.frmBkgFltAvailModify.submit();
  }
 }
}
function openAirCraftDetailsWindow(hRef){        
 hWnd=window.open(hRef,"messagewindow",'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=630,height=400,top=150,left=100');
 return(false);
}
function quitBooking(){    
 document.frmQuitBooking.submit();
}
function openTicketPickupWindow(hRef){                                
 hWnd=window.open(hRef,"messagewindow",'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=700,height=300,top=150,left=100');
 return(false);
}

function T_CCIBPopup(){
 t_ccibWnd=window.open(COMPLEX_PATH+"TermsAndConditionsDisplay.jsp"+COOKIE,"t_ccibwindow","toolbar=no,location=no,scrollbars=yes,resizable=yes,status=no,width=620,height=500,top10,left=275")
 return(false);
}

function F_CCIBPopup(){
 f_ccibWnd=window.open(COMPLEX_PATH+"FareConditionsDisplay.jsp"+COOKIE,"f_ccibwindow","toolbar=no,location=no,scrollbars=yes,resizable=yes,status=no,width=620,height=500,top10,left=275")
 return(false);
}