function ajax() {//1
	try {
		return new ActiveXObject("Microsoft.XMLHTTP");
	  } catch(e) {
		try {
		  return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(ex) {
		  try {
			return new XMLHttpRequest();
		  } catch(exc) {
		  		alert("Esse browser não tem recursos para uso do Ajax");
			return false;
		  }
		}
	  }

} //1
function ajaxInit(){
    var xmlhttp;
    try {
        xmlhttp = new XMLHttpRequest();
    }catch(ee){
        try{
            xmlhttp = new ActiveXObject("Msxm12.XMLHTTP");
        }catch(e){
            try{
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch(E){
                xmlhttp = false;
            }
        }
    }
    return xmlhttp;
}
