How to stop a "setInterval" and start a other with the same FUNCTION
<p>i realy need your help. I have a chat with diferent rooms. When the user click on a ROOM BUTTON it appears the messages tha has on that room, and updates with a SetINTERVAL every 2 sec.</p>

<p>EXAMPELE CODE:</p>

<pre><code>var abc = setInterval(function()
    { 
        $.ajax({
          type:"post",
          url:"logs.php?user_profil=&lt;?php echo $user_profil;?&gt;&amp;user=&lt;?php echo $user;?&gt;",
          datatype:"html",
          success:function(data)
          {
             $("#chatlogs").html(data);
          }
        });
    }, 2000);
</code></pre>

<p>The problem is that if hi clicks on a other ROOM BUTTON the chats overlap.
how can i stop the</p>

<p><strong>VAR ABC</strong>  and start it again with different values?</p>

<p><a href="http://www.informfan.com/EXAMPLE/ajax/includes/chat_profil_personal.php" rel="nofollow">HERE IS A EXAMPLE(this is just a example page):</a></p>