//*******************************************************************
//* File      : fgpsoftware1.js
//* Creato il : 14/03/2009 - ultimo aggiornamento il 03/01/2010
//* Autore    : Graziano Fasano graziano@fgpsoftware.it
//*
//* Avviso: La riproduzione o distribuzione non autorizzata di queste 
//* pagine o di parte di esse, sarà perseguibile civilmente e 
//* penalmente.
//*******************************************************************
tip=1;local=location.href;pos=local.indexOf('/',7);local=local.substring(0,pos);if(local.substring(7,10)=='www')pathdb='http://www.bellaitalia.com';else{pathdb=local+'/bellaitaliacom';}function btn(nome,st){document[String.fromCharCode(99,101,114,99,97)].src=String.fromCharCode(47,105,109,97,103,101,115,47,99,101,114,99,97,109,46,103,105,102);document[String.fromCharCode(108,97,115,116,45,109,105,110,117,116,101)].src=String.fromCharCode(47,105,109,97,103,101,115,47,108,97,115,116,45,109,105,110,117,116,101,109,46,103,105,102);document[String.fromCharCode(109,97,105,108,105,110,103,45,108,105,115,116)].src=String.fromCharCode(47,105,109,97,103,101,115,47,109,97,105,108,105,110,103,45,108,105,115,116,109,46,103,105,102);document[nome].src=String.fromCharCode(47,105,109,97,103,101,115,47)+nome+st+String.fromCharCode(46,103,105,102);}function foto(ft,st){ft.className=String.fromCharCode(108,111,103,111);if(st>0)ft.className=ft.className+'m';if(st==2)ft.src=String.fromCharCode(105,109,97,103,101,115,47,102,111,116,111,46,106,112,103);}textSelectIndirizzo=String.fromCharCode(81,117,97,108,115,105,97,115,105);function loadXMLDoc(url,elenco,tipo){function callback(res){var where=(navigator.appName==String.fromCharCode(77,105,99,114,111,115,111,102,116,32,73,110,116,101,114,110,101,116,32,69,120,112,108,111,114,101,114))?-1:null;var lista=getId(elenco);newElem=document.createElement(String.fromCharCode(111,112,116,105,111,110));newElem.text=textSelectIndirizzo;newElem.value="0";lista.add(newElem,where);indice=-1;for(var i=0;i<res.length;i++){newElem=document.createElement(String.fromCharCode(111,112,116,105,111,110));newElem.text=res[i].nm;newElem.value=res[i].value;lista.add(newElem,where);}if(tipo==true)lista.remove(0);lista.options.selectedIndex=-1;lista.options.selectedIndex=0;if(indice>=0)lista.options.selectedIndex=indice;lista.disabled=false;lista.focus();cpg(1);}function state_Change(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){eval(String.fromCharCode(118,97,114,32,100,61)+xmlhttp.responseText);if(d != null){callback(d);}} else{alert(String.fromCharCode(80,114,111,98,108,101,109,97,32,114,105,99,101,122,105,111,110,101,32,100,97,116,105,32,100,97,58,32)+url+", "+xmlhttp.statusText);}}else{var where=(navigator.appName==String.fromCharCode(77,105,99,114,111,115,111,102,116,32,73,110,116,101,114,110,101,116,32,69,120,112,108,111,114,101,114))?-1:null;var lista=getId(elenco);while(lista.options.length){lista.remove(0);}newElem=document.createElement(String.fromCharCode(111,112,116,105,111,110));newElem.text=String.fromCharCode(67,97,114,105,99,97,109,101,110,116,111,32,68,97,116,105,32,70,71,80,83,111,102,116,119,97,114,101,32,105,110,32,99,111,114,115,111,46,46,46);newElem.value="";lista.add(newElem, where);}}if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();if(tipo==true)xmlhttp.onreadystatechange=state_Change;xmlhttp.open(String.fromCharCode(71,69,84),url,tipo);xmlhttp.send(null);}else if(window.ActiveXObject){xmlhttp=new ActiveXObject(String.fromCharCode(77,105,99,114,111,115,111,102,116,46,88,77,76,72,84,84,80));if(xmlhttp){if(tipo==true)xmlhttp.onreadystatechange=state_Change;xmlhttp.open(String.fromCharCode(71,69,84),url,tipo);xmlhttp.send();}}if(tipo==false){eval(String.fromCharCode(118,97,114,32,100,61)+xmlhttp.responseText);if(d!=null)callback(d);}}function cancellaElenco(elenco){var where=(navigator.appName==String.fromCharCode(77,105,99,114,111,115,111,102,116,32,73,110,116,101,114,110,101,116,32,69,120,112,108,111,114,101,114)) ? -1 : null;var lista=getId(elenco);while(lista.options.length){lista.remove(0);}newElem=document.createElement(String.fromCharCode(111,112,116,105,111,110));newElem.text=textSelectIndirizzo;newElem.value="0";lista.add(newElem,where);lista.options.selectedIndex = 0;lista.disabled=true;}function chm(tipo){getId(String.fromCharCode(73,68,78,97,118,101)).options.selectedIndex=-1;sel=getId(String.fromCharCode(73,68,67,111,109,112,97,103,110,105,97));ir=getId(String.fromCharCode(105,110,112,117,116,78,97,118,101)).style;scelta=sel.options[sel.options.selectedIndex].value;getId(String.fromCharCode(73,68,78,97,118,101)).disabled=true;if (scelta=="0"){ir.display=String.fromCharCode(110,111,110,101);cancellaElenco('IDNave');}else{if (scelta=="11"){ir.display=String.fromCharCode(110,111,110,101);cancellaElenco('IDNave');getId(String.fromCharCode(105,110,112,117,116,80,97,114,116,101,110,122,97)).style.display=String.fromCharCode(98,108,111,99,107);}else{ir.display=String.fromCharCode(98,108,111,99,107);loadXMLDoc(pathdb+String.fromCharCode(47,100,97,116,97,98,97,115,101,46,97,115,112,63,105,100,99,111,109,61)+scelta,String.fromCharCode(73,68,78,97,118,101),tipo);}}}function chr(tipo,num){if(num==undefined)num="";getId(String.fromCharCode(105,110,112,117,116,67,111,109,117,110,101)+num).style.display=String.fromCharCode(110,111,110,101);getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num).options.selectedIndex=-1;sel=getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num);ir=getId(String.fromCharCode(105,110,112,117,116,80,114,111,118,105,110,99,105,97)+num).style;scelta=sel.options[sel.options.selectedIndex].value;getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).disabled=true;if(scelta=="0"){ir.display=String.fromCharCode(110,111,110,101);cancellaElenco(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num);}else{ir.display=String.fromCharCode(98,108,111,99,107);loadXMLDoc(pathdb+String.fromCharCode(47,100,97,116,97,98,97,115,101,46,97,115,112,63,105,100,114,101,103,61)+scelta,String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num,tipo);if(geocoder2){address=unescape(getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options[getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options.selectedIndex].text+String.fromCharCode(44,32,73,116,97,108,105,97));address=address.replace(/\+/g, ' ') ;geocoder2.getLatLng(address, function(point){if (!point){} else{map.setCenter(point,7);}});}}}function chp(tipo,num){if(num==undefined)num="";sel=getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num);ir=getId(String.fromCharCode(105,110,112,117,116,67,111,109,117,110,101)+num).style;scelta=sel.options[sel.options.selectedIndex].value;getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num).disabled=true;if (scelta=="0"){ir.display=String.fromCharCode(110,111,110,101);cancellaElenco(String.fromCharCode(73,68,67,111,109,117,110,101)+num);}else{ir.display=String.fromCharCode(98,108,111,99,107);loadXMLDoc(pathdb+String.fromCharCode(47,100,97,116,97,98,97,115,101,46,97,115,112,63,105,100,112,114,61)+scelta,String.fromCharCode(73,68,67,111,109,117,110,101)+num,tipo);if(geocoder2){address=unescape(getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).options[getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).options.selectedIndex].text+', '+getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options[getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options.selectedIndex].text+String.fromCharCode(44,32,73,116,97,108,105,97));address=address.replace(/\+/g, ' ') ;geocoder2.getLatLng(address, function(point){if (!point){} else{map.setCenter(point,9);}});}}}//<![CDATA[
var map;var geocoder2;var WINDOW_HTML;var CHOSEN_HTML;var marker1;var marker2;function load(){if(GBrowserIsCompatible()){var apice = "'";WINDOW_HTML = '<div align=String.fromCharCode(106,117,115,116,105,102,121) style=String.fromCharCode(119,105,100,116,104,58,32,50,49,48,112,120,59,32,112,97,100,100,105,110,103,45,114,105,103,104,116,58,32,49,48,112,120,59,32,99,111,108,111,114,58,32,35,48,48,48,48,48,48,59,32,102,111,110,116,45,102,97,109,105,108,121,58,32,65,114,105,97,108,44,32,115,97,110,115,45,115,101,114,105,102,59,32,102,111,110,116,45,115,105,122,101,58,32,49,50,112,120,59,102,111,110,116,45,115,116,121,108,101,58,105,116,97,108,105,99)><b>Cerca il posto dove trovare le coordinate.</b><br>Sposta il puntatore per scegliere una ps esatta.<\/div>';CHOSEN_HTML = '<div align=String.fromCharCode(106,117,115,116,105,102,121) style=String.fromCharCode(119,105,100,116,104,58,32,50,49,48,112,120,59,32,112,97,100,100,105,110,103,45,114,105,103,104,116,58,32,49,48,112,120,59,32,99,111,108,111,114,58,32,35,48,48,48,48,48,48,59,32,102,111,110,116,45,102,97,109,105,108,121,58,32,65,114,105,97,108,44,32,115,97,110,115,45,115,101,114,105,102,59,32,102,111,110,116,45,115,105,122,101,58,32,49,50,112,120,59,102,111,110,116,45,115,116,121,108,101,58,105,116,97,108,105,99)>Hai selezionato questa ps.<\/div>';map = new GMap2(getId(String.fromCharCode(109,97,112)));geocoder2 = new GClientGeocoder();map.addControl(new GSmallMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(42.16340342422401, 12.568359375), 5);}}function showIndirizzo(num){if(num==undefined)num="";if(getId(String.fromCharCode(98,116,110,80,111,115,105,122,105,111,110,97)+num).value==String.fromCharCode(80,111,115,105,122,105,111,110,97,32,77,97,112,112,97)){getId(String.fromCharCode(109,97,112)).style.display=String.fromCharCode(98,108,111,99,107);if(geocoder2){address=unescape(getId(String.fromCharCode(73,110,100,105,114,105,122,122,111)+num).value+', '+getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num).options[getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num).options.selectedIndex].text+', '+getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).options[getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).options.selectedIndex].text+', '+getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options[getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options.selectedIndex].text+String.fromCharCode(44,32,73,116,97,108,105,97));address=address.replace(/\+/g, ' ') ;getId(String.fromCharCode(98,116,110,80,111,115,105,122,105,111,110,97)+num).value=String.fromCharCode(78,97,115,99,111,110,100,105,32,80,111,115,105,122,105,111,110,97);var lattext=getId('x'+num);var lngtext=getId('y'+num);geocoder2.getLatLng(address,function(point){if (!point){lattext.value="";lngtext.value="";alert(getId(String.fromCharCode(73,110,100,105,114,105,122,122,111)+num).value+String.fromCharCode(32,110,111,110,32,116,114,111,118,97,116,111,46));}else{if(num==""){if(marker1)map.removeOverlay(marker1);marker1=new GMarker(point,{draggable: true});map.addOverlay(marker1);GEvent.addListener(marker1,String.fromCharCode(100,114,97,103,101,110,100),function(){marker1.openInfoWindowHtml(CHOSEN_HTML);var lattext=getId('x');var lngtext=getId('y');var newloc=marker1.getPoint();lattext.value=newloc.lat();lngtext.value=newloc.lng();});GEvent.addListener(marker1,String.fromCharCode(99,108,105,99,107),function(){marker1.openInfoWindowHtml(WINDOW_HTML);});marker1.openInfoWindowHtml(WINDOW_HTML);map.setCenter(point,15);var newloc=marker1.getPoint();lattext.value=newloc.lat();lngtext.value=newloc.lng();}else{if(marker2)map.removeOverlay(marker2);marker2=new GMarker(point,{draggable: true});map.addOverlay(marker2);GEvent.addListener(marker2,String.fromCharCode(100,114,97,103,101,110,100),function(){marker2.openInfoWindowHtml(CHOSEN_HTML);var lattext=getId('x2');var lngtext=getId('y2');var newloc=marker2.getPoint();lattext.value=newloc.lat();lngtext.value=newloc.lng();});GEvent.addListener(marker2,String.fromCharCode(99,108,105,99,107),function(){marker2.openInfoWindowHtml(WINDOW_HTML);});marker2.openInfoWindowHtml(WINDOW_HTML);map.setCenter(point,15);var newloc=marker2.getPoint();lattext.value=newloc.lat();lngtext.value=newloc.lng();}}});}}else{getId(String.fromCharCode(98,116,110,80,111,115,105,122,105,111,110,97)+num).value=String.fromCharCode(80,111,115,105,122,105,111,110,97,32,77,97,112,112,97);getId(String.fromCharCode(109,97,112)).style.display=String.fromCharCode(110,111,110,101);}}//]]>
function chc(num){if(num==undefined)num="";sel=getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num);if(getId(String.fromCharCode(105,110,112,117,116,73,110,100,105,114,105,122,122,111)+num)!=null)ir=getId(String.fromCharCode(105,110,112,117,116,73,110,100,105,114,105,122,122,111)+num).style;scelta=sel.options[sel.options.selectedIndex].value;if(scelta=="0"){if(getId(String.fromCharCode(105,110,112,117,116,73,110,100,105,114,105,122,122,111)+num)!=null){ir.display=String.fromCharCode(110,111,110,101);GUnload();}}else{if(getId(String.fromCharCode(105,110,112,117,116,73,110,100,105,114,105,122,122,111)+num)!=null){ir.display=String.fromCharCode(98,108,111,99,107);if(geocoder2==undefined)load();}if(geocoder2){address=unescape(getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num).options[getId(String.fromCharCode(73,68,67,111,109,117,110,101)+num).options.selectedIndex].text+', '+getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).options[getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97)+num).options.selectedIndex].text+', '+getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options[getId(String.fromCharCode(73,68,82,101,103,105,111,110,101)+num).options.selectedIndex].text+String.fromCharCode(44,32,73,116,97,108,105,97));address=address.replace(/\+/g, ' ') ;geocoder2.getLatLng(address, function(point){if (!point){} else{map.setCenter(point,13);}});}}cpg(1);}var hotelIcon;var ris;function createMarker(point,id){var marker=new GMarker(point,hotelIcon);var f=function(){marker.openInfoWindowHtml(getId('pr'+id).innerHTML);};GEvent.addListener(marker,String.fromCharCode(99,108,105,99,107), f);return marker;}function getPosition(){if(hotelIcon==null){hotelIcon=new GIcon();hotelIcon.iconSize=new GSize(32, 32);hotelIcon.iconAnchor=new GPoint(9, 34);hotelIcon.infoWindowAnchor=new GPoint(9, 2);hotelIcon.infoShadowAnchor=new GPoint(18, 25);hotelIcon.image=String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,98,101,108,108,97,105,116,97,108,105,97,46,99,111,109,47,105,109,97,103,101,115,47,109,104,111,116,101,108,46,112,110,103);}map.clearOverlays();for(i=0;i<ris.length;i+=3){var point=new GLatLng(ris[i],ris[i+1]);var marker=new createMarker(point,ris[i+2]);map.addOverlay(marker);}}function resizeMap(){getId('map').style.width = document.body.offsetWidth - 570;}function loadpg(url){function state_Change(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){getId(String.fromCharCode(114,101,115,117,108,116)).innerHTML=xmlhttp.responseText;l=xmlhttp.responseText.indexOf("]");eval(xmlhttp.responseText.slice(8+4,l+2));l=xmlhttp.responseText.indexOf(String.fromCharCode(60,47,115,99,114,105,112,116,62));i=xmlhttp.responseText.indexOf(String.fromCharCode(103,101,116,73,100));eval(xmlhttp.responseText.slice(i,l));if(ris!=null)getPosition();} else{alert(String.fromCharCode(80,114,111,98,108,101,109,97,32,114,105,99,101,122,105,111,110,101,32,100,97,116,105,32,100,97,58,32)+url+", "+xmlhttp.statusText);}}}if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();xmlhttp.onreadystatechange=state_Change;xmlhttp.open(String.fromCharCode(71,69,84),url,true);xmlhttp.send(null);}else if(window.ActiveXObject){xmlhttp=new ActiveXObject(String.fromCharCode(77,105,99,114,111,115,111,102,116,46,88,77,76,72,84,84,80));if(xmlhttp){xmlhttp.onreadystatechange=state_Change;xmlhttp.open(String.fromCharCode(71,69,84),url,false);xmlhttp.send();}}}function cpg(pg){if(ris!=null){sel1=getId(String.fromCharCode(73,68,82,101,103,105,111,110,101));sc1=sel1.options[sel1.options.selectedIndex].value;sel2=getId(String.fromCharCode(73,68,80,114,111,118,105,110,99,105,97));if(sel2.options.selectedIndex>=0) sc2=sel2.options[sel2.options.selectedIndex].value;else sc2=0;sel3=getId(String.fromCharCode(73,68,67,111,109,117,110,101));if(sel3.options.selectedIndex>=0) sc3=sel3.options[sel3.options.selectedIndex].value;else sc3=0;sel4=getId(String.fromCharCode(67,97,116,101,103,111,114,105,97));if(sel4) sc4=sel4.options[sel4.options.selectedIndex].value;else sc4="0";loadpg(pathdb+String.fromCharCode(47,100,97,116,97,98,97,115,101,46,97,115,112,63,112,103,61)+pg+String.fromCharCode(38,105,100,114,61)+sc1+String.fromCharCode(38,105,100,112,61)+sc2+String.fromCharCode(38,105,100,99,61)+sc3+String.fromCharCode(38,99,116,61)+sc4+String.fromCharCode(38,116,105,112,61)+tip+String.fromCharCode(38,114,110,61)+Math.random());return false;}}function login(){w=getId(String.fromCharCode(108,111,103,105,110));if(w.style.display==String.fromCharCode(110,111,110,101)){w.style.display=String.fromCharCode(98,108,111,99,107);document.login.Password.focus();}else w.style.display=String.fromCharCode(110,111,110,101);}function contatti(){w=getId(String.fromCharCode(105,110,102,111));w.style.display=String.fromCharCode(110,111,110,101);w=getId(String.fromCharCode(99,111,110,116,97,116,116,105));if(getId(String.fromCharCode(99,111,110,116,97,116,116,97)).innerHTML!=""){w.innerHTML=getId(String.fromCharCode(99,111,110,116,97,116,116,97)).innerHTML;getId(String.fromCharCode(99,111,110,116,97,116,116,97)).innerHTML="";}w.style.display=String.fromCharCode(98,108,111,99,107);}function informazioni(){w=getId(String.fromCharCode(105,110,102,111));w.style.display=String.fromCharCode(98,108,111,99,107);w=getId(String.fromCharCode(99,111,110,116,97,116,116,105));w.style.display=String.fromCharCode(110,111,110,101);}function getId(id){var elemento;if(document.getElementById) elemento = document.getElementById(id);else elemento = document.all[id];return elemento;}function chs(ct){sel=getId(String.fromCharCode(83,101,114,118,105,122,105,111));scelta=sel.options[sel.options.selectedIndex].value;br=getId(String.fromCharCode(98,97,110,110,101,114)).style;if(parseInt(scelta)<3){br.display=String.fromCharCode(110,111,110,101);}else{bn.IDCategoria.value=0;bn.IDRegione.value=0;bn.IDProvincia.value=0;bn.IDComune.value=0;switch(parseInt(scelta)){case 3: getId(String.fromCharCode(100,101,115,98,97,110,110,101,114)).innerHTML=String.fromCharCode(72,111,109,101,32,80,97,103,101);break;case 4: bn.IDCategoria.value=tip;getId(String.fromCharCode(100,101,115,98,97,110,110,101,114)).innerHTML=String.fromCharCode(72,111,109,101,32,80,97,103,101,32,67,97,116,101,103,111,114,105,97,58,32)+tip;break;case 5: bn.IDCategoria.value=tip;bn.IDRegione.value=sc.IDRegione.value;getId(String.fromCharCode(100,101,115,98,97,110,110,101,114)).innerHTML=String.fromCharCode(82,101,103,105,111,110,101,32,67,97,116,101,103,111,114,105,97,58,32)+tip;break;case 6: bn.IDCategoria.value=tip;bn.IDRegione.value=sc.IDRegione.value;bn.IDProvincia.value=sc.IDProvincia.value;getId(String.fromCharCode(100,101,115,98,97,110,110,101,114)).innerHTML=String.fromCharCode(80,114,111,118,105,110,99,105,97,32,67,97,116,101,103,111,114,105,97,58,32)+tip;break;case 7: bn.IDCategoria.value=tip;bn.IDRegione.value=sc.IDRegione.value;bn.IDProvincia.value=sc.IDProvincia.value;bn.IDComune.value=sc.IDComune.value;getId(String.fromCharCode(100,101,115,98,97,110,110,101,114)).innerHTML=String.fromCharCode(67,111,109,117,110,101,32,67,97,116,101,103,111,114,105,97,58,32)+tip;break;}tipo=false;url=pathdb+String.fromCharCode(47,100,97,116,97,98,97,115,101,46,97,115,112,63,110,117,109,98,61)+sc.idfoto.value+','+tip+','+bn.IDRegione.value+','+bn.IDProvincia.value+','+bn.IDComune.value+String.fromCharCode(38,114,110,61)+Math.random();if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();if(tipo==true)xmlhttp.onreadystatechange=state_Change;xmlhttp.open(String.fromCharCode(71,69,84),url,tipo);xmlhttp.send(null);}else if(window.ActiveXObject){xmlhttp=new ActiveXObject(String.fromCharCode(77,105,99,114,111,115,111,102,116,46,88,77,76,72,84,84,80));if(xmlhttp){if(tipo==true)xmlhttp.onreadystatechange=state_Change;xmlhttp.open(String.fromCharCode(71,69,84),url,tipo);xmlhttp.send();}}if(tipo==false){bn.NumFoto.value=xmlhttp.responseText.substring(10);getId(String.fromCharCode(115,110,117,109,98)).innerHTML=bn.NumFoto.value;if(parseInt(bn.NumFoto.value)>4){alert('Nessun banner disponibile fino al '+xmlhttp.responseText.substring(0,10)+' per questa selezione.');sc.Servizio.options.selectedIndex=1;br.display=String.fromCharCode(110,111,110,101);}else br.display=String.fromCharCode(98,108,111,99,107);}}}function arrivo(){alert('In fase di allestimento.');}