function cargarInfo(valor)
 {       
  if(window.XMLHttpRequest) {
   objXml = new XMLHttpRequest(); // Gecko (Firefox, Moz), KHTML (Konqueror, Safari), Opera
  } else if(window.ActiveXObject) {
   objXml = new ActiveXObject("Microsoft.XMLHTTP"); // Internet Explorer  
  }       
  objXml.open("GET", valor + ".asp" , true); 
  objXml.onreadystatechange=function() {
    if (objXml.readyState==4) {    
			document.getElementById("informacion").style.visibility = 'visible';
      document.getElementById("datos_").innerHTML=objXml.responseText;
    }else{
			document.getElementById("informacion").style.visibility = 'visible';
      document.getElementById("datos_").innerHTML="<br/><img src='/css/cargando.gif'> Cargando Informaci&oacute;n ...";
		}
   }               
  objXml.send(null);    
}


function abrirVentana(idvehiculo){
		document.getElementById("transparencia").style.visibility="visible";
		document.getElementById("transparencia").style.height="165%";
	  document.getElementById("capaVentana").style.visibility="visible";	  

		
	  if(window.XMLHttpRequest) {
			objXml1 = new XMLHttpRequest(); // Gecko (Firefox, Moz), KHTML (Konqueror, Safari), Opera
		} else if(window.ActiveXObject) {
			objXml1 = new ActiveXObject("Microsoft.XMLHTTP"); // Internet Explorer		
		}					
		
		objXml1.open("GET", "/ficha.asp?idvehiculo="+idvehiculo , true);  
		
		objXml1.onreadystatechange=function() {
			if (objXml1.readyState==4) {
				document.getElementById("capaVentana").innerHTML=objXml1.responseText; 
				}
		} 
		objXml1.send(null);				  		

}

function cerrarVentana(){
	document.getElementById("transparencia").style.visibility="hidden";
	document.getElementById("capaVentana").style.visibility="hidden";	 
}
