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