
var DHTML = (document.getElementById || document.all || document.layers);
var posT =0;
var posL =0;

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 invi(id,flag)
{
	if (!DHTML) return;
	var x = new getObj(id);
	x.style.visibility = (flag) ? 'hidden' : 'visible'
}

function fill_div (id,text) {
	if (!DHTML) return;
	var x = new getObj(id);
	x.obj.innerHTML = '';
	x.obj.innerHTML = text;
}


function move(id,amountL,amountT)
{
	if (!DHTML) return;
	var x = new getObj(id);
	T = posT + amountT;
	L = posL + amountL;

	x.style.posTop = T;
	x.style.posLeft = L;
}

