title: Set language settings in cookie from click of a link
body: <p>Hi I have HTML like this </p>
  
  <pre><code>    &lt;div class="header_countrys_middle"&gt;    
      &lt;a href="http://www.test.com" title="United States"&gt;&lt;img src="/images/flags/us.gif" alt="us" title="United States" /&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I set the language like this:</p>
  
  <pre><code>setcookie("lang", "en_US"); 
  </code></pre>
  
  <p>But how do I set the language based on users click?</p>