function ShowLoadingScreen()
{
	document.getElementById("loading_screen_container").style.visibility = "visible";
	document.body.scrollTop = 0;
	document.body.style.overflow = "hidden"
}

function HideLoadingScreen()
{
	document.getElementById("loading_screen_container").style.visibility = "hidden";
	document.getElementById("loading_screen").innerHTML = '<img src="images/loading_animated.gif" /><br />Please wait....<br /><br /><button onclick="CancelLoad()" id="loading_screen_cancel">Cancel</button>';
	document.body.style.overflow = "scroll"
}

function CancelLoad()
{
	if(lastHTTPRequest != null)
		lastHTTPRequest.abort();
	
	HideLoadingScreen();
}