﻿timedouturl = "../logout.aspx";
var Vorgabe = 60;
var sec = 0;
function Down() {
sec--;
window.status = "Weiterleitung in : " + sec + " s";

if (sec == 0) {
window.location.href = timedouturl;
}
else down = setTimeout("Down()", 1000);
}
function zaehlen() {
sec = 0 + Vorgabe;
Down();
}
zaehlen()
// bei mousedown zähler zurücksetzen
function spaeter() {
sec = 0 + Vorgabe;
return
}
//var MyTimeout=10;  // Hier Anzahl der Minuten eingeben, bis umgeleitet wird
//  var MyRedirect='../logout.aspx';  // Hier Logout-Page/ Login-Page angeben (ohne ~, sondern ../)

//  function CountDown() {
//    if (document.Log.MyMinute.value=="")
//    {
//      document.Log.MyMinute.value = MyTimeout;
//    }
//    else
//    {
//      document.Log.MyMinute.value = document.Log.MyMinute.value-1;
//    }
//    if (document.Log.MyMinute.value==0)
//    {
//      window.location.href = MyRedirect;
//    }
//    setTimeout("CountDown()", 60000);
//  }
//function TABLE1_onclick() {
//}