var URLParams = new Object() ;var aParams = document.location.search.substr(1).split('&') ;for (i=0 ; i < aParams.length ; i++) { var aParam = aParams[i].split('=') ; URLParams[aParam[0]] = aParam[1] ;}