	
var req = false;
/***
	Function inicializacao do objeto XMLHttpRequest
***/
function init(){
	try{
   		req = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
   	   		 try{
      			req = new ActiveXObject("Microsoft.XMLHTTP");
             }catch(E){
      	         req = false;
             }
	}
	if(!req && typeof XMLHttpRequest != 'undefined'){
   		req = new XMLHttpRequest();
	}
}

function ajax(url, functionReturn){
	init();
	req.onreadystatechange = function(){
	    if (req.readyState == 4) {
	      		if (req.status == 200) {
					eval(functionReturn + '('+ req.responseText + ')');
				} 
		}
	}
    req.open("GET", url, true);
    try{
	 	req.send(null);
    }catch(Exc){
      req.send();
   	}
}
/**
 * Chama uma url.
 */
function go(url)
{
	window.location = url;
}

