function checkLogin(target)
{
	if (window.event)
	{
		if (event.keyCode == 13)
			window.event.keyCode = 9;
		window.event.cancelBubble = true;
	}

	var span = getElement("maincontent");
	span.innerHTML = '<table width="98%" cellpadding="0" cellspacing="0" border="0">';
	span.innerHTML += '<tr><td><p>Please be patient whilst we verify your details.</p></td></tr>';
	span.innerHTML += "</table><ul>";

	var h1 = getElement("headline");
	h1.innerHTML = "Processing Login Request";

	setTimeout("updateSpan('Validating Security Details...');", 1500);
	setTimeout("updateSpan('Loading Client Information...');", 3000);
	setTimeout("updateSpan('Loading Holdings...');", 4500);
	setTimeout("updateSpan('Compiling Portfolio...');", 6000);
	setTimeout("updateSpan('Updating Prices...');", 7500);
	setTimeout("updateSpan('Displaying Portfolio...');", 9000);

	//if we get this far then we can carry on
	setTarget(target);

}

function updateSpan(spanText) {
	var span = getElement('maincontent');
	span.innerHTML += "<li style='font-size:9pt'>" + spanText + "</li>";
}

function setLogout()
{
	//set the logout textbox
	getElement("txtLILogout").value = "YES";
	setTarget('apps/Logout');
}
