function GetHour(hour) 
{
hour = hour.getHours();
if (hour < 10)
hour = "0" + hour;
return hour; 
}

function GetMinute(minute) 
{
minute = minute.getMinutes();
if (minute < 10)
minute = "0" + minute;
return minute; 
}

function GetSecond(second) 
{
second = second.getSeconds();
if (second < 10)
second = "0" + second;
return second; 
}

function GetMonth(intMonth)
{
var MonthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
return MonthArray[intMonth];
}

function GetYear(date) 
{
year = date.getYear();
if (year < 1000)
year+=1900;
year+=1250;
return year; 
}

function getDateStr()
{
var today = new Date()
var todayStr =  today.getDate() + "-" + GetMonth(today.getMonth()) + "-" + GetYear(today) + " " + GetHour(today) + ":" + GetMinute(today) + ":" + GetSecond(today);
return todayStr;
}
