title: how to get the calendar visible always in the page and selected date as a argument for another method
body: <p>i face a problem where to display the calendar when the page loads and select the date and assign it to a variable. the calendar should not be hidden after selecting the date because user can select another date if required.</p>
  
  <p>this is my html :</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
  &lt;title&gt;Date&lt;/title&gt;
  &lt;script type="text/javascript" src="cal.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
   &lt;td width="65%" colspan="2" class="textfieldalign"&gt;                                                        
  &lt;input type="hidden" name="regddate" id="regddate" maxlength="10" &gt;
  &lt;div id="datePi" &gt;&lt;/div&gt;
  &lt;/td&gt;
  &lt;/body&gt;
  &lt;script&gt;
  
  onLoadInitCalendar();
  function onLoadInitCalendar(){     
  scwShow(document.getElementById('datePi'),'onClick','');return false;
  }
  
  &lt;/script&gt;     
  &lt;/html&gt;
  </code></pre>
  
  <p>i have used <code>cal.js</code> i am not able to past the code here.</p>
  
  <p>here is the sample how the calendar should look like.
  <img src="https://i.stack.imgur.com/3eNB2.png" alt="enter image description here"></p>