rendered paste bodyfunction FInfoCheck()
{
var txt1 = '', txt2 = '', txt3 = '', txt4 = '';
var tmp1,tmp2,tmp3,fineltext;
tmp1 = document.getElementById("Levaia1");
tmp2 = document.getElementById("Levaia2");
if ((tmp1.checked) || (tmp2.checked))
{
if (tmp1.checked) { txt1 = "ההופעה תתקיים "; }
else if (tmp2.checked) { txt1 = "ההופעה התקיימה "; }
}
else
{
txt1 = '';
}
if ((tmp1.value != "Year") && (tmp2.value != "Month") && (tmp3.value != "Day"))
{
var weekday=new Array(7);
weekday[0]="ראשון";
weekday[1]="שני";
weekday[2]="שלישי";
weekday[3]="רביעי";
weekday[4]="חמישי";
weekday[5]="שישי";
weekday[6]="שבת";
tmp1 = document.getElementById("Year");
tmp2 = document.getElementById("Month");
tmp3 = document.getElementById("Day");
var MyDate = new Date(tmp1.value,tmp2.value-1,tmp3.value); //Dropping 1 out of month since it's indexed.
var TodayDay = weekday[MyDate.getDay()];
//document.write("Today it is " + weekday[d.getDay()])
//jseval: d = "2007-09-27"; var foo = d.split(/-/); var td = new Date( foo[0], foo[1]-1, foo[2] ); ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'][ td.getDay() ]
//<buubot> Woosta: Thursday
txt2 = 'ביום ' + TodayDay + ',' + tmp1.value + '/' + tmp2.value + '/' + tmp3.value + ' ';
}
else
{
txt2 = '';
}
tmp1 = document.getElementById("Fhour");
tmp2 = document.getElementById("Fminute");
if ((tmp1.value != "--") && (tmp2.value != "--"))
{
txt3 = 'בשעה '+tmp1.value+':'+tmp2.value+' ';
}
else
{
txt3 = '';
}
tmp1 = document.getElementById("BeitAlmin").value;
tmp2 = tmp1.replace(/\s+/g,''); //the /g is for all cases (not only first case). the /i is case insensitive.
if (tmp2 != '')
{
txt4 = 'בבית העלמין ' + tmp1;
}
else
{
txt4 = '';
}
fineltext = txt1 + txt2 + txt3 + txt4;
document.getElementById("LevaiaInfo").innerHTML = fineltext;
}