function cambiofechas(arrivalMonthSelect,  arrivalDaySelect, departureMonthSelect, departureDaySelect)
{
	var calendar = new Date();
	var calendar2 = new Date();
	var cal
	var cal2
	var date;
	var month;
	var year;
	var date2;
	var month2;
	var year2;

	//Here is the variable to change for to advance the arrival Date
	 var advanceArrival = 14;
	//Here is the variable to change for to advance the departure Date
	 var advanceDeparture = 16;


	//Set the arrival Days
	calendar.setDate(calendar.getDate()+ advanceArrival);
	date = calendar.getDate();
	month = calendar.getMonth();

	//Set the Departure Days
	calendar2.setDate(calendar2.getDate()+advanceDeparture);
	date2 = calendar2.getDate();
	month2 = calendar2.getMonth();

	arrivalMonthSelect.value=month;
	arrivalDaySelect.value=date;
	departureMonthSelect.value=month2;
	departureDaySelect.value=date2;
}

function AbrirCalendario (formName,type)
{
    document.cookie = 'formName=' + formName;
    document.cookie = 'inputType=' + type;
    window.open('inc/scripts/1_cal.html','dates','width=270,height=300,resizable=1,status=1,menubar=0,location=0');
}

function submitForm(frm)
{
	document.forms[frm].submit();
}

function submitSearchForm()
{
	if (document.frm_Search["numberOfRooms"] != null && document.frm_Search.numberOfRooms.value == 5) {
		window.location="http://reservas.viajeros.com/index.jsp?pageName=groups";
		return false;
	}
	return true;
}

