function ajaxVerifica(req,pagina,string,funcao,param){
	req.onreadystatechange = function(){
		if(req.readyState == 4){
			if(req.status==200){
				eval(funcao+"('"+req.responseText+"'"+param+")");
			}
			else{
				eval(funcao+"('erro'"+param+")");
			}
		}
	};
	req.open("POST",pagina,true);
	req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1");
	req.setRequestHeader("Content-length", string.length);
	req.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
	req.setRequestHeader("Pragma", "no-cache");
    req.send(string);
}
function request(){
	var r = false;
	/*@cc_on
	@if (@_jscript_version >= 5)
		try{
			r = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e){
			try{
			    r = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
			    r = false;
			}
	}
	@else
		r = false;
	@end @*/
	if(!r && typeof XMLHttpRequest != 'undefined') {
		try{
		    r = new XMLHttpRequest();
		}
		catch(e){
		    r = false;
		}
	}
	return r;
}
