/*--
  -- SCRIPTS.JS
  -- 
  -- "All rights reserved to Claudio Balestrino.
  --  Disclosure, reproduction or whatsoever use of this page (with or
  --  without modifications) without the prior written authorisation of Claudio
  --  Balestrino is forbidden. Violations shall be prosecuted."
  --
  -- Project: JS
  --
  -- Version: 1.0
  --
  -- Written by: Claudio Balestrino
  --
  -- Description: this file contains some Javascript scripts included by Just Soul
  --
  -- Latest Revision Date:
  --
  -- Major changes (add new changes to the top)
  --
  -- Date		Author		Brief Description		Id
  -- ---------------------------------------------------------------
  -- 10/06/05		Todd		Initial writing
  --
  --*/


/*
 * WRITEDATE
 * write the current date
 */

function WriteDate()
{
  days = new Array(7)
  days[0] = "Sunday";
  days[1] = "Monday";
  days[2] = "Tuesday"; 
  days[3] = "Wednesday";
  days[4] = "Thursday";
  days[5] = "Friday";
  days[6] = "Saturday";

  months = new Array(12)
  months[0] = "January";
  months[1] = "February";
  months[2] = "March";
  months[3] = "April";
  months[4] = "May";
  months[5] = "June";
  months[6] = "July";
  months[7] = "August";
  months[8] = "September";
  months[9] = "October"; 
  months[10] = "November";
  months[11] = "December";

  today = new Date();
  day = days[today.getDay()]
  month = months[today.getMonth()]
  date = today.getDate()
  year = today.getYear();

  if (year < 2000)
    year = year + 1900;

  document.write("<font class=\"text1\">" +
                 day + ", " + month + " " + date + ", " + year + "</font>")
}

/*
 * POPUP
 * Open a popup window
 */

function PopUp(page, xSize, ySize, xPos, yPos)
{
  var size = "height = " + xSize + ",width = " + ySize + ",screenX = " + xPos + ",screenY = " + yPos;
  aa = window.open(page, "aa", size); 
  aa.focus(); 
}
