var CurrentPopUp = null; var DescriptionText = new Array (""); var CurrentImage = 0; function MasterInit () {
Warning: file(BitLib/DinamicData/Photo/PhotoMetait.txt) [function.file]: failed to open stream: No such file or directory in /web/htdocs/www.bbrosadeiventi.com/home/Prenotazioni/index.js.php on line 17
DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = ""; AnimateImgButton ("CalendFrom"); Calendar.setup ( { inputField:"PeriodoFrom", button:"CalendFrom", electric:!false, cache:true, ifFormat:"%d/%m/%Y %H:%M", daFormat:"%d/%m/%Y %H:%M", firstDay:1, range:[2012,2013], weekNumbers:false, showOthers:true, showsTime:false, timeFormat:"24", step:1 } ); AnimateImgButton ("CalendTo"); Calendar.setup ( { inputField:"PeriodoTo", button:"CalendTo", electric:!false, cache:true, ifFormat:"%d/%m/%Y %H:%M", daFormat:"%d/%m/%Y %H:%M", firstDay:1, range:[2012,2013], weekNumbers:false, showOthers:true, showsTime:false, timeFormat:"24", step:1 } ); } function MasterDispose () { ; } function OpenPopUp (ImgRef) { var ImageName = "BitLib/DinamicData/Photo/Big/"+ImgRef+".jpg"; CurrentImage = ImgRef; PopuPContent = "
"; PopuPContent +="
"; PopuPContent +="\"\""; PopuPContent +="
"; PopuPContent +="
"; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +="
"; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +="
"; PopuPContent +="
"; PopuPContent +="
"; if (CurrentPopUp == null) { CurrentPopUp = new Window ( { className:"mac_os_x", width:650, height:530, zIndex:-100, resizable:false, closable:true, minimizable:false, maximizable:false, title:"B&B Rosadeiventi ("+DescriptionText[ImgRef]+")", draggable:true, wiredDrag:false, showEffect:Effect.BlindDown, hideEffect:Effect.SwitchOff, onClose:ClosePopUp } ); CurrentPopUp.showCenter (); CurrentPopUp.setConstraint (true,{bottom:10}); CurrentPopUp.toFront (); } CurrentPopUp.setTitle ("B&B Rosadeiventi ("+DescriptionText[ImgRef]+")"); CurrentPopUp.getContent ().innerHTML = PopuPContent; Nifty("table.ButtonMedium a","transparent"); if (ImgRef == 1) { MyElemID ("PrevBtn").style.visibility = "hidden"; } if (ImgRef == 8) { MyElemID ("NextBtn").style.visibility = "hidden"; } } function ShowPhoto (Direction) { CurrentImage = CurrentImage+Direction; var ImageName = "BitLib/DinamicData/Photo/Big/"+CurrentImage+".jpg"; MyElemID ("PhotoField").src = ImageName; CurrentPopUp.setTitle ("B&B Rosadeiventi ("+DescriptionText[CurrentImage]+")"); MyElemID ("PrevBtn").style.visibility = "visible"; MyElemID ("NextBtn").style.visibility = "visible"; if (CurrentImage == 1) { MyElemID ("PrevBtn").style.visibility = "hidden"; } if (CurrentImage == 8) { MyElemID ("NextBtn").style.visibility = "hidden"; } } function ClosePopUp () { CurrentPopUp = null; } function SendMail () { var ErrorMessage = ""; if (document.Contatto.Cognome.value == "") { ErrorMessage += "Devi indicare il cognome.\n"; } if (document.Contatto.Telefono.value == "" && document.Contatto.Cellulare.value == "" && document.Contatto.eMail.value == "") { ErrorMessage += "Devi indicare un recapito telefonico o un email.\n"; } if (document.Contatto.PeriodoFrom.value == "") { ErrorMessage += "Devi indicare il peridio di inizio del soggiorno.\n"; } if (document.Contatto.PeriodoTo.value == "") { ErrorMessage += "Devi indicare il peridio di fine del soggiorno.\n"; } if (ErrorMessage != "") { alert (ErrorMessage); } else { alert ("La richiesta di prenotazione e\' stata inviata."); document.Contatto.submit (); } }