title: How to use urlparam with jQuery to select radiobuttons?
body: <p>I have this URL: <code>../foo::bar{2}233{13}171{1}1{20}0.html</code></p>
  
  <p>Parameter are in <code>{}</code>, values behind.</p>
  
  <p>With this I'm able to get the values:</p>
  
  <pre><code>var vars = [], hash;
  var q = document.URL.split('bar')[1];
  if(q != undefined){
      q = q.split('%7B');
      for(var i = 0; i &lt; q.length; i++){
          hash = q[i].split('%7D');
          vars.push(hash[1]);
          vars[hash[0]] = hash[1];
      }
  };
  </code></pre>
  
  <p>How can I set the matching radio button <code>selected</code> to submit a form?</p>
  
  <pre><code>&lt;input id="233" type="radio" value="233" name="id[2]"&gt;
  &lt;label title="orange" for="233"&gt;
      &lt;img style="background: #FF6600; color: #668014" src="img/orange.gif"&gt;
  &lt;/label&gt;
  </code></pre>
  
  <p>In addition I'd like to use the <code>style</code> of the following <code>img</code> as values for styling to other divs. For select on page I have this:</p>
  
  <pre><code>$('label img').click(
      function() {
          var bg = $(this).css('background-color'); 
          var bc = $(this).css('color'); 
          $('.basic').css("background-color", bg);
          $('.detail').css("border-color", bc);
  });
  </code></pre>
  
  <p><code>document.write(String(vars['2']));</code> is not enough...</p>