ps es muy raro porque me funciona en firefox mas no en chrome y necesito que tambien funcione en chrome y no se que pasa

y tengo una funcion generica cross browser
Código HTML:
Ver originalfunction Ajax(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}