<!--
var xmlhttp
var url

function getxmlhttpobject()
{
    var objxmlhttp = null
    if (window.XMLhttpRequest)
    {
        objxmlhttp = new XMLhttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objxmlhttp = new ActiveXObject("microsoft.XMLHTTP")
    }
    return objxmlhttp
} 


function httpRequest(url)
{
    if(window.XMLHttpRequest) req = new XMLHttpRequest() 
    else if (window.ActiveXObject) req = new ActiveXObject("microsoft.XMLHTTP") 
    req.open("get",url,false)
    req.send(null)
    return req.responseText  
} 


function process_write(url,param,objalvo)
{
	try
	{
		xmlhttp = new XMLHttpRequest();
	}
	catch(ee)
	{
		try
		{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(E)
			{
				xmlhttp = false;
			}
		}
	}//fim try
	
	var obj_write = document.getElementById(objalvo)
	obj_write.innerHTML = '<span><font size="1" face="Arial">Processando...</font></span>'
	xmlhttp.open("GET", url +"?"+ param,true);
	xmlhttp.onreadystatechange=function() 
	{
		if (xmlhttp.readyState==4)
		{
			var texto = xmlhttp.responseText
			texto = texto.replace(/\+/g," ")
			texto = unescape(texto)
			var obj_write = document.getElementById(objalvo)
			obj_write.innerHTML = texto
		}
	}
	xmlhttp.send(null)
}//fim function






function selecionar(campo) {
       campo.focus();
       campo.select();
}
function load_totais(quant) 
{
       fr_total.location.href = "totalizador_car.asp?quant="+quant;
}

-->