//**********************************************************************************************************
// File Name: date.js
// Description: This little java script is used display the date in long form on a webpage. 
//      Ex: Sunday, April 13, 2002.  
//**********************************************************************************************************
// Set mydate to Date() which gets the value of the system clock.

function convert_month(month)
{
if (month == "January")
	month="Jan";
if (month == "February")
	month="Feb";
if (month == "March")
	month="Mar";
if (month == "April")
	month="Apr";
if (month == "May")
	month="May";
if (month == "June")
	month="Jun";
if (month == "July")
	month="Jul";
if (month == "August")
	month="Aug";
if (month == "September")
	month="Sep";
if (month == "October")
	month="Oct";
if (month == "November")
	month="Nov";
if (month == "December")
	month="Dec";
return month;
}


var mydate=new Date()
var year=mydate.getYear()

// If the year is less than 1000 the add 1900 to the year for 2000 compliant
if (year < 1000)
   year+=1900

//Get the day, month, date from mydate.
var day   = mydate.getDay()
var month = mydate.getMonth()
var daym  = mydate.getDate()

// If Day of month is less than 10 then use the format 01,02...09
if (daym<10)
   daym="0"+daym


month = convert_month(month)


//Arrays for the days of the week, and months of the year
var dayarray   = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")


//var dayarray   = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
//var montharray = new Array("January","February","March","April","May","June","July","August","September","October","November","December")

//var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
//var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

//var dayarrayFr = new Array ("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi")
//var montharrayFR = new Array ("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Décember")


//Write out the date.
//document.write("<left><small><font color='#FFFFFF' face='Verdana'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small></left>");


//Copyright
var v_Copyright = "Copyright © 2002-2006. All Rights Reserved RCPL.<br><a href='terms.htm'><font color='#666633'>Terms & Conditions</font></a>"




