function PopStampa(id){
	newwindow=window.open("/ricerca_dettaglio_stampa.php?idatt="+id,"PopStampa","width=520,height=660,toolbar=no,location=no,scrollbars=yes");
	<!-- http://www.italiadiscovery.it/ricerca_dettaglio.php?limit=0&idcategoria=144 &regione=Toscana&idmacrozona=0&prov=MS&idcomune=0&zona=&idatt=38&idconsorzio=&idart=&tipoart=&sezione=&ricercatesto=&ricerca_r_tipo=&ricerca_r_ambiente=&ricerca_r_cucina=&ricerc -->
}

function PopStampaArt(id){
	newwindow=window.open("/ricerca_dettaglio_stampa_art.php?privato_anteprima=1&id="+id,"PopStampa","width=490,height=660,toolbar=no,location=no,scrollbars=yes");
	<!-- http://www.italiadiscovery.it/ricerca_dettaglio.php?limit=0&idcategoria=144 &regione=Toscana&idmacrozona=0&prov=MS&idcomune=0&zona=&idatt=38&idconsorzio=&idart=&tipoart=&sezione=&ricercatesto=&ricerca_r_tipo=&ricerca_r_ambiente=&ricerca_r_cucina=&ricerc -->
}

function PopStampaNews(id){
	newwindow=window.open("/ricerca_dettaglio_stampa_news.php?privato_anteprima=1&id="+id,"PopStampa","width=490,height=660,toolbar=no,location=no,scrollbars=yes");
	<!-- http://www.italiadiscovery.it/ricerca_dettaglio.php?limit=0&idcategoria=144 &regione=Toscana&idmacrozona=0&prov=MS&idcomune=0&zona=&idatt=38&idconsorzio=&idart=&tipoart=&sezione=&ricercatesto=&ricerca_r_tipo=&ricerca_r_ambiente=&ricerca_r_cucina=&ricerc -->
}

function Mappa(idmappa){
	popup = window.open("http://www.italiadiscovery.it/t-map.php?id=" + idmappa,"PopMappa","height=550,width=550,scrollbars=no");
}


function ComeArrivare(idmappa){
	popup = window.open("http://www.italiadiscovery.it/findway.php?id=" + idmappa, "PopComeArrivare","height=454,width=890,scrollbars=no");
}

function Pop(tipo,id){
	if (eval(tipo) >0){
		popup = window.open("/ricerca_pop.php?user_lang=&tipo="+tipo+"&idatt="+id, "Pop","height=350,width=400,scrollbars=yes");
		popup.document.close()
	}
}

function PopContatto(Id){
	newwindow=window.open('http://www.italiadiscovery.it/contatto.php?id='+Id+'','PopContatto','width=550,height=405,toolbar=no,location=no,scrollbars=yes');
}

function PopTariffe(id){
	popup = window.open("/ricerca_tariffe.php?user_lang=&idatt="+id, "PopTariffe","height=530,width=920,scrollbars=yes");
	popup.document.close()
}

function PopTariffeCampeggio(id){
	popup = window.open("/ricerca_tariffecampeggio.php?user_lang=&idatt="+id, "PopTariffe","height=400,width=550,scrollbars=yes");
	popup.document.close()
}

function Guide(id){
	if (eval(id) >0){
		popup = window.open("/ricerca_guide.php?user_lang=&id=" + id, "Pop","height=250,width=400,scrollbars=yes");
		popup.document.close()
	}
}

function PopPhoto(Id){
	newwindow=window.open('/ricerca_photo.php?user_lang=&id='+Id+'','PopPhoto','width=750,height=500,toolbar=no,location=no,scrollbars=yes');
}
/*
function PopPhotoNew(Id){
	newwindow=window.open('/gallery/ricerca_photo_new.php?id='+Id+'','PopPhoto','width=600,height=536,toolbar=no,location=no,scrollbars=no');
}


function PopPhotoNew(Id){
	newwindow=window.open('/jsgallery/index.php?id='+Id+'','PopPhoto','width=716,height=490,toolbar=no,location=no,scrollbars=no');
}*/

function PopPhotoNew(Id){
	newwindow=window.open('/jsgallery/index.php?id='+Id+'','PopPhoto','width=660,height=630,toolbar=no,location=no,scrollbars=no');
}
		
function PopFriend(Url){
	newwindow=window.open('/pop_friend.php?user_lang=&url='+Url+'','PopFriend','width=450,height=350,toolbar=no,location=no,scrollbars=yes');
}

function PopServizi(ID,Tipo){
	newwindow=window.open('/pop_servizi.php?user_lang=&tipo='+Tipo+'&id='+ID+'','PopServizi','width=350,height=250,toolbar=no,location=no,scrollbars=yes');
}

function ECommerce(ID){
	newwindow=window.open('/negozio_virtuale.php?id='+ID+'','PopEcommerce','width=710,height=600,toolbar=no,location=no,scrollbars=yes');
}

function PopSend(id){ 

	if (Send.from_date.value == ''){
	alert('Inserire la data nel seguente formato | gg/mm/anno');
	Send.from_date.focus();
	return (false);
	}

	if (Send.to_date.value == ''){
	alert('Inserire la data nel seguente formato | gg/mm/anno');
	Send.to_date.focus();
	return (false);
	}

	if (Send.persone.value == ''){
	alert('Inserire il numero di ospiti');
	Send.persone.focus();
	return (false);
	}

	if (Send.camere.value == ''){
	alert('Inserire il numero di camere');
	Send.camere.focus();
	return (false);
	}

	if (Send.from_date.value > Send.to_date.value){
	alert('Data di partenza non valida perchè precendente a quella di arrivo.');
	Send.to_date.focus();
	return (false);
	}

	if (Send.camere.value > Send.persone.value){
	alert('Non puoi selezionare un numero di camere superiore al numero di ospiti.');
	Send.camere.focus();
	return (false);
	}

	if (Send.id.value > Send.id.value){
	alert('id mancante.');
	Send.id.focus();
	return (false);
	}

	newwindow=window.open('ricerca_send.php?user_lang=&idatt='+Send.id.value+'&from_date='+Send.from_date.value+'&to_date='+Send.to_date.value+'&persone='+Send.persone.value+'&camere='+Send.camere.value+'','PopSend','width=520,height=430,toolbar=no,location=no,scrollbars=yes');
	return false;
	}


var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

