      var inc1 = 0;
      var cancel1 = false;
      var inc2 = 0;
      var cancel2 = false;
      
      function LightSwitch2(D2, Action)
      {
          if (Action == "On")
          {
              cancel1 = true;
              cancel2 = true;
              D2.style.visibility = "visible";
          }
          else if (Action == "Off")
          {
              cancel2 = false;
              cancel1 = false;
              inc2 = 0;
              inc1 = 0;
              setInterval("ShutDown2(D2)",80);
          }
      }
      function ShutDown2(D2)
       {
          inc2++;
          if (inc2 >= 4 && inc2 < 7)
          {
              if (cancel2 == false)
              {
                  D2.style.visibility="hidden";
              }
          }   
      }
      
      function LightSwitch1(D1, Action)
      {
          if (Action == "On")
          {
              cancel1 = true;
              D1.style.visibility = "visible";
          }
          else if (Action == "Off")
          {
              cancel1 = false;
              inc1 = 0;
              setInterval("ShutDown1(D1)",80);
          }
      }
      function ShutDown1(D1)
       {
          inc1++;
          if (inc1 >= 4)
          {
              if (cancel1 == false)
              {
                  document.getElementById("TD0").style.background="white";
                  D1.style.visibility="hidden";
              }
          }   
      }
      function ReTitle(str) 
      {
        // id is the ID of the td cell, str is new text
        //var mycel = document.getElementById("Header");
        //var myceltext = mycel.childNodes.item(0);
        //mycel.removeChild(myceltext);
        //var newtxt = document.createTextNode(str);
        //mycel.appendChild(newtxt);
        document.getElementById('Header').innerHTML = '<BR><IMG SRC="Images/Logo.gif" HEIGHT=100>';
      }


















      

