var clickmessage="Sulle foto il tasto destro del mouse č disabilitato"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

var fieldstocheck = new Array(); 
fieldnames = new Array(); 
function checkform() { 
for (i=0;i<fieldstocheck.length;i++) { 
if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") { 
alert("Please enter your "+fieldnames[i]); 
eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()"); 
return false; 
} 
} 
return true; 
} 
function addFieldToCheck(value,name) { 
fieldstocheck[fieldstocheck.length] = value; 
fieldnames[fieldnames.length] = name; 
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function verfonte()
{if (event.button==1)
  {window.alert('Copyright© 2002-2003 - Stmweb.it® - Tutti i diritti riservati')}
}
function Chiudi() 
{
window.close(); 
}
function Indietro()
{
history.back();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function ProgrammaSettimana() { 
var w = 600; 
var h = 600; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2);
window.open("programmaSettimana.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes");
}
function Pagamenti() { 
var w = 500; 
var h = 300; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2);
window.open("pagamenti.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes");
}
function DeGradi() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("de_gradi.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Sanzio() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("sanzio.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Tertulliano() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("Tertulliano.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Mazzini() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("mazzini.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Milano() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("milano.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Faenza() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("faenza.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Lodi() {
var w = 430;
var h = 430;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("lodi.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Ascoli() { 
var w = 430; 
var h = 430; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("ascoli.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Loreto() { 
var w = 430; 
var h = 430; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("loreto.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Marche() { 
var w = 430; 
var h = 430; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("marche.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Laghi() { 
var w = 430; 
var h = 430; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("laghi.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Barriera() { 
var w = 430; 
var h = 430; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("barriera.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Champoluc() { 
var w = 350; 
var h = 130; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("champoluc.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Stmoritz() { 
var w = 350; 
var h = 130; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("st_moritz.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Davos() { 
var w = 350;
var h = 130;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("davos.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Lathuile() {
var w = 350;
var h = 130;
var pw = Math.floor((screen.width-w)/2);
var ph = Math.floor((screen.height-h)/2);
window.open("la_thuile.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
}
function Laax() { 
var w = 350;
var h = 130; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("laax.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Lenzerheide() { 
var w = 350;
var h = 130; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("lenzerheide.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Cervinia() { 
var w = 350;
var h = 130; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("cervinia.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function All() { 
var w = 350; 
var h = 250; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("all_inclusive.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Tre() { 
var w = 350; 
var h = 190; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("formula_tre.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Cinque() { 
var w = 350; 
var h = 190; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("formula_cinque.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Contatti() { 
var w = 320; 
var h = 340; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("contatti.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Segnala() { 
var w = 320; 
var h = 280; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("segnala.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Fermate() { 
var w = 320; 
var h = 280; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("fermate_bus.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Gite() { 
var w = 500; 
var h = 300; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("iscrizioni_gite.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Glossario() { 
var w = 500; 
var h = 300; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("glossario.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw); 
}
function Resid1() { 
var w = 650; 
var h = 350; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("LesResidences.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes"); 
}
function Resid2() { 
var w = 650; 
var h = 350; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("LesResidences_Skipass.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes"); 
}
function Alpina1() { 
var w = 650; 
var h = 350; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("AlpinaLodge.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes"); 
}
function Alpina2() { 
var w = 650; 
var h = 350; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("AlpinaLodge_Skipass.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes"); 
}
function Tonic1() { 
var w = 650; 
var h = 350; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("LesResidences_SkiTonic.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes"); 
}
function Tonic2() { 
var w = 650; 
var h = 350; 
var pw = Math.floor((screen.width-w)/2); 
var ph = Math.floor((screen.height-h)/2); 
window.open("Les2Alpes1800_SkiTonic.html","","width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw +",scrollbars=yes"); 
}
function Invio() {
var nome = document.Email.mittente.value;
var email = document.Email.emailmitt.value;
var nomea = document.Email.destinatario.value;
var emaila = document.Email.emaildest.value;
if (nome == "") {
	 alert("Inserisci il tuo nome per favore.");
	 document.Email.mittente.focus();
	 }
	 else if ((email == "") || (email.indexOf("@") == (-1))) {
	 			alert("Controlla il tuo indirizzo email per favore.");
				document.Email.emailmitt.value = "";
				document.Email.emailmitt.focus();
				}
		else if (nomea == "") {
             alert("Inserisci il nome del tuo amico per favore.");
             document.Email.destinatario.focus();
          }
		else if ((emaila == "") || (emaila.indexOf("@") == (-1))) {
             alert("Controlla l'indirizzo email del tuo amico per favore.");
             document.Email.emaildest.value = "";
             document.Email.emaildest.focus();
          }
    else {
             document.Email.action = "invio.php";
             document.Email.submit();
      }
}
function Cancella() {
	annulla = window.confirm("Cancellare i dati immessi nel modulo?");
	document.Email.mittente.focus();
	return annulla;
}