title: smarty template - passing javascript variable in url
body: <p>I am new in smarty template
  I have added calendar, I just want to pass the date of calendar to other page.</p>
  
  <p>For example:<br>
  When a user clicks on the <code>24-12-2012</code> date then I need a url like in this format:<br>
  `eventpost.php?ed=24-12-2012``</p>
  
  <p>I have calendar.tpl file:
  </p>
  
  <pre><code>$('#calendar').fullCalendar({
      dayClick: function (date, allDay, jsEvent, view) {
          var myJsDate = date;
          var dispDate = myJsDate.getDate() + '-' + (myJsDate.getMonth() + 1) + '-' + myJsDate.getFullYear(); // 24-12-2012
          var det = dispDate
          $("#currentDate").val(dispDate);
          $('#offDayPopUp').dialog({
              autoOpen: true,
              modal: true,
              resizable: false,
              width: 300,
              height: 180,
              draggable: false
          });
          $('#calmonth_' + myJsDate.getMonth()).addClass('cal_month_active');
      },
  </code></pre>
  
  <p><strong>HTML:</strong>
  </p>
  
  <pre><code>&lt;div id="offDayPopUp" class="offDayDialog" title="Create Event,Commitment,Visiting Area."&gt;
      &lt;div class="CrateDiv"&gt;
          &lt;div style="float:left; padding-right:10px;"&gt;&lt;b&gt;Date :&lt;/b&gt;&lt;/div&gt;
          &lt;div&gt;&lt;input type="text" name="currentDate" id="currentDate" readonly="readonly" /&gt;&lt;/div&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="{$cfgRoot}/event/eventPost.php"&gt;&lt;b&gt;Create A New Event.&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="{$cfgRoot}/commitment/commitment.php"&gt;&lt;b&gt;Create A New Commitment.&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="{$cfgRoot}/area/areaPost.php"&gt;&lt;b&gt;Create A New Visiting Area.&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I just want to pass that date from JavaScript to url like:</p>
  
  <pre><code>eventPost.php?ed=24-12-2012
  commitment.php?ed=24-12-2012
  areaPost.php?ed=24-12-2012
  </code></pre>