function setCities()
{
	document.ArrivalDepartureInformationForm.searchByFlightNo.value="false";
	document.ArrivalDepartureInformationForm.flightNum.value="";
	document.ArrivalDepartureInformationForm.depCity.focus();
}
function setFlightNo()
{
	document.ArrivalDepartureInformationForm.searchByFlightNo.value="true";
	document.ArrivalDepartureInformationForm.flightNum.focus();
	document.ArrivalDepartureInformationForm.depCity.value="";
	document.ArrivalDepartureInformationForm.destCity.value="";
}
function setDepartureTime()
{
	document.ArrivalDepartureInformationForm.radioTime[0].checked=true;
	document.ArrivalDepartureInformationForm.radioTime[1].checked=false;
	document.ArrivalDepartureInformationForm.getScheduleBy.value="DEPARTURE";
}
function setArrivalTime()
{
	document.ArrivalDepartureInformationForm.radioTime[0].checked=false;
	document.ArrivalDepartureInformationForm.radioTime[1].checked=true;
	document.ArrivalDepartureInformationForm.getScheduleBy.value="ARRIVAL";
}
function selectCitiesOption()
{
	document.ArrivalDepartureInformationForm.searchByFlightNo.value="false";
	document.ArrivalDepartureInformationForm.flightNum.value="";
	noneBlock('fltSrchFltNum!0','fltSrchCities!1','fltSrchTime!1');
	cssSwitch ('radioFlightNo!','radioCities!formlabelon');
	document.ArrivalDepartureInformationForm.fltSrch[1].checked=true;
	document.ArrivalDepartureInformationForm.fltSrch[0].checked=false;
}
function selectFlightNoOption()
{
	document.ArrivalDepartureInformationForm.searchByFlightNo.value="true";
	noneBlock('fltSrchFltNum!1','fltSrchCities!0','fltSrchTime!0');
	cssSwitch ('radioFlightNo!formlabelon','radioCities!');
	document.ArrivalDepartureInformationForm.fltSrch[1].checked=false;
	document.ArrivalDepartureInformationForm.fltSrch[0].checked=true;
}
function openPopupWindow( urlString, windowName,
                          includeToolbar, includeStatus, isScrollable, isResizable,
                          width, height )
{
  var attributes = '';

  if ( includeToolbar == true )
  {
      attributes = attributes + 'toolbar=yes,';
  }
  else
  {
      attributes = attributes + 'toolbar=no,';
  }

  if ( includeStatus == true )
  {
      attributes = attributes + 'status=yes,';
  }
  else
  {
      attributes = attributes + 'status=no,';
  }

  if ( isScrollable == true )
  {
      attributes = attributes + 'scrollbars=yes,';
  }
  else
  {
      attributes = attributes + 'scrollbars=no,';
  }

  if ( isResizable == true )
  {
      attributes = attributes + 'resizable=yes,';
  }
  else
  {
      attributes = attributes + 'resizable=no,';
  }

  attributes = attributes + 'width=' + width + ",";

  attributes = attributes + 'height=' + height;
  var popupWindow = window.open( urlString, windowName, attributes );

  popupWindow.focus();

  return popupWindow;
}
function on_load()
{
  changeSearchScenario();
}
