function getObj(name){
  if (document.getElementById){
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all){
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers){
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function openWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function writeIt(text,id){
  if (document.getElementById){
          x = document.getElementById(id);
          x.innerHTML = text;
  }
  else if (document.all){
          x = document.all[id];
          x.innerHTML = text;
  }
  else if (document.layers){
          x = document.layers[id];
          text2 = '<P CLASS="testclass">' + text + '</P>';
          x.document.open();
          x.document.write(text2);
          x.document.close();
  }
}


