function decodeSearchString1()

  {

  var nameValue = new Array();

  if (location.search != '')

    {

    var searchStr = replaceChars(unescape(location.search.substring(1)));

    if (searchStr)

      {

      var formElement = searchStr.split("&");

      var tmpArray = new Array();

      for (k = 0; k < formElement.length; k++)

        {

        tmpArray = formElement[k].split("=");

        nameValue[tmpArray[0]] = tmpArray[1];

        }

      }

    }

  return nameValue

  }



var srchData = decodeSearchString1();



function replaceChars(entry)

  {

  out = "+"; // replace this

  add = " "; // with this

  temp = "" + entry; // temporary holder

  while (temp.indexOf(out)>-1)

    {

    pos= temp.indexOf(out);

    temp = "" + (temp.substring(0, pos) + add + 

    temp.substring((pos + out.length), temp.length));

    }

  return temp;

  }

