function MakeHandCursor(refObject)
{
	if((_UserAgent_family=="MSIE")||(_UserAgent_family=="opera"))
	{
		refObject.style.cursor = "hand";
	}
	else
	{
		refObject.style.cursor = "pointer";
	}
}

function MakeHTTPRequest(GetPart, PostPart)
{
	var RequestObj;
	if(_UserAgent_family=="MSIE")
	{
		RequestObj = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		RequestObj = new XMLHttpRequest();  
	}
	RequestObj.open("POST", GetPart, false);
	RequestObj.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	RequestObj.send(PostPart);
	if(RequestObj.readyState != 4 ) return false;
	return(RequestObj.responseText);
}

function MakeHTTPAsyncRequest(GetPart, PostPart, CallbackFunction)
{
	var RequestObj;
	if(_UserAgent_family=="MSIE")
	{
		RequestObj = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		RequestObj = new XMLHttpRequest();  
	}
	RequestObj.open("POST", GetPart, true);
	RequestObj.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	RequestObj.send(PostPart);
	if(CallbackFunction) RequestObj.onreadystatechange = function() {if(RequestObj.readyState == 4) CallbackFunction(RequestObj.responseText); };
}

function GetClientHeight()
{
	if(_UserAgent_family=="MSIE") return document.documentElement.clientHeight;
	else return innerHeight;
}

function GetClientWidth()
{
	if(_UserAgent_family=="MSIE") return document.documentElement.clientWidth;
	else return innerWidth;
}

function GetElementHeight(ElementReference)
{
	return ElementReference.offsetHeight;
}

function GetElementWidth(ElementReference)
{
	return ElementReference.offsetWidth;
}

function GetElementContentWidth(ElementReference)
{
	return ElementReference.scrollWidth;
}

function GetElementContentHeight(ElementReference)
{
	return ElementReference.scrollHeight;
}

function SetElementWidth(ElementReference, Width)
{
	ElementReference.style.width = Width+"px";
}

function SetElementHeight(ElementReference, Height)
{
	ElementReference.style.height = Height+"px";
}

function GetHScrollPos()
{
	if(_UserAgent_family=="MSIE") return document.body.scrollLeft;
	else return pageXOffset;
}

function GetVScrollPos()
{
	if(_UserAgent_family=="MSIE") return document.body.scrollTop;
	else return pageYOffset;
}

function GetElementHScrollPos(ElementReference)
{
	return ElementReference.scrollLeft;
}

function GetElementVScrollPos(ElementReference)
{
	return ElementReference.scrollTop;
}

function SetElementHScrollPos(ElementReference, ScrollPos)
{
	ElementReference.scrollLeft = ScrollPos;
}

function SetElementVScrollPos(ElementReference, ScrollPos)
{
	ElementReference.scrollTop = ScrollPos;
}

function GetElementByID(ElementID)
{
	var Element = false;
	try
	{
		var Element = document.getElementById(ElementID);
	}
	catch(err){};
	
	if(Element) return Element;
	else return false;
}

function SetElementOpacity(ElementReference, OpacityPercent)
{
	ElementReference.style.opacity = OpacityPercent/100;
	ElementReference.style.filter = "alpha(opacity="+(this.m_PopupOpacity*100)+")";
}
