function safermail(myclass, name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<a class=' + myclass + ' href=mailto:' + name + '@' + domain + '>' + displayed + '</a>');
}

function findDOM(objectID,withStyle) {
  if (withStyle == 1) {
    if (isID) {return (document.getElementById(objectID).style);}
    else {
      if (isAll) {return (document.all[objectID].style);}
      else {
        if (isLayers) {return (document.layers[objectID]);}
      }
    ;}  
  }
  else {
    if (isID) {return (document.getElementById(objectID));}
      else {
        if (isAll) {return (document.all[objectID]);}
        else {
          if (isLayers) {return (document.layers[objectID]);}
        }
      ;}
  }
} 

function whoAmI(objectID) {
  domStyle = findDOM(objectID,1) ;
  dom = findDOM(objectID,0);
  if (domStyle.pixelTop != null) {alert(domStyle.pixelTop);}
  else {alert(domStyle.top);}
  alert(dom.id); 
}

function moveObject(objectID) {
  domStyle = findDOM(objectID,1);
  domStyle.left = 120;
  domStyle.top = 200;
}

function reloadPage() {
  if (innerWidth != origWidth ||
     innerHeight != origHeight)
    location.reload();  
}

function findBrowserHeight(){
  if (window.outerHeight != null) return window.outerHeight;
  return null;
}

function findBrowserWidth() {
  if (window.outerWidth != null) return window.outerWidth;
  return null;
}

function findLivePageHeight() {
  if (window.innerHeight != null) return window.innerHeight;
  if (document.body.clientHeight != null) return document.body.clientHeight;
  return (null);
}

function findLivePageWidth() {
  if (window.innerWidth != null) return window.innerWidth;
  if (document.body.clientWidth != null) return document.body.clientWidth;
  return (null);
}

