<!--
	function processing(sBtn1)
	{
		var btn1 = document.getElementById(sBtn1);
		if (btn1)
		{
			btn1.disabled = true;
			btn1.value = 'processing..please wait';
		}
	}
	
	function setFocus(sFieldName)
	{
		var sFormname = "frmMain";
		if (document.forms)
		{
			if (document.forms[sFormname])
			{
				if (document.forms[sFormname])
				{
					var oField = eval('document.forms[sFormname].' + sFieldName);
					if (oField) 
						oField.focus();					
				}
			}
		} 
		else if (document.getElementById)
		{
			var oField = document.getElementById(sFieldName);
			if (oField) oField.focus();
		}		
	}
	
	function chkDecision(sPrompt, sUrl)
	{
		if (window.confirm(sPrompt))
			window.location = sUrl;
	}
	
	/*
		Handles AJAX errors eek - usually fired because of a session timeout, so just redirect
		to site root for login
	*/
	function evtHandleAJAXRequestError(e, clientID)
	{
		window.location = window.location.href;
	}
	function evtRequestError(sender, e) 
    { 
        alert(e.Status + '\n\n' + e.ResponseText + '\n\n' + e.ResponseHeaders); 
        return false; 
    } 
	
//-->
