function abre(url,window_width,window_height){
		var window_top = (screen.height-window_height)/2;
		var window_left = (screen.width-window_width)/2;
		window.open(url,"net","top="+window_top+",left="+window_left+",width="+window_width+",height="+window_height+", maximized=no, toolbar=no, location=no, status=no, menubar=no, scrollbars=no, scrolling=no, resizebled=no");	
	}
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//aj
function extraiScript(texto){
    var ini = 0;
    while (ini!=-1){
        ini = texto.indexOf('<script', ini);
        if (ini >=0){
            ini = texto.indexOf('>', ini) + 1;
            var fim = texto.indexOf('</script>', ini);
            codigo = texto.substring(ini,fim);
            eval(codigo);
        }
    }
}

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
function openAjax() { 
var Ajax; 
try {Ajax = new XMLHttpRequest();
}catch(ee) { 
try {Ajax = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e) { 
try {Ajax = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e) {Ajax = false; 
} 
} 
} 
return Ajax; 
} 

function aj(id,url) { 
if(document.getElementById) { 
var exibeResultado = document.getElementById(id); 
var Ajax = openAjax();
Ajax.open("GET", url, true);
Ajax.onreadystatechange = function() 
{ 
//if(Ajax.readyState == 1) {
//exibeResultado.innerHTML = "<div id='loading'><img src='images/aguarde.gif' width='110' height='34' alt=''/></div>"; 
//} 
if(Ajax.readyState == 4) {
if(Ajax.status == 200) { 
var resultado = unescape(Ajax.responseText.replace(/\+/g," "));
exibeResultado.innerHTML = resultado;
// executa scripts
extraiScript(resultado);
} 
else { 
exibeResultado.innerHTML = "Erro: "+resultado; 
} 
} 
} 
Ajax.send(null);
} 
}
function openAjax() { 
var Ajax; 
try {Ajax = new XMLHttpRequest();
}catch(ee) { 
try {Ajax = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e) { 
try {Ajax = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e) {Ajax = false; 
} 
} 
} 
return Ajax; 
}
