title: onclick return and javascript
body: <p>and thanks to anyone who can help me!</p>
  
  <p>I have a text with this code:</p>
  
  <pre><code>&lt;a onclick="return showPic(this); mostrarespectacular()" href="Imatges/productosnuevos/urbano01.jpg"&gt;&amp;nbsp Circuito Espectacular Barcelona&lt;/a&gt;
  </code></pre>
  
  <p>and the scripts are:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function showPic (whichpic) {
   if (document.getElementById) {
    document.getElementById('imgContenedor').src = whichpic.href;
    if (whichpic.title) {
        document.getElementById('imgDescripcion').childNodes[0].innerHTML = whichpic.innerHTML;
    }
    return false;
   } else {
    return true;
   }
  }
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function mostrarespectacular() {
      div = document.getElementById('circuloespectacular');
      div.style.display = 'inline';
  }
  function cerrarespectacular() {
      div = document.getElementById('circuloespectacular');
      div.style.display='none';
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>and my problem is that the first function works perfect but not the second one (which has to show a div). Any ideas of what i'm doing wrong? Thanks!!</p>