// JavaScript Document
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
document.write("དེ་རིང་ནི་སྤྱི་ལོ ")
if(navigator.appName == "Netscape")
{
    document.write(1900+year);
    document.write(" ལོའི་ཟླ ");
    document.write(month);
    document.write(" ཚེས ");
    document.write(date);
    document.write(" ཉིན་དང་། ");
}
if(navigator.appVersion.indexOf("MSIE") != -1)
{
document.write(year);
document.write(" ལོའི་ཟླ ");
document.write(month);
document.write(" ཚེས ");
document.write(date);
document.write(" ཉིན་དང་། ");　
}if (todayDate.getDay() == 5) document.write("རེས་གཟའ་པ་སངས་ཡིན།")
if (todayDate.getDay() == 6) document.write("རེས་གཟའ་སྤེན་པ་ཡིན།")
if (todayDate.getDay() == 0) document.write("རེས་གཟའ་ཉི་མ་ཡིན།")
if (todayDate.getDay() == 1) document.write("རེས་གཟའ་ཟླ་བ་ཡིན།")
if (todayDate.getDay() == 2) document.write("རེས་གཟའ་མིག་དམར་ཡིན།")
if (todayDate.getDay() == 3) document.write("རེས་གཟའ་ལྷག་པ་ཡིན།")
if (todayDate.getDay() == 4) document.write("རེས་གཟའ་ཕུར་བུ་ཡིན།")