// JavaScript Document
try{xml0 = new XMLHttpRequest();}catch(ee){	try{xml0 = new ActiveXObject("Msxml2.XMLHTTP");	}catch(e){try{xml0 = new ActiveXObject("Microsoft.XMLHTTP");}catch(E){	xml0 = false;}}}

function abre(xmlcommand,linx){
		time = new Date();
		if(linx.indexOf('?')>0){
			complemento = "&";
		}else{
			complemento = "?";
		}
		xmlcommand.open("GET", linx+complemento+time,true);
		xmlcommand.onreadystatechange=function() {
			if (xmlcommand.readyState==4){
				//Lê o texto
				var texto=xmlcommand.responseText;
				
				//Desfaz o urlencode
				texto=texto.replace(/\+/g," ")
				texto=unescape(texto)
				document.getElementById('ajax').innerHTML = texto;
			}
		}
		xmlcommand.send(null);	
}

function abre2(xmlcommand,linx){
		time = new Date();
		if(linx.indexOf('?')>0){
			complemento = "&";
		}else{
			complemento = "?";
		}
		xmlcommand.open("GET", linx+complemento+time,true);
		xmlcommand.onreadystatechange=function() {
			if (xmlcommand.readyState==4){
				//Lê o texto
				var texto=xmlcommand.responseText;
				
				//Desfaz o urlencode
				texto=texto.replace(/\+/g," ")
				texto=unescape(texto)
				document.getElementById('exa_exames').innerHTML = texto;
			}
		}
		xmlcommand.send(null);	
}
