function viewRoomNumber(camera,number) {
	if (document.getElementById(camera).value !="") {
		document.getElementById(number).style.display = 'block';
	} else {
		document.getElementById(number).style.display = 'none';
	}
}
function discardGarbage() {
	if (document.getElementById('cal_andata_display')) {
		cal1 = null;
	}
	if (document.getElementById('cal_ritorno_display')) {
		cal2 = null;
	}
}

/* Google MAP ------------------------------------------------- */
//<![CDATA[ 
var zoom=16; 
var debug=false; 

function load(nomeDiv,lat,long,SMS) {

var latitudine = lat; 
var longitudine = long; 
var messaggio=SMS; 

GUnload();

document.getElementById(nomeDiv).style.display = "";
 
if (debug) document.getElementById("debug").style.display="block"; 
if (GBrowserIsCompatible()) { 
var map = new GMap2(document.getElementById(nomeDiv)); 
map.addControl(new GSmallMapControl()); 
map.addControl(new GMapTypeControl()); 

if (debug) { 
GEvent.addListener(map, "moveend", function() { 
var center = map.getCenter(); 
document.getElementById("debug").innerHTML = center.toString();}); 

GEvent.addListener(map, "click", function(marker, point) { 
if (point) 
document.getElementById("debug").innerHTML = point.toString();}); 

} 

map.setCenter(new GLatLng(latitudine, longitudine), zoom); 

var point = new GLatLng(latitudine,longitudine); 

var marker = new GMarker(point); 
GEvent.addListener(marker, "click", function() { 
marker.openInfoWindowHtml(messaggio);}) 

map.addOverlay(marker); 

} 
} 

//]]> 
/* ------------------------------------------------------------ */
