// Other Functions

function sendToHotel(hotelId, hotel_nombre) {
	document.link.pageURL.value = "hotel.php";
	document.link.hotelId.value = hotelId;
	document.link.hotel.value = hotel_nombre;
	document.link.submit();
}

function goToPageNumber(pageNumber, pageURL) {
	document.link.pageURL.value = pageURL;
	document.link.page_item.value = pageNumber;
	document.link.submit();
}

function goSearch(fecha_ini, fecha_fin, ciudad, hotel) {
	document.link.fecha_ini.value = fecha_ini;
	document.link.fecha_fin.value = fecha_fin;
	document.link.ciudad.value = ciudad;
	document.link.hotel.value = hotel;
	this.goToPageNumber(1, 'buscar.php');
}

function goToPage(pageURL) {
	document.link.pageURL.value = pageURL;
	document.link.submit();
}

function temporadas() {
	document.link.action = "temporadas_hotel.php";
	document.link.submit();
}

function temporadas_paquetes() {
	document.link.action = "temporada_paquetes.php";
	document.link.submit();
}

function calculateDates(dateFrom, num_days) {
	if (dateCheck(dateFrom, '%d/%m/%y')) {
		 return calDate(dateFrom, num_days);
	} else {
		missinginfo ="______________________________________\n" +
		"La siguiente información debe ser completada:\n" +
		"\n      - Fecha Invalida" + "\n______________________________________" +
		"\nPor favor, completela y vuelva enviarla!";
		alert(missinginfo);
	}
}