//*** This code is copyright 2003 by Gavin Kistner, gavin@refinery.com //*** It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt //*** Reuse or modification is free provided you abide by the terms of that license. //*** (Including the first two lines above in your source code satisfies the conditions.) // Adds a new 'keyVals' property to the window.location object // Note that this implementation is case-sensitive when retrieving by key location.keyVals = /\?.+/.exec(location.href) location.keyVals = location.keyVals?(location.keyVals[0].substring(1).split('&')):[]; for (var i=0,len=location.keyVals.length;i