function apri(str){
	searchWin = window.open(str,'ipix','scrollbars=yes,resizable=yes,width=800,height=500,status=no,location=no,toolbar=no');
}

function openNewWindow(URLtoOpen, windowName, windowFeatures){
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

function verifica_pagina(form){
	//LISTA OBBLIGATORIA
//	if (!checkSelect(form.cat, 0, 'Bitte, waehlen Sie mindestens 1 Preis von der Liste: PREIS')) return false;

		if (!checkSelect(form.tipologia, 0, 'Please select Accommodation type')) return false;
		//if (!checkSelect(form.cat, 0, 'Please select at least 1 price from the list: PRICES')) return false;
	 	//if (!checkSelect(form.cod_citta, 0, 'Please choose a city')) return false;
		if (!checkSelect(form.zona, 0, 'Please select area')) return false;





	//ALMENO 1 TIPO DI CAMERE
	if ((!form.chk_sing.checked) && (!form.chk_dop.checked) && (!form.chk_trip.checked) && (!form.chk_quad.checked)){
		alert("Bitte, waehlen SIe mindestens 1 Typ Zimmer vom Menu ZIMMER");
		return false;
	}
	
	
	 //ALMENO 1 TIPO cittA
	 	if ((form.cod_citta.value == "") && (form.cod_citta2.value == "")) {
	    alert("Bitte, schreiben Sie die Stadt");
		return false;
	   }
	
	
	

	//DATE OBBLIGATORIE
	if (!checkText(form.dal, 'Bitte, waehlen Sie einem Datum (tt/mm/jjjj) into VOM area')) return false;
	if (!checkText(form.al, 'Bitte, waehlen Sie einem Datum  (tt/mm/jjjj) into BIS area')) return false;

	//DATE VALIDE
	if (form.dal.value == form.al.value)
	{
		alert("Bitte waehlen Sie mindestens eine Nacht Abstand")
		return false;
	}
	if (!checkDateValid(form.dal, form.al, 'Bitte, kontrollieren Sie das die Daten richtig sind')) return false;
		
	//SE TUTTO OK ACTION FORM
	GoToPage(form, "query.php")
}
