title: javascript check time and display message
body: <p>How do you retrieve the hours and minutes of <code>Date</code> object and then display a message? If the time is between 9pm and 12am I want to display "We are closed", otherwise I want to display "We are open".</p>
  
  <pre><code>&lt;script language="javascript"&gt; 
  &lt;!-- 
      today = new Date();
      document.write('&lt;BR&gt;We are Open');
  //--&gt; 
  &lt;/script&gt; 
  </code></pre>