title: How to enable and disable javascript functions?
body: <pre><code>             if(tmpStr == tmp+value)
               {
                  i=1;
                  action = null;
                  action2 = null;
               }
               if(tmpStr1 == tmp+value)
               {
                  i=0;
                              action();//not working
                              action2();//not working
               }
               for(i;i&lt;=14; i++)
               {
                   if(tmp!="movie"+i) 
                   {
                      document.getElementById("movie"+i).sndToAS("resume");
                   }
               }
  
           }
           function action()
           {
              document.getElementById("movie0").sndToAS("pause");
           }
           function action2()
           {
              if(tmp != "movie0")
              {
                  document.getElementById("movie0").sndToAS("pause");
  
              }
           }
  </code></pre>