var DepDate = new Date() 
var RetDate = new Date() 
var TimeToAdd 

TimeToAdd = DepDate - (-1)* 7 * 86400000 
DepDate.setTime(TimeToAdd) 

document.form1.cmbMonthFrom.options[DepDate.getMonth()].selected = '1' 
document.form1.cmbDayFrom.options[DepDate.getDate()-1].selected = '1' 

TimeToAdd = DepDate - (-1)* 7 * 86400000 
RetDate.setTime(TimeToAdd) 

document.form1.cmbMonthTo.options[RetDate.getMonth()].selected = '1' 
document.form1.cmbDayTo.options[RetDate.getDate()-1].selected = '1' 

function InboundDest( ) {
  document.form1.txtOutboundDepCity.value = document.form1.txtOutboundDepCity.value.toUpperCase()
  document.form1.txtInboundDestCity.value = document.form1.txtOutboundDepCity.value
}

function InboundDep() {
  document.form1.txtOutboundDestCity.value = document.form1.txtOutboundDestCity.value.toUpperCase()
  document.form1.txtInboundDepCity.value = document.form1.txtOutboundDestCity.value
}

function checkpassengers(){
  if (document.form1.infantno.value > document.form1.adultno.value ){
    alert('There cannot be more than 1 INFANT per ADULT.');
    return false;
  }

  if (document.form1.txtOutboundDepCity.value ==''){
    alert('DEPARTURE for Departure Itinerary is required')
    return false;
  }

  if (document.form1.txtOutboundDestCity.value ==''){
    alert('DESTINATION for Departure Itinerary is required')
    return false;
  }

  if (document.form1.adultno.value =='0'){
    alert('There must be at least 1 ADULT per reservation.  Unaccompanied minors (under15) must be booked directly through the airline.')
    return false;
  }

  return true;
}
