//start session timeout warning function
var sessionWarningWindow;
function HandleFocus()
{
  if (sessionWarningWindow)
  {
    if (!sessionWarningWindow.closed)
    {
		sessionWarningWindow.focus();
    }
    else
    {window.top.onfocus = "";}
  }
  return false;
}

function ShowTimeoutWarning(url)
{	
	var leftOffset = 272;
	var topOffset = 250;
	
	if(screen.width)
	{	
		if(screen.width < 800)
		{
			leftOffset=60;
			topOffset=90;
		}
		else if(screen.width>=800 && screen.width<1024)
		{
			leftOffset=160;
			topOffset=134;
		}
	}
	window.top.onfocus = HandleFocus;
	sessionWarningWindow = window.open (url, "newWin", 'toolbar=0,titlebar=0,scrollbars=0,resizable=0,menubar=0,Height=50,Width=500,top=' + topOffset + ',left=' + leftOffset);
	sessionWarningWindow.focus();
}
//end session timeout warning function
