function abrirPag(pag,local,ext){
	
	nocache = Math.random();
	var url = pag+'.'+ext+'?nocache='+nocache;

	var el = document.getElementById(local);

	
	if ( el.style.display != '' ) {
				el.style.display = '';
				
 set_xmlhttp();
	document.getElementById("wet_mostrar").innerHTML = '<img src="imagens/carr.gif" align="top" border="0" width="39" height="38">&nbsp;&nbsp;<font color="#9F1414"><b>Aguarde . . .</b></font>';
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			document.getElementById("wet_mostrar").innerHTML = xmlhttp.responseText;
		}
	}
	
	xmlhttp.open("GET", url, true);
	xmlhttp.send(null);

			}else{
				el.style.display = 'none';
				document.getElementById("wet_mostrar").innerHTML = '';
			
			}

 }
 



function abrirPag2(pag,local,ext){
	
	nocache = Math.random()+2;
	var url = pag+'.'+ext+'?nocache='+nocache;

	var el = document.getElementById(local);
	
	if ( el.style.display != '' ) {
				el.style.display = '';
	
 set_xmlhttp();
	document.getElementById("aux_mostrar").innerHTML = '<img src="imagens/carr.gif" align="top" border="0" width="39" height="38">&nbsp;&nbsp;<font color="#9F1414"><b>Aguarde . . .</b></font>';
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			document.getElementById("aux_mostrar").innerHTML = xmlhttp.responseText;

		}
	}
	
	xmlhttp.open("GET", url, true);
	xmlhttp.send(null);
	
			}else{
				el.style.display = 'none';
				document.getElementById("aux_mostrar").innerHTML = '';
			
			}
	
		
 }
 
 
 
 
function abrirPag3(pag,local,ext){
	
	nocache = Math.random()+2;
	var url = pag+'.'+ext+'?nocache='+nocache;
	
	var el = document.getElementById(local);
	
	if ( el.style.display != '' ) {
				el.style.display = '';
	
 set_xmlhttp();
	document.getElementById("abapo_mostrar").innerHTML = '<img src="imagens/carr.gif" align="top" border="0" width="39" height="38">&nbsp;&nbsp;<font color="#9F1414"><b>Aguarde . . .</b></font>';
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			document.getElementById("abapo_mostrar").innerHTML = xmlhttp.responseText;
		}
	}
	
	xmlhttp.open("GET", url, true);
	xmlhttp.send(null);
	
	}else{
				el.style.display = 'none';
				document.getElementById("abapo_mostrar").innerHTML = '';
			
			}

 }
 
