function makeArray(arraySize) { this.length = arraySize return this } month = new makeArray(12) ; month[1] = "Moharram"; month[2] = "Safar"; month[3] = "Rabii' I"; month[4] = "Rabii' II"; month[5] = "Jumada I"; month[6] = "Jumada II"; month[7] = "Rajab"; month[8] = "Sha'aban"; month[9] = "Ramadhan"; month[10] = "Shawwal"; month[11] = "DhulQia'da"; month[12] = "DhulHijja"; nm = new makeArray(12); nm[1] = "14/03/2002 2:03 UT"; nm[2] = "12/04/2002 19:22 UT"; nm[3] = "12/05/2002 10:46 UT"; nm[4] = "10/06/2002 23:47 UT"; nm[5] = "10/07/2002 10:27 UT"; nm[6] = "08/08/2002 19:16 UT"; nm[7] = "07/09/2002 3:11 UT"; nm[8] = "10/06/2002 11:18 UT"; nm[9] = "04/11/2002 20:35 UT"; nm[10]= "04/12/2002 7:35 UT"; nm[11]= ""; nm[12]= ""; mmonth = new makeArray(12) ; mmonth[1] = "jan.gif"; mmonth[2] = "feb.gif"; mmonth[3] = "mar.gif"; mmonth[4] = "apr.gif"; mmonth[5] = "may.gif"; mmonth[6] = "jun.gif"; mmonth[7] = "jul.gif"; mmonth[8] = "aug.gif"; mmonth[9] = "sep.gif"; mmonth[10] = "oct.gif"; mmonth[11] = "nov.gif"; mmonth[12] = "dec.gif"; var date = new Date(); var hour = date.getHours(); var minute = date.getMinutes(); var second = date.getSeconds(); var mon = date.getMonth(); var year = date.getYear(); var myear = date.getYear(); tim = hour + minute/60. + second/3600.; tim/=24.; ms = date.getTime(); ms=ms/86400002; ms=ms+2440587.5; ms=parseInt(ms)+.5 document.write("Julian Day=",ms); document.write("  "); ms = ms - 1948438; document.writeln("Days from Hijri Epoch=",ms); document.write("
"); y = (ms / 354.3666667); document.write("Hijri Year=",parseInt(y)+1); document.write(" "); m = (y -parseInt(y))*12; mm = parseInt(m+1); document.write(" Month=",month[mm]); d = (m -mm+1)*29.53058; d = parseInt(d); document.write(" Day=",d); document.write("
"); document.write(" * calculation , not moonsighting"); document.write("
"); // document.writeln(month[(parseInt(m)+1)]," New Moon: ",nm[parseInt(m)+1]); // document.write("
"); // if(parseInt(m)<12){ // document.writeln(month[(parseInt(m)+2)]," New Moon: ",nm[parseInt(m)+2]); // } document.write('

'); if(mon==0)document.write(''); if(mon==1)document.write(''); if(mon==2)document.write(''); if(mon==3)document.write(''); if(mon==4)document.write(''); if(mon==5)document.write(''); if(mon==6)document.write(''); if(mon==7)document.write(''); if(mon==8)document.write(''); if(mon==9)document.write(''); if(mon==10)document.write(''); if(mon==11)document.write('');
Make your own free website on Tripod.com