function GetHttpParameter( paramName )
{
paramName = paramName.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+paramName+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href ); // or: regex.exec( unescape( window.location.href ) ) when needed...
if( results == null )
return "";
else
return results[1];
}
(Original idea: http://www.netlobo.com/url_query_string_javascript.html ... Thank You!)