/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

// JavaScript Document
<!--
function the_Date_Time()
{
//variable for the date and time
var the_Date_Time = new Date();

var the_Day = the_Date_Time.getDate();
var the_Month = the_Date_Time.getMonth() + 1;
var the_Year = the_Date_Time.getFullYear();

var the_Hours = the_Date_Time.getHours();
var the_Minutes = the_Date_Time.getMinutes();
var the_Seconds = the_Date_Time.getSeconds();

//the weekday starts here
var weekday=new Array(7)
weekday[0]="Sunday"
weekday[1]="Monday"
weekday[2]="Tuesday"
weekday[3]="Wednesday"
weekday[4]="Thursday"
weekday[5]="Friday"
weekday[6]="Saturday"

//the date starts here
if (the_Day < 10)
{
the_Day = "0" + the_Day;
}
if (the_Month < 10)
{
the_Month = "0" + the_Month;
}

//the time starts here
if (the_Hours < 10)
{
the_Hours = "0" + the_Hours;
}
if (the_Minutes < 10)
{
the_Minutes = "0" + the_Minutes;
}
if (the_Seconds < 10)
{
the_Seconds = "0" + the_Seconds;
}

//display the date and time
document.getElementById("spDate_Time").innerHTML = weekday[the_Date_Time.getDay()] + "    " + the_Day + "/" + the_Month + "/" + the_Year + "    " + the_Hours + ":" + the_Minutes + ":" + the_Seconds;

window.setTimeout("the_Date_Time()",500);
}
-->


