title: Javascript toggle button that changes div visibility, and toggles button text
body: <p>This would be a great deal easier if I could use jQuery, but I'm trying to avoid doing so for a few reasons. Meanwhile, I've gotten some of the script to work - and I'm attempting to add the function to toggle the button text with the state of the div.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function toggleMe(a){
      var e = document.getElementById(a);
      if(!e) return true;
      if(e.style.display == "none") {
          e.style.display = "block"
      } else {
          e.style.display = "none"
      }
      return true;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>That script works, and nicely, with my current button:</p>
  
  <pre><code>&lt;input type="button" onclick="return toggleMe('para0')" value="Expanse"&gt;&lt;br&gt; 
  &lt;div id="para0"&gt;TEST TEXT&lt;/div&gt;
  </code></pre>
  
  <p>Trying to have the text toggle with the state of the div visibility. Most answers I've seen are using jQuery, and the context I'm putting the script into makes forms a non-option.</p>