/*

WEB4RTE: http://www.web4rte.com
Autor: J. Benito

*/
/*var xmlhttp = getXmlHttpRequest();
   
function criaXHR()
{
        if (window.XMLHttpRequest)
        {
                return new XMLHttpRequest();
        }
        else if (window.ActiveXObject)
        {
                try
                {
                        return new ActiveXObject("Msxml2.XMLHTTP");
                }
                catch (e)
                {
                        try
                        {
                                return new ActiveXObject("Microsoft.XMLHTTP");
                        }
                        catch (e){}
                }
        }
}*/
function criaXHR(){
	var objxmlhttp = null;
	try{
		objxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			objxmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(ex){
			try{
				objxmlhttp = window.XMLHttpRequest();
			}catch(exp){
				objxmlhttp = null;
			}
		}
	}
	return objxmlhttp;
}