var objMapView = document.getElementById("objMapView");	
var respuesta;

function handleHttpResponseEmergente() { 
	
    if (http.readyState == 4) { 
		
       if (http.status == 200) { 
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos			 
             respuesta = http.responseText; 
          }
       }
    }	
}

function emergente(idioma,capa,propiedad) {
	
	var url = "/circuweb/Asp/" + capa + "Emergente.asp?identificador=" + propiedad + "&idioma=" + idioma + "&rnd=" + Math.random();

    try { 
			
			http = new XMLHttpRequest(); 
		}
    catch (e) 
    {
        try { 
				
				http = new ActiveXObject('Microsoft.XMLHTTP');    
			}
        catch (e2) 
        {
          try 
		  	{  
				
				http = new ActiveXObject('Msxml2.XMLHTTP');
		  		  
				
			}
          catch (e3) {  http = false;   }
        }
     }
	
   //http = getHTTPObject();	   
   http.open("GET", url, false);
   
   http.onreadystatechange = handleHttpResponseEmergente;	
  
   http.send(null);
   
   return respuesta;   
}

