// *************************************************************************
function SetInnerHTML(ObjectName, URL)
{
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.*/
try
	{
	xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
	}
catch (e)
	{
	try
		{
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	catch (E)
		{
		xmlhttp = false;
		}
	}
/*@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
	{
	try
		{
		xmlhttp = new XMLHttpRequest();
		}
	catch (e)
		{
		xmlhttp=false;
		}
	}

if (!xmlhttp && window.createRequest)
	{
	try
		{
		xmlhttp = window.createRequest();
		}
	catch (e)
		{
		xmlhttp=false;
		}
	}

var Index = URL.indexOf('?');
var Query;

if (Index == -1)
	Query = null;
else
	{
	Query = URL.substring(URL.indexOf('?') + 1);
	URL = URL.substring(0, Index);
	}

xmlhttp.open("POST", URL, true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("Charset", "utf-8");

xmlhttp.onreadystatechange = function()
	{
	if (xmlhttp.readyState == 4)
		{
		document.getElementById(ObjectName).innerHTML = xmlhttp.responseText;
		}
	}

xmlhttp.send(Query);
return;
}
// *************************************************************************
function Left(str, n){
if (n <= 0)
	return "";
else if (n > String(str).length)
	return str;
else
	return String(str).substring(0, n);
}
// *************************************************************************
function Right(str, n){
if (n <= 0)
	return "";
else if (n > String(str).length)
	return str;
else
	{
	var iLen = String(str).length;
	return String(str).substring(iLen, iLen - n);
	}
}
// *************************************************************************
