code: function getUrlGETparams() {
      var vars = {}, hash;
      var hashes = window.location.href.slice( window.location.href.indexOf('?') + 1 ).split('&');
      for( var i = 0; i < hashes.length; i++ ) {
          hash = hashes[i].split('=');
          vars[ hash[0] ] = hash[1];
          // switch on console logging
          if ( hash[0] == 'info') { logInfo = true  }
          if ( hash[0] == 'info' && hash[1] && hash[1] != '') { logInfoStr = hash[1] }
      }
      //alert( JSON.stringify( vars )  );
      return vars;
  }
docs: Read a page's GET URL variables and return them as an object.