title: function being called, not executing
body: <p>Given some URL parameter being passed: 
  /login.jsp?requestinfo=username</p>
  
  <p>Almost everything seems to be working fine but when I call the showRequestInfo function it does not execute. It is not receiving the parameter being passed to it. Why this may be failing?</p>
  
  <p>JS:</p>
  
  <pre><code>function LoginView(model, options) {
  this.LoginModel = model;
  this.bindEvents();
  this.GetURLParameter();
  }
  
  //check for parameters being passed
  //if params. are present show requested screen
  LoginView.prototype.GetURLParameter = function (sParam) {
  var sPageURL = window.location.search.substring(1);
  var sURLVariables = sPageURL.split('&amp;');
  for (var i = 0; i &lt; sURLVariables.length; i++) {
      var sParameterName = sURLVariables[i].split('=');
      if (sParameterName[0] == sParam) {
          return sParameterName[1]; 
      }
  }
     this.showRequestInfo(UrlParameter);
  };
  
  LoginView.prototype.showRequestInfo = function (sParam) {
  
  var UrlParameter = GetURLParameter('requestinfo');
  if (UrlParameter == 'username') {
  
      var getMyUsername = $('#getmyusername');
  
      if (getMyUsername.hasClass('notvisible')) {
          $('#logincontainer').animate({'left':'-280px'}, 'fast');
          $('#logincontainer').removeClass('visible');
          $('#logincontainer').addClass('notvisible');                
          getMyUsername.removeClass('notvisible');
          getMyUsername.animate({'left':'35px'}, 'slow').addClass('visible');             
      }
  }
  
  else if (UrlParameter == 'password') {
  
      var getMyPassword = $('#getmypassword');
  
      if (getMyPassword.hasClass('notvisible')) {
          $('#logincontainer').animate({'left':'-280px'}, 'fast');
          $('#logincontainer').removeClass('visible'); 
          $('#logincontainer').addClass('notvisible');               
          getMyPassword.removeClass('notvisible');
          getMyPassword.animate({'left':'35px'}, 'slow').addClass('visible');             
      }
  } 
  
  };
  </code></pre>
  
  <p>How come my showRequestInfo function is not getting executed?</p>