// Parameters passed through JS in url
// Author: Nicola Zordan 2/8/2007 11:11 Nicola@Zordan.net


// To handle parameter for photos path
// test no parameter: http://test.valdagnesi.com/photos/test.htm
// test parameter: http://test.valdagnesi.com/photos/test.htm?PathParameter='Images2'
// test parameter: http://test.valdagnesi.com/photos/test.htm?PathParameter='Images2'

// Test for Trip
// test no parameter: http://localhost/Web/Applications/ajax/GoogleMapsExample/Trip2.htm
// test parameter: http://localhost/Web/Applications/ajax/GoogleMapsExample/Trip2.htm?TripXML='Trip1.xml'
// test parameter: http://localhost/Web/Applications/ajax/GoogleMapsExample/Trip2.htm?TripXML='Trip2.xml'

function GetParametersFromURL () {
  //pageURL="http://florida2005.valdagnesi.com/test.htm?path='testPath'";
  var url=unescape(document.URL);
  var ParametersPassed=(url.indexOf('?')>=0);
  var ParametersJS='';
  var PathParameter='';
  if (ParametersPassed) {
    ParametersJS=url.substring(url.indexOf('?')+1);
    //alert(ParametersJS);
    eval(ParametersJS);
  };
  //document.URL.substring(document.URL.indexOf('?')+1);
  //eval(document.URL.substring(document.URL.indexOf('?')+1));
  //alert(document.URL.substring(document.URL.indexOf('?')+1));
  //alert(PathParameter);
  return ParametersJS;
};
