
function cercaCrociereUtente(){
	
	document.getElementById('sCrociera').action="/col_cercaCrociere.php";
	document.getElementById('sCrociera').submit();
	
}



function ordinaCrociere(orderField){
	document.getElementById('orderBy').value=orderField;
	document.getElementById('sCrociera').action="/col_cercaCrociere.php";
	document.getElementById('sCrociera').submit();
	
}

function cambiaTipoCrociera(tipoCrociera,selCrociera){
	
	//document.getElementById('idCompagniaX').value = 'ALL';
	//document.getElementById('idDestinazioneX').value = 'ALL';
	//document.getElementById('sCrociera').action="col_cercaCrociere.php";
	//document.getElementById('sCrociera').submit();
	getComboAjax('divDestinazioni','destinazioni',tipoCrociera,'','idDestinazioneX','','Tutte');
}


function preventivoCrociera(idCrociera){
	//window.open("col_prenotaCrociera.php?idCrociera=" + idCrociera,"windowPrenota","menubar=0,resizable=0,width=760,height=600");
	window.open("col_preventivoCrociera.php?idCrociera=" + idCrociera,"_blank","menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=800,height=650");
	//window.location = "col_prenotaCrociera.php?idCrociera=" + idCrociera;
}


function openNave(linkDescr){
	if(linkDescr.indexOf('http')==-1)
		linkDescr = 'http://' + linkDescr;
	window.open(linkDescr,"windowNave","menubar=0,resizable=yes,scrollbars=yes,width=800,height=799");
}

function openInfo(idCrociera){
	window.open("col_descrizioneCrociera.php?idCrociera=" + idCrociera,"windowInfo","menubar=0,resizable=yes,scrollbars=yes,width=780,height=630");
}

function openCompagnia(urlCompagnia){
	if(urlCompagnia.indexOf('http')==-1)
		urlCompagnia = 'http://' + urlCompagnia;
	window.open(urlCompagnia,"windowInfo","menubar=0,resizable=yes,scrollbars=yes,width=900,height=600");
}


function cambiaNumCab(numCabine,selCrociera,p1,p2,p3,p4){
	alert(numCabine);
	getComboAjax('dettCabina'+numCabine,'cabine',numCabine,p1,p2,p3,p4);
}


