// JavaScript Document


<!--
d = new Date();
dateText = "";
dayValue = d.getDay();
if (dayValue == 0)
    dateText += "الأحد";
else if (dayValue == 1)
    dateText += "الاثنين";
else if (dayValue == 2)
    dateText += "الثلاثاء";
else if (dayValue == 3)
    dateText += "الاربعاء";
else if (dayValue == 4)
    dateText += "الخميس";
else if (dayValue == 5)
    dateText += "الجمعة";
else if (dayValue == 6)
    dateText += "السبت";

monthValue = d.getMonth();
dateText += " "
if (monthValue == 0)
    dateText += "يناير";
if (monthValue == 1)
    dateText += "فبراير";
if (monthValue == 2)
    dateText += "مارس";
if (monthValue == 3)
    dateText += "أبريل";
if (monthValue == 4)
    dateText += "مايو";
if (monthValue == 5)
    dateText += "يونيو";
if (monthValue == 6)
    dateText += "يوليو";
if (monthValue == 7)
    dateText += "أغسطس";
if (monthValue == 8)
    dateText += "سبتمبر";
if (monthValue == 9)
    dateText += "October";
if (monthValue == 10)
    dateText += "نوفمبر";
if (monthValue == 11)
    dateText += "ديسمبر";

if (navigator.appName.indexOf('Microsoft') != -1)
dateText += " " + d.getDate() + " ، " + (0000 + d.getYear());
else if (navigator.appName.indexOf('Netscape') != -1)
dateText += " " + d.getDate() + " ، " + (1900 + d.getYear());

minuteValue = d.getMinutes();
if (minuteValue < 10)
    minuteValue = "0" + minuteValue

hourValue = d.getHours();
if (hourValue < 12)
    {
    greeting = "صباح الخير!";
    timeText = " | " + hourValue + ":" + minuteValue + " ص";
    }
else if (hourValue == 12)
    {
    greeting = "مساء الخير!";
    timeText = " | " + hourValue + ":" + minuteValue + " م";
    }
else if (hourValue < 17)
    {
    greeting = "مساء الخير!";
    timeText = " | " + (hourValue-12) + ":" + minuteValue + " م";
    }
else
    {
    greeting = "مساء الخير!";
    timeText = " | " + (hourValue-12) + ":" + minuteValue + " م";
    }
document.open();
document.write(dateText + timeText);
// -->
