/* Create a new XMLHttpRequest object to talk to the Web server */
var xmlHttp = false;
var currentmessageid = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

// getElementById Special to handle quirky browsers
// most will use getElementById()
function getElementById_s(id){
  var obj = null;
  if(document.getElementById){
  /* Prefer the widely supported W3C DOM method, if available:- */
  obj = document.getElementById(id);
  }else if(document.all){   /* Branch to use document.all on document.all only browsers. Requires that IDs are unique to the page and do not coincide with NAME attributes on other elements:- */
  obj = document.all[id];
  }
  /* If no appropriate element retrieval mechanism exists on this browser this function always returns null:- */
  return obj;
  }

