 function initDate()
 {
   var now = new Date();
   var mth = now.getMonth();
   var dd = now.getDate();
   var yy = now.getFullYear();
   if (mth <10)
    {
      mth == 0 + mth;
     }
   if (dd <10)
    {
      dd == 0 + dd;
    }
     if ((mth==11) && (dd>=29)) {
		 document.resrvForm.doa_mm.selectedIndex = mth;
		 document.resrvForm.doa_dd.selectedIndex = dd - 1;
		 document.resrvForm.dod_yy.value= yy;
		 document.resrvForm.dod_dd.selectedIndex = dd - dd;
		 document.resrvForm.dod_mm.selectedIndex = mth-mth;
		 document.resrvForm.dod_yy.value= yy+1;
     }
     else if ((dd>=29 ) || ((dd>=27 ) && (mth==1)))
     {
	 document.resrvForm.doa_mm.selectedIndex = mth+1;
     document.resrvForm.doa_dd.selectedIndex = dd-dd;
     document.resrvForm.doa_yy.value= yy;
     document.resrvForm.dod_dd.selectedIndex = (dd-dd)+1;
     document.resrvForm.dod_mm.selectedIndex = mth + 1;
     document.resrvForm.dod_yy.value= yy;
    }
   else
    {
   	document.resrvForm.doa_mm.selectedIndex=mth;
   	document.resrvForm.doa_dd.selectedIndex=dd+1;
   	document.resrvForm.dod_yy.value= yy;
   	document.resrvForm.dod_mm.selectedIndex=mth;
   	document.resrvForm.dod_dd.selectedIndex=dd+3;
	document.resrvForm.dod_yy.value= yy;
   }
}

		 function initDate2()
		 {
		   var now = new Date();
		   var mth = now.getMonth();
		   var dd = now.getDate();
		   var yy = now.getFullYear();
		   if (mth < 10)
			{
			  mth == 0 + mth;
			 }
		   if (dd < 10)
			{
			  dd == 0 + dd;
			}
			 if ((mth==11) && (dd>=29)) {
				 document.getElementById('CB_frommonth').selectedIndex = mth;
				 document.getElementById('CB_fromdate').selectedIndex = dd - 1;
				 document.getElementById('CB_todate').selectedIndex = dd - dd;
				 document.getElementById('CB_tomonth').selectedIndex = mth-mth;
			 }
			 else if ((dd>=29 ) || ((dd>=27 ) && (mth==1)))
			 {
			 document.getElementById('CB_frommonth').selectedIndex = mth+1;
			 document.getElementById('CB_fromdate').selectedIndex = dd-dd;
			 document.getElementById('CB_todate').selectedIndex = (dd-dd)+1;
			 document.getElementById('CB_tomonth').selectedIndex = mth + 1;
			}
		   else
			{
			document.getElementById('CB_frommonth').selectedIndex=mth;
			document.getElementById('CB_fromdate').selectedIndex=dd+1;
			document.getElementById('CB_tomonth').selectedIndex=mth;
			document.getElementById('CB_todate').selectedIndex=dd+3;
		   }
		}

 function initDate3()
 {
   var now = new Date();
   var mth = now.getMonth();
   var dd = now.getDate();
   var yy = now.getFullYear();
   if (mth < 10)
	{
	  mth == 0 + mth;
	 }
   if (dd < 10)
	{
	  dd == 0 + dd;
	}
	 if ((mth==11) && (dd>=29)) {
		 document.getElementById('AIR_frommonth').selectedIndex = mth;
		 document.getElementById('AIR_fromdate').selectedIndex = dd - 1;
		 document.getElementById('AIR_todate').selectedIndex = dd - dd;
		 document.getElementById('AIR_tomonth').selectedIndex = mth-mth;
	 }
	 else if ((dd>=29 ) || ((dd>=27 ) && (mth==1)))
	 {
	 document.getElementById('AIR_frommonth').selectedIndex = mth+1;
	 document.getElementById('AIR_fromdate').selectedIndex = dd-dd;
	 document.getElementById('AIR_todate').selectedIndex = (dd-dd)+1;
	 document.getElementById('AIR_tomonth').selectedIndex = mth + 1;
	}
   else
	{
	document.getElementById('AIR_frommonth').selectedIndex=mth;
	document.getElementById('AIR_fromdate').selectedIndex=dd+1;
	document.getElementById('AIR_tomonth').selectedIndex=mth;
	document.getElementById('AIR_todate').selectedIndex=dd+3;
   }
}
function vacationDestLanding()
{
	var selected_id = document.destination_launch.destination_id.options[document.destination_launch.destination_id.selectedIndex].value;
			
	if(selected_id != "")
	{
		if(selected_id.indexOf('http:') >= 0)
		{
			window.open(selected_id);
		}
		else
		{
			window.open("/"+selected_id);
		}
	}
	else
	{
		// send the user to a landing page with a list of destinations to choose from
		window.location = "destination.php?name="+document.destination_launch.destination_id.options[document.destination_launch.destination_id.selectedIndex].text;
	}
} 

		var destinationArray = new Array('Orlando','Las Vegas','Anaheim','New York','Honolulu','Maui','San Francisco','Los Angeles','New Orleans','Cancun','Cabo','Puerto Vallarta','Denver','Vail','Eagle','Jackson Hole','Reno','Bahamas','Aruba','Montego Bay','London','Paris','Rome');
		
function newWindow(curr)
{
currWindow = window.open(curr, 'CurrConverter', 'width=460,height=310');
currWindow.focus;
}
