  // GET_SPECIFIC_VARIABLE_VALUE_FROM_URL_QUERYSTRING.JS

  // START CODE TO RETURN THE VALUE OF A SPECIFIC VARIABLE VALUE WITHIN THE CURRENT PAGES URL QUERYSTRING
  //
  // Here is a typical code call to retrieve a value within a querystring like: ?name=SOMENAME&email=SOMEEMAILADDRESS
  // The JS code to retrieve the *name* value and assign it to a variable named TheQueryStringValueFor_name would be:
  // TheQueryStringValueFor_name = returnMatchingQueryStringValueForSpecificQueryVariableName("name");
  //
  // This code ONLY works ONLINE.
  //
  function PageQuery(q) {
    if (q.length > 0)
      {
        this.q = q.substring(1, q.length);
      } else {
                 this.q = null;
               };
    this.keyValuePairs = new Array();
    if(q) {
             for (var i=0; i < this.q.split("&").length; i++)
                 {
                   this.keyValuePairs[i] = this.q.split("&")[i];
                 };
           };
    this.getKeyValuePairs = function() {
      return this.keyValuePairs;
    };
    this.getValue = function(s) {
      for (var j=0; j < this.keyValuePairs.length; j++)
          {
            if (this.keyValuePairs[j].split("=")[0] == s)
              {
                return this.keyValuePairs[j].split("=")[1];
              };
          };
      return "";
    };
    this.getParameters = function() {
      var a = new Array(this.getLength());
      for (var j=0; j < this.keyValuePairs.length; j++)
         {
           a[j] = this.keyValuePairs[j].split("=")[0];
         };
      return a;
    };
    this.getLength = function() {
      return this.keyValuePairs.length;
    };	
  };
  function returnMatchingQueryStringValueForSpecificQueryVariableName(key) {
    var page = new PageQuery(window.location.search); 
    return unescape(page.getValue(key)); 
  };
  // END CODE THAT RETURNS THE VALUE OF A SPECIFIC VARIABLE VALUE WITHIN THE CURRENT PAGES URL QUERYSTRING

