<!--
cdId = 0;
seconds = 0;
//minutes = document.forms[0].SessionTimer.value;
strSeconds = "";
function countDown(){
    if(seconds == 0 && minutes == 0){
        document.forms[0].SessionTimer.value = '-----';
    } else {
        if(seconds == 0){
            minutes --;
            seconds = 59;
        }else{
            seconds --;
        }
        if (minutes < 5 && minutes > 1) {
            if ((document.getElementById) && (document.getElementById('SessionTimer')!=null)) {
                // Get a reference to the element
                var myElement = document.getElementById('SessionTimer');
                if ((myElement.style)&& (myElement.style.backgroundColor!=null)) {
                    // change style to new color
                    document.getElementById('SessionTimer').style.backgroundColor = 'yellow';
                }
            }
        }else{
            if (minutes <= 1){
                if ((document.getElementById)&& (document.getElementById('SessionTimer')!=null)) {
                    // Get a reference to the element
                    var myElement = document.getElementById('SessionTimer');
                    if ((myElement.style)&& (myElement.style.backgroundColor!=null)) {
                        // change style to new color
                        document.getElementById('SessionTimer').style.backgroundColor = 'red';
                    }
                }
            }
        }
        strSeconds = "0"+seconds.toString();
        strSeconds = strSeconds.substring(strSeconds.length-2);
        seconds = strSeconds.valueOf();
        self.status = "Time left before Session Timeout: "+minutes+":"+seconds;
        document.forms[0].SessionTimer.value = minutes+":"+seconds;
    }
}
setInterval("countDown()",1000);
// -->
