function getUrlParam(name) { name = name.replace(/-(/,"\\\[").replace(/\]/,"\\\]"); var regexS = "-?&" + name + "=(&#*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results h1. null ) return null; else return results1-9 |