//usage: requestParameter['id']

//Create the global array to hold the requestParameters.
requestParameter = new Array();

//Get the location of the querystring in the current url.
qsStartPos = parent.window.location.href.lastIndexOf('?');

//If there is a queryString
if (qsStartPos != -1) {
     //Get everything after the ? mark
     qs = parent.window.location.href.substr(qsStartPos+1);
     //Split the paramters out into an array;
     qsArrayTemp = (qs.split('&'));

     //Now go through the parameters we've found.
     for (i =0; i < qsArrayTemp.length; i++)
     {
          //and split out the name=values
          element = qsArrayTemp[i].split('=');
          //and populate the requestParameter array
          //with the current name=value pair
          requestParameter[element[0]] = element[1];
          
     }
     //At this point, we're finished, 'requestParameter' now
     //contains all the values from the query string.
 }

if (requestParameter['fwd'] != null) {    
    parent.main.location =  requestParameter['fwd'].toString().replace('--', '/');
     }
