Javascript to substring hours minutes and seconds
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1493407/how-to-split-a-string-in-javascript">how to split a string in javascript</a>  </p>
</blockquote>



<p>Please help me to substring and separate the below string in three variables using javascript. </p>

<pre><code>var str="HH:MM:SS";
</code></pre>

<p>variable 1 is HH
variable 2 is MM
variable 3 is SS</p>

<p>Thanks</p>
