function getObj(objName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[objName] : document[objName];
}
