function callSessionRefresherPage() {try{var objXHR = new XMLHttpRequest();}catch (e) {try{var objXHR = new ActiveXObject('Msxml2.XMLHTTP');} catch (e) {try {var objXHR = new ActiveXObject('Microsoft.XMLHTTP');} catch (e) {document.write('XMLHttpRequest not supported'); }}} objXHR.open('GET', '/acts/module/refresh.php', true); objXHR.send(null);} var secs=60; var mins=29; var t=null; function display(restart, border_color) { var browser=navigator.appName; var b_version=navigator.appVersion; if ((browser=="Microsoft Internet Explorer") && (b_version.match("MSIE 6"))) { document.getElementById("divTopLeft").style.position = 'absolute'; document.getElementById("divTopLeft1").style.position = 'absolute'; document.getElementById("divTopLeft2").style.position = 'absolute'; document.getElementById("followup").style.position = 'absolute'; } if (restart == 'restart') { callSessionRefresherPage(); secs=60; mins=29; document.getElementById("cd").style.color = "#000000"; document.getElementById("cd1").style.color = "#000000"; document.getElementById("divTopLeft").style.borderColor = "#"+border_color; document.getElementById("divTopLeft").style.borderWidth = "1px"; document.getElementById("divTopLeft1").style.borderColor = "#"+border_color; document.getElementById("divTopLeft1").style.borderWidth = "1px"; document.getElementById("divTopLeft2").style.visibility='hidden'; var x=document.getElementById("myFrame"); var y=(x.contentWindow || x.contentDocument); if (y.document)y=y.document; y.body.style.backgroundColor="#ffffff"; } if((mins == 225 || mins == 210 || mins == 195 || mins == 180 || mins == 165 || mins == 150 || mins == 135 || mins == 120 || mins == 105 || mins == 90 || mins == 75 || mins == 60 || mins == 45 || mins == 30) && secs == 0) { callSessionRefresherPage(); } if (secs<=0) { secs=60 mins-=1 } if (mins<=-1) { secs=0 mins+=1 } else secs-=1 if (secs == 0 && mins == 0) { var org_id1 = document.getElementById("org_id_value").value; var objFrame=document.getElementById("myFrame"); objFrame.src='/acts/login.php?org_id='+org_id1+'&session_timeout=true&console_mode=console'; } if (secs < 10) { secs='0'+secs } if (mins < 5) { document.getElementById("cd").style.color = "red"; document.getElementById("cd1").style.color = "red"; document.getElementById("divTopLeft").style.borderColor = "red"; document.getElementById("divTopLeft").style.borderWidth = "2px"; document.getElementById("divTopLeft1").style.borderColor = "red"; document.getElementById("divTopLeft1").style.borderWidth = "2px"; document.getElementById("divTopLeft2").style.visibility='visible'; if (secs%2 == 0) { document.getElementById("div_content").innerHTML = "" } else { document.getElementById("div_content").innerHTML = "" } } if (mins < 2) { if (secs%2 == 0) { var x=document.getElementById("myFrame"); var y=(x.contentWindow || x.contentDocument); if (y.document)y=y.document; y.body.style.backgroundColor="#FFDADA"; } else { var x=document.getElementById("myFrame"); var y=(x.contentWindow || x.contentDocument); if (y.document)y=y.document; y.body.style.backgroundColor="#fff"; } } if (document.getElementById("followup").style.visibility=='visible') { if (secs%2 == 0) { document.getElementById("div_content1").innerHTML = "" } else { document.getElementById("div_content1").innerHTML = "" } } document.getElementById("cd").innerHTML = ""+mins+":"+secs+" |"; document.getElementById("cd1").innerHTML = ""+mins+":"+secs+" |"; t=setTimeout("display()",1000) } function stop_display(t) { clearTimeout(t); }