/g", "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); } var url=window.location.href; var pagename= getParameterByName('pagename',url); pagename = pagename.replace('P2P17','P2P18'); window.location.replace("http://support.heartandstroke.ca/site/PageServer?pagename="+pagename);
]] ::]]