// -----------------------------------------------------------------------------

function CreateCurrentTimeString() {
// Purpose :  Create a string representing the current time.
// Input :
//    <none>
// Output :
//    <Return value> :  String representing current time.  Example :  6:18:36 PM
// Note :
//    Netscape :  You will need to have this function be a method of the object
//       if you intend to call it from one of that object's methods.
//       This is not needed under Internet Explorer.
// Author :  Jerome Daoust, 1999/10/22.

   var today = new Date()
   var hour = today.getHours()
   var minute = today.getMinutes()
   var second = today.getSeconds()
   var temp = "" + ((hour > 12) ? hour - 12 : hour)
   temp += ((minute < 10) ? ":0" : ":") + minute
   temp += ((second < 10) ? ":0" : ":") + second
   temp += (hour >= 12) ? " PM" : " AM"

   return temp
}
// -----------------------------------------------------------------------------

function GetCurrentYear() {
// Purpose :  Return the current Year.
// Input :
//    <none>
// Output :
//    <Return value> :  Current Year.  Example :  2001
// Note :
//    Netscape :  You will need to have this function be a method of the object
//       if you intend to call it from one of that object's methods.
//       This is not needed under Internet Explorer.
// Author :  Jerome Daoust, 2001/1/18.

   var today = new Date()
   var year = today.getYear()
   if ( year < 2000 ) year += 1900

   return year
}
// -----------------------------------------------------------------------------

function GetCurrentMonth() {
// Purpose :  Return the current Month.
// Input :
//    <none>
// Output :
//    <Return value> :  Current Month.  Example :  12
// Note :
//    Netscape :  You will need to have this function be a method of the object
//       if you intend to call it from one of that object's methods.
//       This is not needed under Internet Explorer.
// Author :  Jerome Daoust, 2001/1/18.

   var today = new Date()
   var month = today.getMonth() + 1

   return month
}
// -----------------------------------------------------------------------------

function GetCurrentDayOfMonth() {
// Purpose :  Return the current Day of month.
// Input :
//    <none>
// Output :
//    <Return value> :  Current Day.  Example :  31
// Note :
//    Netscape :  You will need to have this function be a method of the object
//       if you intend to call it from one of that object's methods.
//       This is not needed under Internet Explorer.
// Author :  Jerome Daoust, 2001/1/18.

   var today = new Date()
   var day = today.getDate()

   return day
}
// -----------------------------------------------------------------------------

function CreateCurrentDateString() {
// Purpose :  Create a string representing the current date.
// Input :
//    <none>
// Output :
//    <Return value> :  String representing current date.  Example :  1999/9/8
// Note :
//    Netscape :  You will need to have this function be a method of the object
//       if you intend to call it from one of that object's methods.
//       This is not needed under Internet Explorer.
// Author :  Jerome Daoust, 1999/10/22.

   // I can not use GetCurrentYear() / ...Month() / ...DayOfMonth() under NetScape.
   var today = new Date()
   var year = today.getYear()
   if ( year < 2000 ) year += 1900
   var month = today.getMonth() + 1
   var day = today.getDate()
   var temp = "" + year + "/" + month + "/" + day

   return temp
}
// -----------------------------------------------------------------------------

