var xmlHttp;
var index;
var base = 'http://onlinegolfassociation.com';
var gblArgs = "";

function getXmlHttpObject()
{
	var objxmlHttp=null;
	if (window.XMLHttpRequest)     // Object of the current windows
	{
	    objxmlHttp = new XMLHttpRequest();     // Firefox, Safari, ...
	}
	else if (window.ActiveXObject)   // ActiveX version
	{
		objxmlHttp = new ActiveXObject('Microsoft.XMLHTTP');  // Internet Explorer
	}
	return objxmlHttp;
}
function stateChangeBody(arg)
{
	if( xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete')
	{
		var str = xmlHttp.responseText;
		//alert(str);
		document.getElementById('lbContent').innerHTML = str;
		notWaiting();
	}
}
function update(arg)
{
	gblArgs = arg;
	//alert(arg + 'update');
	Waiting();
	xmlHttp = getXmlHttpObject();
	var url= arg;
	//alert(url);
	xmlHttp.onreadystatechange=stateChangeBody;
	try{
		xmlHttp.open('GET', url, true);	
	}catch(e){
		alert(e + ' on line 60');
	}
	xmlHttp.send(null);
	
	
}
function Waiting(){
	document.body.style.cursor = 'wait';
}

function notWaiting(){
	document.body.style.cursor = 'auto';
}
