title: Stop timeout within a function from another function
body: <pre><code>function One(){
     setTimeout(function(){ 
              Two();
      },3000);
  }
  
  function Two(){
     setTimeout(function(){ 
              One();
      },3000);
  }
  
  function Stop(){
     alert('this should run,and the functions above should stop');
  }
  </code></pre>
  
  <p>I want to stop autorun of the first two functions,when you click on the third.
  By now,if you click on the third,the alert shows up,but then the loop continue.Any way of doing this?</p>