// returns XMLHttp Object in an IE/Mozilla/Safari-friendly method
// with code modified from http://jibbering.com/2002/4/httprequest.html
function getXMLHttpObject() {
  var XMLobj = null;
  try {
    XMLobj = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      XMLobj = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      XMLobj = null;
    }
  }
  if (!XMLobj && typeof XMLHttpRequest != 'undefined') {
    XMLobj = new XMLHttpRequest();
  }
  return XMLobj;  
}


function addResizeEvent(func) {
  var oldonresize = window.onresize;
  if (typeof window.onresize != 'function') {
    window.onresize = func;
  } else {
    window.onresize = function() {
      oldonresize();
      func();
    }
  }
}

function x() {}
