// Funzione che gestisce il click del mouse dai pulsanti function clickButton(l_button, l_lingua, l_pagina) { if (l_lingua == '') { l_lingua = 'ita' } if (l_pagina == '') { l_pagina = 'index' } switch (l_button) { case 'home' : document.location = 'index.asp?pagina=index&lingua=' + l_lingua; break; case 'raggiungerci' : document.location = 'other.asp?pagina=dove&lingua=' + l_lingua; break; case 'casa' : document.location = 'other.asp?pagina=casa&lingua=' + l_lingua; break; case 'prezzi' : document.location = 'other.asp?pagina=prezzi&lingua=' + l_lingua; break; case 'vedere' : document.location = 'vedere.asp?pagina=vedere&lingua=' + l_lingua; break; case 'contatti' : document.location = 'other.asp?pagina=contatti&lingua=' + l_lingua; break; case 'collegamenti' : document.location = 'other.asp?pagina=collegamenti&lingua=' + l_lingua; break; } } // Funzione che apre la finestra della mappa function mappa() { t = (screen.height - 600) / 2; l = (screen.width - 630) / 2; l_mappa = window.open("http://mappe.libero.it/mappe/mappa.jsp?poz=&clk=zin&t1y=1742106&naz=IT&t1x=1431232&cap=00060&ind=&loc=MAZZANO+ROMANO&poi=&sty=7&div=&pof=&siz=2&imageField.y=8&cY=1742106&imageField.x=30&cX=1431232&zom=7", "Dettaglio", "left=" + l + ", top=" + t + ", width=630, height=600, scrollbars=1, toolbar=0, status=0, resizable=0"); } // Funzione che apre la finestra sulle informazioni sulla privacy function privacy(l_lingua) { var l_percorso = 'language/' + l_lingua + '/Privacy.htm'; t = (screen.height - 500) / 2; l = (screen.width - 350) / 2; l_privacy = window.open(l_percorso, "Privacy", "left=" + l + ", top=" + t + ", width=350, height=500, scrollbars=1, toolbar=0, status=0, resizable=0"); } // Funzione che cambia il colore alle celle della tabella function changeColor(cella, colore) { if (colore == 1) { document.all[cella].style.background = '#BCCAE1'; } else { document.all[cella].style.background = '#F58E61'; } } // Funzione che gestisce il click del mouse nel menù 'Da vedere' function changeView(l_button, l_lingua) { document.location = 'vedere.asp?pagina=vedere&lingua=' + l_lingua + '&cosa=' + l_button; } // Funzione che cambia il valore nella combo delle stanze function changeRooms(radio) { if (radio == 'bed') { document.all['stanze'].disabled = false; document.all['stanze'].value = '1'; } if (radio == 'casa') { document.all['stanze'].disabled = true; document.all['stanze'].value = 'tutte'; } } // Funzione che visualizza una pop-up relativa all'ingrandimento di foto selezionata function viewFoto(pagina) { offX = 23; offY = 32; l_folder = 'ima/vedere/'; switch (pagina) { case 'mazzano01' : w = 352; h = 488; break; case 'mazzano02' : w = 372; h = 463; break; case 'mazzano03' : w = 295; h = 466; break; case 'calcata01' : w = 333; h = 499; break; case 'calcata02' : w = 323; h = 498; break; case 'calcata03' : w = 319; h = 504; break; case 'vallelunga01' : w = 306; h = 464; break; case 'vallelunga02' : w = 450; h = 215; break; case 'vallelunga03' : w = 450; h = 330; break; case 'treja01' : w = 270; h = 499; break; case 'treja02' : w = 333; h = 469; break; case 'treja03' : w = 558; h = 380; break; case 'treja04' : w = 656; h = 350; break; case 'bracciano02' : w = 640; h = 426; break; case 'bracciano03' : w = 588; h = 287; break; case '3D_g' : w = 709; h = 575; l_folder = 'ima/stanze/'; break; case 'bagno1' : w = 700; h = 467; l_folder = 'ima/stanze/'; break; case 'bagno2' : w = 317; h = 500; l_folder = 'ima/stanze/'; break; case 'suite1' : w = 700; h = 507; l_folder = 'ima/stanze/'; break; case 'camera1' : w = 359; h = 500; l_folder = 'ima/stanze/'; break; case 'camera2' : w = 359; h = 500; l_folder = 'ima/stanze/'; break; case 'cucina1' : w = 700; h = 478; l_folder = 'ima/stanze/'; break; case 'casa1' : w = 700; h = 447; l_folder = 'ima/esterno/'; break; case 'casa2' : w = 700; h = 469; l_folder = 'ima/esterno/'; break; case 'casa3' : w = 700; h = 469; l_folder = 'ima/esterno/'; break; } w = w + offX; h = h + offY; t = (screen.height - h) / 2; l = (screen.width - w) / 2; l_foto = window.open(l_folder + pagina + ".htm", pagina, "left=" + l + ", top=" + t + ", width=" + w + ", height=" + h + ", toolbar=0, status=0, resizable=0"); } // Funzione che convalida il form nella pagina dei contatti function convalida(l_lingua) { switch (l_lingua) { case 'ita' : l_testo1 = 'Inserire il cognome'; l_testo2 = 'Inserire il nome'; l_testo3 = 'Inserire almeno un recapito'; break; case 'eng' : l_testo1 = 'Insert the surname'; l_testo2 = 'Insert the name'; l_testo3 = 'Insert one contact'; break; } if (JSTrim(document.form1.cognome.value, ' ') == '') { alert(l_testo1); document.form1.cognome.focus(); return false; } if (JSTrim(document.form1.nome.value, ' ') == '') { alert(l_testo2); document.form1.nome.focus(); return false; } if (JSTrim(document.form1.telefono.value, ' ') == '' && JSTrim(document.form1.cellulare.value, ' ') == '' && JSTrim(document.form1.fax.value, ' ') == '' && JSTrim(document.form1.email.value, ' ') == '') { alert(l_testo3); document.form1.telefono.focus(); return false; } return true; } function gestPagine(l_Query, l_Identificativo, l_Titolo, l_Testo) { document.testi.Query.value = l_Query; document.testi.Identificativo.value = l_Identificativo; switch (l_Query) { case 'U' : document.testi.Titolo.value = document.all[l_Titolo].value; document.testi.Testo.value = document.all[l_Testo].value; break; } document.testi.submit(); } function statistiche() { l_link = 'http://www.marcocinti.com/mcstat/viewstat.php?ute=bbtreja&numacc=0'; w = screen.width - 50; h = screen.height - 100; l = (screen.width - w) / 2; t = 0; l_mcstat = window.open(l_link, "Statistiche", "left=" + l +", top=" + t + ", width=" + w + ", height=" + h + ", scrollbars=1, toolbar=0, status=0, resizable=0"); }