Why am I getting this error "block is not defined"?
<p>I am getting this javascript error: "block is not defined"</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function()
{
  $(".register_now").click(function()
  {

    $(".fp_top_right_login").slideToggle(600);
    var st = document.getElementById("fp_top_right_register").style.display;
    if(st == "" || st == "none")
    {
      window.setTimeout(document.getElementById("fp_top_right_register").style.display="block",600); //error happens here
    }
    else
    {
      window.setTimeout(document.getElementById("fp_top_right_register").style.display="none",600); //and also here
    }
  });
});
&lt;/script&gt;</code></pre>
