54c54 < var prmstr = window.location.search.substr(1).replace('numlegs=',''); --- > var prmstr = window.location.search.substr(1); 64d63 < var cnumlegs = location.search.split('numlegs=')[1] ? decodeURIComponent(location.search.split('numlegs=')[1].split('&')[0]) : ''; 125c124 < if (prmstr.replace('?numlegs=','').indexOf("=") != (0 - 1)) { --- > if (prmstr.indexOf("=") != (0 - 1)) { 421,423d419 < if (cnumlegs != '') { < numlegs = '' + cnumlegs; < } else { 425d420 < } 1053c1048 < if (document.URL.replace('?numlegs=','').indexOf('?') != -1) { --- > if (document.URL.indexOf('?') != -1) {