title: If username is invalid, hide links
body: <p>This is my first time doing much with anything but perl and vb so please bear with me. </p>
  
  <p>I am able to compare two fields which need to match, and if they don't, then I need to hide HTML links completely. How would this be written?</p>
  
  <p>This grabs the first userid</p>
  
  <pre><code>($("#trid").val());            
      ($("#pxuserid").text());
      var test = $("#pxuserid").text().indexOf("-");
      var username = $("#pxuserid").text().substring(test + 1);
      (username);
  </code></pre>
  
  <p>This grabs the second userid and changes it from all uppercase to lowercase.    </p>
  
  <pre><code>($("[name=vsvadm]").val()); 
      var str = $("[name=vsvadm]").text("checked", true).val().toLowerCase();
      (str);
  </code></pre>
  
  <p>These are what I need to show/hide</p>
  
  <pre><code>&lt;div class="pxcontent" id="sarea"&gt;
  
     &lt;div class="pxvtab" id="pxform"&gt;
  
        &lt;div class="pxvtablinks"&gt;  
  
  
  
         &lt;a href="javascript:act();" rel="#page2"&gt;Directories&lt;/a&gt;
         &lt;a href="javascript:act();" rel="#page5"&gt;Accounting&lt;/a&gt;
         &lt;a href="javascript:act();" rel="#page6"&gt;Advanced&lt;/a&gt;
         &lt;a href="javascript:act();" rel="#page7"&gt;Security&lt;/a&gt;
  </code></pre>
  
  <p>I'm trying to get the script to say "If userid1 does not equal userid2, then hide Page 5, 6, and 7, but show only page 2, otherwise keep going" 
  Hopefully I didn't confuse anyone and someone could help out!</p>