title: I'm trying to make a CSS and Javascript menu with current class
body: <p>I want to build an app made in javascript, PHP, and CSS, but I'm stuck in a dumb place.
  I want to make a menu to load links in an iframe called "zero". 
  And it works, now I want to make it so that when you clik on a link the background of the link goes blue, and when you click on another, the background goes back to white and that link goes blue, and so on.
  The dificult part is that I have all the links like this:</p>
  
  <p>index.php?act=page_name, so they are actualy the same page, diferent portions of it, loaded in another iframe.</p>
  
  <p>and I have a Javascript to do it :</p>
  
  <pre><code>    function grafice() {
          document.getElementById("grafice").setAttribute("class", "current");
          window.open('index.php?act=grafice_comenzi','zero');
      }
  </code></pre>
  
  <p>where "current" is like this :</p>
  
  <pre><code>    #menucase ul.vert-one li a.current,ul.vert-one li a.current:hover 
      {
          background:#80BFFF;
          color:#333333;
          border-top:solid 1px #0099FF;
          border-bottom:solid 1px #0099FF;
  
      }
  </code></pre>
  
  <p>How do I go next, I want when I click another link, something in Javascript to tell the previous link to go white again.</p>
  
  <p>here's a link to my page so far :</p>
  
  <p><a href="http://www.guku.byethost31.com/temp/" rel="nofollow">http://www.guku.byethost31.com/temp/</a></p>
  
  <p>can anyone help me please ?</p>