// JavaScript Document

// method to retrieve url request vars and place into an array and return it

function getURLVars() {
      var map = {};
      var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
      		map[key] = value;
      });
      return map;
}