//  API v1.0 by Bj?rn Rosell
//  Find more scripts here: www.prototypeDHTML.net

function API() {
}
API.getElm = function(id) {
  return (document.all?document.all[id]:document.getElementById(id))
}
API.writeHTML = function(elm,s){
  if(document.layers){
    Y=elm.document;
    Y.write(s);
    Y.close();
  }
  if(elm&&typeof elm.innerHTML=='string') elm.innerHTML=s;
}
