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];
  }
}


/*****************/
/* Define events */
/*****************/


function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function') 
	{
		window.onload = func;
	} 
	else 
	{
		window.onload = function() 
		{
			oldonload();
			func();
		}
	}
}

//set onload events
addLoadEvent(moveFooterToBottom); //defined in js/footer.js.asp which should be loaded at the bottom of each page

//set other events
window.onresize = moveFooterToBottom; //defined in js/footer.js.asp which should be loaded at the bottom of each page