function getParameterByName(name){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex =newRegExp("[\\?&]"+ name +"=([^&#]*)"), results = regex.exec(location.search);return results ==null?"": decodeURIComponent(results[1].replace(/\+/g," "));}<code>function getParameterByName(name){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex =newRegExp("[\\?&]"+ name +"=([^&#]*)"), results = regex.exec(location.search);return results ==null?"": decodeURIComponent(results[1].replace(/\+/g," "));}</code>function getParameterByName(name){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex =newRegExp("[\\?&]"+ name +"=([^&#]*)"), results = regex.exec(location.search);return results ==null?"": decodeURIComponent(results[1].replace(/\+/g," "));}