Check URL for #hash tag
<p>I need to detect once by load if a hash with #comment or #map is in the url to open a spoiled div with the comments and map.
This is the JavaScript that I use to open and close a div:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function spoilinout(idinout){
if (document.getElementById) {
var dividinout = document.getElementById(idinout);
dividinout.style.display = (dividinout.style.display=='block'?'none':'block');
} }
&lt;/script&gt;
</code></pre>

<p>How can I detect it?
Thanks
Frank</p>
