var xmlHttptest = GetXmlHttpObject();
var hajbusy = 0;

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		//Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	if (xmlHttp == null) alert ('browser does not support ajax...');
	return xmlHttp;
}

function hjbusy_indicator_show()
{
	var ob = document.getElementById('hajax_progress_indicator');
	if (ob)
	{
		ob.style.visibility = 'visible';
		ob.style.display = 'block';
	}
}

function hjbusy_indicator_hide()
{
	var ob = document.getElementById('hajax_progress_indicator');
	if (ob)
	{
		ob.style.visibility = 'hidden';
		ob.style.display = 'none';
	}
}
