//function getObject(id)
var getObject;
{
	if (document.getElementById)
		getObject = function(id){return (document.getElementById(id));}
	else if (document.all)
		getObject = function(id){return (document.all[id]);}
	else if (document.layers)
		getObject = function(id){return (document.layers[id]);}
	else
		getObject = function(id){return null;}
}

//function getWidth(obj)
var getWidth;
{
	if (document.getElementById)
		getWidth = function(obj){return parseInt(obj.style.width);}
	else if (document.layers)
		getWidth = function(obj){return obj.width;}
	else
		getWidth = function(obj){return 0;}
}

//function getHeight(obj)
var getHeight;
{
	if (document.getElementById)
		getHeight = function(obj){return parseInt(obj.style.height);}
	else if (document.layers)
		getHeight = function(obj){return obj.height;}
	else
		getHeight = function(obj){return 0;}
}

//function getLeft(obj)
var getLeft;
{
	if (document.getElementById)
		getLeft = function(obj){return parseInt(obj.style.left);}
	else if (document.layers)
		getLeft = function(obj){return obj.left;}
	else
		getLeft = function(obj){return 0;}
}

//function getTop(obj)
var getTop;
{
	if (document.getElementById)
		getTop = function(obj){return parseInt(obj.style.top);}
	else if (document.layers)
		getTop = function(obj){return obj.top;}
	else
		getTop = function(obj){return 0;}
}

//function setWidth(obj,val)
var setWidth;
{
	if (document.getElementById)
		setWidth = function(obj,val){obj.style.width = val+'px';}
	else if (document.layers)
		setWidth = function(obj,val){obj.width = val;}
	else
		setWidth = function(obj,val){return 0;}
}

//function setHeight(obj,val)
var setHeight;
{
	if (document.getElementById)
		setHeight = function(obj,val){obj.style.height = val+'px';}
	else if (document.layers)
		setHeight = function(obj,val){obj.height = val;}
	else
		setHeight = function(obj,val){return 0;}
}

//function setLeft(obj,val)
var setLeft;
{
	if (document.getElementById)
		setLeft = function(obj,val){obj.style.left = val+'px';}
	else if (document.layers)
		setLeft = function(obj,val){obj.left = val;}
	else
		setLeft = function(obj,val){return 0;}
}

//function setTop(obj,val)
var setTop;
{
	if (document.getElementById)
		setTop = function(obj,val){obj.style.top = val+'px';}
	else if (document.layers)
		setTop = function(obj,val){obj.top = val;}
	else
		setTop = function(obj,val){return 0;}
}

//function setCursor(obj,curs)
var setCursor;
{
	if (document.getElementById)
		setCursor = function(obj,curs){obj.style.cursor = curs+', auto';}
	else if (document.all)
		setCursor = function(obj,curs){obj.style.cursor = (curs=='pointer'?'hand':curs)+', auto';}
	else
		setCursor = function(obj,curs){return 0;}
}

//function getForm(name)
var getForm;
{
	getForm = function(name) {
			for (var i9o4t82e=0; i9o4t82e < document.forms.length; i9o4t82e++)
			{
				if ( document.forms[i9o4t82e].id && document.forms[i9o4t82e].id==name )
					return document.forms[i9o4t82e];
			}
		}
}
	
//function getXmlHttp()
var getXmlHttp;
{
	if (document.all)
		getXmlHttp = function(){return new ActiveXObject('Microsoft.XMLHTTP')};
	else
		getXmlHttp = function(){return new XMLHttpRequest()};
}

function addEvent(obj, evType, fn, useCapture)
{
        if (obj.addEventListener){
                obj.addEventListener(evType, fn, useCapture);
                return true;
        } else if (obj.attachEvent){
                var r = obj.attachEvent("on"+evType, fn);
                return r;
        }
        return false;
}

function removeEvent(obj, evType, fn, useCapture)
{
        if (obj.removeEventListener){
                obj.removeEventListener(evType, fn, useCapture);
                return true;
        } else if (obj.detachEvent){
                var r = obj.detachEvent("on"+evType, fn);
                return r;
        }
        return false;
}
