function call(fn) { try	{ eval(fn); } catch(e) { return; } }

function getById(sID)
{
	return (sID ? document.getElementById(sID) : null);
}

function hideById(labelID)
{
	var label = getById(labelID);
	if (!label)
		return;
	label.style.display = 'none';
}

/* Test Code:

	var start = new Date();
	sleep(5000);				// 5 seconds
	alert(new Date() - start);	// should be a bit over 5 seconds due to network traffic

*/
function sleep(ms)
{
	try
	{
		var http = new XMLHttpRequest();
		http.open("GET", g_baseUrl + "/sleep.aspx?ms=" + ms, false);
		http.send(null);
	}
	catch (e)
	{
		return;
	}
}