function GoToBookingEngine()
{
	var URL;
	if (form1.inMonth2.value != "" && form1.inDay2.value != "" && form1.outMonth2.value != "" && form1.outDay2.value != "")
	{
		var arrivalDate = (new Number(form1.inMonth2.options[form1.inMonth2.selectedIndex].value.substr(4,2))+1) + "/" + form1.inDay2.options[form1.inDay2.selectedIndex].value + "/" + form1.inMonth2.options[form1.inMonth2.selectedIndex].value.substr(0,4);
		var departureDate = (new Number(form1.outMonth2.options[form1.outMonth2.selectedIndex].value.substr(4,2))+1) + "/" + form1.outDay2.options[form1.outDay2.selectedIndex].value + "/" + form1.outMonth2.options[form1.outMonth2.selectedIndex].value.substr(0,4);
		URL = 'http://www.cpresorts.com/ResCreate.asp?gh_number=&gh_lastname=&iata=&fl=&promo=&rc=?&in=' + arrivalDate + '&out=' + departureDate;
	}
	else
	{
		URL = 'http://www.cpresorts.com/ResCreate.asp?gh_number=&gh_lastname=&iata=&fl=&promo=&rc=';
	}
	form1.action=URL;
	form1.method='post';
	form1.target='_Blank';
	form1.submit();
}