var querystring=this.location.search.substring(1); if (querystring.length > 0){ var params=querystring.split("&"); for (var i=0 ; i