function check_time () 
{
// This code is based on http://www.sislands.com/jscript/week2/timeofday.htm.

// fill the variable now with the current date
    var now = new Date();

// getHours() returns the hour from the date object. The value returned is between 0 and 23.
   var hours = now.getHours();

// If between 11pm and 2am, pop up message and redirect


   if (hours == 23 || hours == 0 || hours == 1) {

      location="http://www.ugi.com/gas/contact_maint_msg.shtml";

   }  



}

