// JavaScript Document
/*  CountDown.js*/
      var _countDowncontainer=0;
       var _currentSeconds=0;
      function ActivateCountDown(strContainerID, initialValue) {
          _countDowncontainer = document.getElementById(strContainerID);
          if (!_countDowncontainer) {
              /*alert("count down error: container does not exist: "+strContainerID+
                   "\nmake sure html element with this ID exists");*/
               return;
          }
           SetCountdownText(initialValue);
           window.setTimeout("CountDownTick()", 1000);
      }
      function CountDownTick() {
           if (_currentSeconds <= 0) {
             datasubmit = confirm("Sorry, your time has expired!\r\n\r\nClick CONTINUE if you wish to continue viewing the page content \r\n(you will not be able to submit data from the page), \r\nor, click CANCEL to close this page. \r\nThis will NOT affect other open web pages. \r\n\r\nIf you wish to submit data from this page you will need to reload it.\r\n\r\n");
			 if (datasubmit) {
			  	document.getElementById('submit').style.display='none';
			 }
			 else {
				location.href = document.getElementById('userchoiceslink').href;
			 }
               return;
           }
          SetCountdownText(_currentSeconds-1);
           window.setTimeout("CountDownTick()", 1000);
       }
       function SetCountdownText(seconds) {
           //store:
          _currentSeconds = seconds;
          //get minutes:
          var minutes=parseInt(seconds/60);
          //shrink:
           seconds = (seconds%60);
          //get hours:
         var hours=parseInt(minutes/60);
           //shrink:
          minutes = (minutes%60);
          //build text:
          // var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds);
          var strText = AddZero(minutes) + ":" + AddZero(seconds);
          //apply:
           _countDowncontainer.innerHTML = strText;
       }
       function AddZero(num) {
           return ((num >= 0)&&(num < 10))?"0"+num:num+"";
       } 
// JavaScript Document
/*  CountDown.js*/
      var _countDowncontainer2=0;
       var _currentSeconds2=0;
      function ActivateCountDown2(strcontainer2ID, initialValue) {
          _countDowncontainer2 = document.getElementById(strcontainer2ID);
          if (!_countDowncontainer2) {
              /*alert("count down error: container2 does not exist: "+strcontainer2ID+
                   "\nmake sure html element with this ID exists");*/
               return;
          }
           SetCountdownText2(initialValue);
           window.setTimeout("CountdownTick2()", 1000);
      }
      function CountdownTick2() {
           if (_currentSeconds2 <= 0) {
             datasubmit2 = confirm("Sorry, your time has expired!\r\n\r\nClick CONTINUE if you wish to continue viewing the page content, or, click CANCEL to exit. \r\n\r\nIf you wish to make changes you will need to reload the page.");
			 if (datasubmit2) {
			  	document.getElementById('submit').style.display='none';
			 }
			 else {
				location.href = document.getElementById('userchoiceslink').href;
			 }
               return;
           }
          SetCountdownText2(_currentSeconds2-1);
           window.setTimeout("CountdownTick2()", 1000);
       }
       function SetCountdownText2(seconds2) {
           //store:
          _currentSeconds2 = seconds2;
          //get minutes:
          var minutes2=parseInt(seconds2/60);
          //shrink:
           seconds2 = (seconds2%60);
          //get hours:
         var hours2=parseInt(minutes2/60);
           //shrink:
          minutes2 = (minutes2%60);
          //build text:
          // var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds);
          var strText2 = AddZero(minutes2) + ":" + AddZero(seconds2);
          //apply:
           _countDowncontainer2.innerHTML = strText2;
       }
       function AddZero2(num2) {
           return ((num2 >= 0)&&(num2 < 10))?"0"+num2:num2+"";
       } 
// JavaScript Document
/*  CountDown3.js*/
      var _countDowncontainer3=0;
       var _currentSeconds3=0;
      function ActivateCountDown3(strcontainer3ID, initialValue) {
          _countDowncontainer3 = document.getElementById(strcontainer3ID);
          if (!_countDowncontainer3) {
              /*alert("count down error: container3 does not exist: "+strcontainer3ID+
                   "\nmake sure html element with this ID exists");*/
               return;
          }
           SetCountdownText3(initialValue);
           window.setTimeout("CountdownTick3()", 1000);
      }
      function CountdownTick3() {
           if (_currentSeconds3 <= 0) {
             datasubmit3 = confirm("Sorry, your time has expired!\r\n\r\nClick CONTINUE if you wish to continue viewing the page content, or, click CANCEL to exit. \r\n\r\nIf you wish to make changes you will need to reload the page.");
			 if (datasubmit3) {
			  	document.getElementById('submit').style.display='none';
			 }
			 else {
				location.href = document.getElementById('userchoiceslink').href;
			 }
               return;
           }
          SetCountdownText3(_currentSeconds3-1);
           window.setTimeout("CountdownTick3()", 1000);
       }
       function SetCountdownText3(seconds3) {
           //store:
          _currentSeconds3 = seconds3;
          //get minutes:
          var minutes3=parseInt(seconds3/60);
          //shrink:
           seconds3 = (seconds3%60);
          //get hours:
         var hours3=parseInt(minutes3/60);
           //shrink:
          minutes3 = (minutes3%60);
          //build text:
          // var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds);
          var strText3 = AddZero(minutes3) + ":" + AddZero(seconds3);
          //apply:
           _countDowncontainer3.innerHTML = strText3;
       }
       function AddZero(num) {
           return ((num3 >= 0)&&(num3 < 10))?"0"+num3:num3+"";
       } 

