title: include SSI in javascript code
body: <p>based on the query string, I include a portion of a different code SSI in the footer page.
  My query string for example:</p>
  
  <p>?headId=520&amp;genderType=2 </p>
  
  <p>?headId=600&amp;genderType=1 </p>
  
  <pre><code>function GetQueryStringParams(sParam){
  
      var sPageURL = window.location.search.substring(1);
      var sURLVariables = sPageURL.split('&amp;');
      for (var i = 0; i &lt; sURLVariables.length; i++) {
          var sParameterName = sURLVariables[i].split('=');
          if (sParameterName[0] == sParam) {
              return sParameterName[1];
          }
      }
  }​
  
  $(document).ready(function() {
  
      var genderM = GetQueryStringParams('genderType');
      var genderF = GetQueryStringParams('genderType');
  
      if ( genderM == 2 ) {
          $('#adv').html('&lt;!--#include virtual="genderM.shtml"--&gt;')
      } else if (genderF == 1 ){
          $('#adv').html('&lt;!--#include virtual="genderF.shtml"--&gt;')
      };
  
  });
  </code></pre>
  
  <p>Can someone help me?</p>
  
  <p>Thanks!!</p>