var now = new Date;

var tday = now.getDate();
var tmonth = now.getMonth() + 1;
var tyear = now.getYear();

if(tyear < 1900)
// if date from Netscape, then add 1900
tyear += 1900;
var tdow = DOW(tday,tmonth,tyear);

var hebDate = civ2heb(tday, tmonth, tyear);
var hmS = hebDate.substring(hebDate.indexOf(' ')+1, hebDate.length);
var hDay = eval(hebDate.substring(0, hebDate.indexOf(' ')));
var hMonth = eval(hmS.substring(0, hmS.indexOf(' ')));
var hYear = hmS.substring(hmS.indexOf(' ')+1, hmS.length);

document.write(' ' + tday + '. ' + civMonth[tmonth] + ' ' + tyear);
document.write(' ');
document.write('/');
document.write(' ');
document.write(''+ hDay + '. ' + hebMonth[hMonth+1] + ' ' + hYear);
document.write(' ' + holidays(tday,tmonth,tyear));
document.write(' ' + moadim(tday,tmonth,tyear,hDay,hMonth,tdow));


