      function ShowPopup (iPopup)
         {
            var iIndex

            for(iIndex = 0; iIndex < 2; iIndex++) {
               if (iIndex == iPopup) {
                  document.getElementById('DivPopup' + iIndex).style.visibility = "visible";
               }
               else {
                  document.getElementById('DivPopup' + iIndex).style.visibility = "hidden";
               }
            }
         }

         function HideAllPopup ()
         {
            var iIndex

            for(iIndex = 0; iIndex < 2; iIndex++) {
               document.getElementById('DivPopup' + iIndex).style.visibility = "hidden";
            }
         }

      
      
      
      
      