What is the purpose of:
Code:
if (browser == "Microsoft Internet Explorer") {
objAjax = new ActiveXObject("Microsoft.XMLHTTP");
} else {
objAjax = new XMLHttpRequest();
}
All browsers now recognise XMLHttpRequest and the navigator.appName can contain "Microsoft Internet Explorer" in Firefox, Opera, Chrome or Safari masquerading as Internet Explorer and Intertnet Explorer can be set to identify itself as any other browser. Even if you do need to include the activeX call to support the dead IE6 browser then there are more accurate ways to difect that call specifically to IE4 through IE6 that don't interfere with other browsers being able to use the call that they recognise.