// JavaScript Document

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;
}
if (document.form1.txtOutboundDepCity.value ==''){
alert('DEPARTURE for departure Itinerary is required')
return;
}
if (document.form1.txtOutboundDestCity.value ==''){
alert('DESTINATION for departure Itinerary is required')
return;
}
document.form1.submit();
}
