var blurred
Timeout=15000 
Timer=""
function oStatic()
{
  clearTimeout(Timer)
  if(timerRunning == true||blurred==1)
   { // if win1 opened or opener is blurred, return<BR>
     return
   }
  timerRunning = true
  win1=window.open("saver.htm",'','fullscreen') // if win1 not opened, open win1<BR>
  Timer=setTimeout("oStatic()",Timeout) // run function oStatic after delay<BR>
}
opened=0 
function oActive()
{
 clearTimeout(Timer)
 if(opened==1){return} // if win1 opened, return<BR>
 timerRunning = false
 Timer=setTimeout("oStatic()",Timeout) // if win1 not opened run function oStatic after delay<BR>
}
document.onmousemove=oActive // detect mouse movement<BR>
document.onmousedown=oActive // detect if button pressed<BR>
document.onkeypress=oActive // detect if key press<BR>
setTimeout("oActive()",50) // start<BR>
