/*
if (!isFunction(Array.prototype.push))
{
    Array.method('push', 
	    function ()
    	{
        this.splice.apply(this, [this.length, 0].concat(Array.prototype.slice.apply(arguments)));
        return this.length;
	    });
}
*/
function isFunction(a) {
    return typeof a == 'function';
}

if (!isFunction(Array.prototype.push))
{
	Array.prototype.push = function() { for (var i=0; i<arguments.length; i++) { this[this.length] = arguments[i]; } return this.length; }
};


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];
  }
}
