title: Modal popup with redirect button
body: <p>I am sure this is simple, but I am not sure how to achieve this in a simple manner. When users go to mysite.com I would like for a modal to popup first. Inside the modal I need to have three buttons, each button points to a different URL when pushed.</p>
  
  <p>I have a basic popup that works fine, howevert I am not sure how to add in the button and also style it with CSS.</p>
  
  <p>Any help is greatly appreciated. The reason for the usage of the one below is it worked for me and it retained a session cookie.</p>
  
  <pre><code>function setSessionCookie (c_name, value)
  {
      document.cookie= c_name + "=" + escape(value) + ";path=/";
  }
  
  function getCookie (c_name)
  {
      if (document.cookie.length&gt;0)
      {
          c_start = document.cookie.indexOf(c_name + "=");
          if (c_start != - 1)
          {
              c_start = c_start + c_name.length + 1;
              c_end = document.cookie.indexOf(";", c_start);
              if (c_end == -1) c_end = document.cookie.length;
              return unescape (document.cookie.substring(c_start,c_end));
          }
      }
  
      return "";
  }
  
  
  if (getCookie("bannerDisplayed").length &lt;= 0)
  {
      result = confirm("Please select one on the locations you would like to visit."); 
  
      if (result != true) document.location="about:blank";
      else
      {
          setSessionCookie("bannerDisplayed", "true");
      }
  }
  </code></pre>