// JScript source code
var remainingseconds=(1000*60*60);
var msg = "Your session has timed out after 60 minutes.<br><br>\n "+"You will need to re-start your application.";
function timeoutwarning ()
{
 var hWnd = window.open("","timeoutwarning","width=440,height=140,resizable=no,scrollbars=no,status=0,toolbar=0");
 hWnd.document.write('<html><head><title>Warning! JHA Recruitment</title></head><body>\n');
 hWnd.document.write('<script language="JavaScript">\n');
 hWnd.document.write('function Goto(){\n');
 hWnd.document.write('window.opener.location="default.aspx";\n');
 hWnd.document.write('window.close();');
 hWnd.document.write('}\n');
  hWnd.document.write('</script>\n');
 hWnd.document.write('<center><table witdh="90%" cellspacing="0" cellpadding="0" border="0"><tr><td><font size="-1" color="#dd000"><br>\n');
 hWnd.document.write(msg);
 hWnd.document.write('</b></font></td></tr></table><br>\n');
 hWnd.document.write('<form><input type="button" NAME="OK" value=" ok " onclick="Goto();"/></form>\n');
 hWnd.document.write('<br><br>\n');
 hWnd.document.write('<script language="JavaScript">\n');
 hWnd.document.write('setTimeout("Goto()",15*1000);\n');
  
 hWnd.document.write('</script>\n');
 hWnd.document.write('</body></html>\n');
 hWnd.focus();
}

function timeoutcheck ()
{
 setTimeout("timeoutwarning()",remainingseconds);
}

timeoutcheck();

