function booking() { dal = document.bookingalto.dal.value; al = document.bookingalto.al.value; tipologia = document.bookingalto.tipologia.value; if (dal == '') { alert('Il campo DAL è obbligatorio'); document.bookingalto.dal.style.backgroundColor = '#F8DBDA'; document.bookingalto.dal.focus(); return false; } if (al == '') { alert('Il campo AL è obbligatorio'); document.bookingalto.al.style.backgroundColor = '#F8DBDA'; document.bookingalto.al.focus(); return false; } if (tipologia == 'tipologia') { alert('Il campo TIPOLOGIA è obbligatorio'); document.bookingalto.tipologia.style.backgroundColor = '#F8DBDA'; document.bookingalto.tipologia.focus(); return false; } return true; } function compilacampinewsletter() { document.subscribeform.emailconfirm.value = document.subscribeform.email.value; document.subscribeform.attribute1.value = document.subscribeform.email.value; } function controllaiscrizionenewsletter() { email = document.subscribeform.email.value if (email == '' || email == 'La tua e-mail...') { alert('Il campo EMAIL è obbligatorio'); document.subscribeform.email.style.backgroundColor = '#F8DBDA'; document.subscribeform.email.focus(); return false; } return true; } function checkbooking() { dal = document.booking.dal.value; al = document.booking.al.value; tipologia = document.booking.tipologia.value; if (dal == '' || dal == 'DATA ARRIVO') { alert('Il campo DAL è obbligatorio'); document.booking.dal.style.backgroundColor = '#F8DBDA'; document.booking.dal.focus(); return false; } if (al == '' || al == 'DATA PARTENZA') { alert('Il campo AL è obbligatorio'); document.booking.al.style.backgroundColor = '#F8DBDA'; document.booking.al.focus(); return false; } if (tipologia == '' || tipologia == 'Seleziona') { alert('Il campo TIPOLOGIA è obbligatorio'); document.booking.tipologia.style.backgroundColor = '#F8DBDA'; document.booking.tipologia.focus(); return false; } return true; } function initialize() { var myLatlng = new google.maps.LatLng(43.861, 10.4949); var myOptions = {zoom: 11, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP, scrollwheel: false} var map = new google.maps.Map(document.getElementById("mappabasso"), myOptions); var image = '/inclusione/struttura/mare/nero.png'; var myLatLng = new google.maps.LatLng(43.861, 10.4949); var contentString = 'LUCCA'; var infowindow = new google.maps.InfoWindow({content: contentString, maxWidth: 100}); var beachMarker = new google.maps.Marker({position: myLatLng, map: map, icon: image, title: 'LUCCA'}); google.maps.event.addListener(beachMarker, 'click', function() {infowindow.open(map,beachMarker);}); var image = '/inclusione/struttura/mare/verde.png'; var myLatLng1 = new google.maps.LatLng(44.01121282204031, 10.614852905273438); var contentString1 = '

PianPian di Fiume
Pian di Fiume, 20
Bagni di Lucca'; var infowindow1 = new google.maps.InfoWindow({content: contentString1, maxWidth: 120}); var beachMarker1 = new google.maps.Marker({position: myLatLng1, map: map, icon: image, title: 'Pian di Fiume'}); google.maps.event.addListener(beachMarker1, 'click', function() {infowindow1.open(map,beachMarker1);}); }