      //<![CDATA[
    
    function apriPopup(url,w,h,scroll,l,t) {
        //w = w +18;
        //h = h + 50;
        var ranNum= Math.round(Math.random()*100);
        var settings =' width='+w+',height='+h+',screenX='+l+',screenY='+t+',left='+l+',top='+t+',scrollbars='+scroll+',location=no,directories=no,ìstatus=no,menubar=no,toolbar=no,  resizable=yes';
        window.open(url,ranNum, settings);
    }



    // Crea il marker con la label passata come parametro
    function createMarker(point, label) 
    {    
        // Icona Marker
        icona = new GIcon();
        icona.image = "../images/marker.png";
        icona.iconSize = new GSize(26, 25);
        icona.iconAnchor = new GPoint(6, 20);
        icona.infoWindowAnchor = new GPoint(6, 20);
        icona.shadowSize = new GSize(24, 20);
    
        // Variabile marker - Aggiungi Icona
        var marker = new GMarker(point);
        // Crea listener per il click sull'oggetto
        GEvent.addListener(marker, "click", function() 
        {
            //marker.openInfoWindowHtml(label +"<br>Valerio");
            label = "<a style='font-size:12px; color: #34BAD5; border-color: #42ADE5; text-decoration: none; font-family: Arial, Helvetica, sans-serif; href='#'>"+label +"</div>"
            marker.openInfoWindowHtml(label);
        });
      
        return marker;
    }
        var xmlhttp=false;
        var xml2 = false;
       
        /*@cc_on @*/
        /*@if (@_jscript_version >= 5)
        try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        xml2 = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
        try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        xml2 = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
        xmlhttp = false;
        xml2 = false;
        }
        }
        @end @*/
        
        if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
            xmlhttp = new XMLHttpRequest();
        }
        
        if (!xml2 && typeof XMLHttpRequest != 'undefined') {
            xml2 = new XMLHttpRequest();
        }
        
        // Funzione che si occupa di fare la richiesta AJAX allo script che materialmente effettuerà  l'inserimento nel db
        function ajax(serverPage, objID, point, address) {
            // Div dove finirà  il risultato
            var obj = document.getElementById(objID);
            
            // Apre connessione
            xmlhttp.open("GET", serverPage);
            
            // Stampa risultato se tutto è ok
            xmlhttp.onreadystatechange = function() {
                    if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                        obj.innerHTML = xmlhttp.responseText;
                    }
            }
                        
            xmlhttp.send(null);
        }
        
        var map = null;
        var geocoder = null;
        // Icona
        function load() 
        {
            if (GBrowserIsCompatible()) {
                // Crea mappa
                map = new GMap2(document.getElementById("map"));
                
                // Creo GeoCoder Max 1.6 query/sec
                geocoder = new GClientGeocoder();
            
                // Imposta centro su Roma (LAT 41.90, LONG 12.49)
                map.setCenter(new GLatLng(41.8282877,12.4737189), 15);
                
                // Visualizza controlli - TIPO MAPPA
                map.addControl(new GMapTypeControl());
                
                // Visualizza controlli - ZOOM GRANDE
                map.addControl(new GLargeMapControl());
    
                var point;
                point = new GLatLng(41.8282877,12.4737189)
                map.addOverlay(createMarker(point, 'Centro Medico Specialistico <br> Otorinolaringoiatrico<br>Foniatrico<br>Logopedico <br> Prof.Dott. Michele Mignano <br> Dott.Rossella Dellavalle'))
            }
        }
    
    // Traduce indirizzo inserito in coordinate tramite GeoCoder, altrimenti cerca nel database
    function showAddress(address)     {
        geocoder.getLatLng(address,
        function(point) 
        {
            if (!point)           {
                // Indirizzo non trovato, cerca nel database.
                alert(address + " non trovato!");
            } 
            else 
            {
                // Chiamata ajax per inserimento all'interno del DB se conferma...
                if(confirm("Vuoi inserire il marker per l'indirizzo:\n" + address))
                {
                    // Centra la mappa ;)
                    map.setCenter(point, 10);
                
                    // Crea il marker
                    map.addOverlay(createMarker(point, address));
                    
                
                }            
            }
        });
    }
        //]]>
        
function ApriLink(sLink,sTarget) {
    var indirizzo = window.location.href;
    window.open(sLink,sTarget)
}

function caricaDati(id,tipo) {
    var iFrame ="";
    var pagina ="";    
    switch (tipo) {
        case "laboratori" :
            iFrame = "iFrameLaboratori";
            pagina = "laboratori";
            break;

        case "patologie" :
            iFrame = "iFramePatologie";
            pagina = "patologie";
            break;
            
    }
    
    var obj = document.getElementsByName(iFrame)[0];
    obj.style.display='block';
    var indirizzo = "inc/"+ pagina +".php?id="+id;
    document.frames[iFrame].src=indirizzo;
    document.frames[iFrame].location =indirizzo;
}

