", __tis=[]; function fDrawCal(y,m) { var td,htm,bo,ag,i,c,c1,dayNo,dc,cbg,isT,isS,weekNo,cd,ex,bfb,sCellDate,sWkCol,weekYear; var ms=giMarkSelected,ht=giMarkToday; var a=[""]; gCurMonth[0]=y; gCurMonth[1]=m; fBuildCal(y,m); for (var wd=0,i=0; i<8; i++) if (i==giWeekCol) a.push(__sWH,gsWeekHead,__sDIVTD); else if (i!=7||giWeekCol>=0) { var sDoW=fOnDoWClick?""+gWeekDay[wd]+"":""+gWeekDay[wd]+"" a.push(__sCH,sDoW,__sDIVTD); wd++; } a.push(""); if (giWeekCol>=0) { var w=fDate2W(y,m,1); weekYear=w[0]; weekNo=w[1]; } for (var week=0; week<6; week++) { ex=week>3&&__cal[week][0][1]<20; if (gbShrink2fit&&ex) continue; a.push(""); for (var day=-1,i=0; i<8; i++) if (i==giWeekCol) { sWkCol=fOnWeekClick?""+eval(gsWeeks)+"":""+eval(gsWeeks)+""; a.push(__sWC,(giShowOther&8)&&!(giShowOther&16)&&ex?" ":sWkCol,__sDIVTD); if (m==1&&weekNo>50||m==12&&weekNo>=52&&weekNo>=fDate2W(y,12,31)[1]) { weekNo=0; weekYear++; } weekNo++; } else if (i!=7||giWeekCol>=0) { day++; dayNo=__cal[week][day][1]; var tid=week*10+day; cd=fCalibrate(y,__cal[week][day][0]); isT=gToday[2]==dayNo&&gToday[1]==cd[1]&&gToday[0]==cd[0]; ag=fGetAgenda(cd[0],cd[1],dayNo,true); if (ag==null) { dc=giShowOther&16&&(week<2&&(giShowOther&4)||week>3&&(giShowOther&8))?gcOtherDay:""; cbg=null; bo=false; __tis[tid]=td=htm=""; bfb=gbFlatBorder; c=c1=gcOtherDayBG; } else { isS=fIsSelected(cd[0],cd[1],dayNo)&&ag[1]!=null; cbg=ag[4]; dc=ag[3]==null?day==giSun?gcSun:day==giSat?gcSat:gcWorkday:ag[3]; if (cd[1]==m||(giShowOther&2)) { c=isS&&(ms&2)?gcBGSelected:isT&&(ht&2)?gcBGToday:ag[2]; c1=isS&&(ms&1)?gcBGSelected:ag[2]!=gcCellBG&&ag[5]!=true?ag[2]:isT&&(ht&1)?gcBGToday:gcCellBG; bo=isS&&(ms&4)||isT&&(ht&4); dc=isS&&(ms&8)?gcFGSelected:isT&&(ht&8)?gcFGToday:dc; cbg=isS&&(ms&16)?guSelectedBGImg:isT&&(ht&16)?guTodayBGImg:cbg; } else { bo=false; c=ag[2]; c1=ag[5]==true?gcCellBG:c; } bo=gbBoldAgenda&&ag[0]&&ag[0]!=gsOutOfRange||bo; bfb=gbFlatBorder&&c1!=gcCellBG; htm=ag[6]?ag[6]:""; td=ag[1]==null&&_lineThru?";text-decoration:line-through":""; __tis[tid]=isS&&gsSelectedTip?gsSelectedTip:ag[0]?ag[0]:isT&&gsTodayTip?gsTodayTip:""; if (gcSunBG&&day==giSun) { c1=c1==gcCellBG?gcSunBG:c1; c=c==gcCellBG?gcSunBG:c; } if (gcSatBG&&day==giSat) { c1=c1==gcCellBG?gcSatBG:c1; c=c==gcCellBG?gcSatBG:c; } } if (gbInvertBold) bo=!bo; if (gbInvertBorder) bfb=!bfb; sCellDate=cd[0]+","+cd[1]+","+dayNo; a.push(""); } a.push("
 ",__sDIVTD);else{ a.push("' onmouseover='fHint(this,",tid,");fMouseOver(this);fDragIt(",sCellDate,",1,event);return true' onmouseout='fMouseOut(this)' onmousedown='if(!fDragIt(",sCellDate,",0,event))fSetDate(",sCellDate,",true,event);return false' onmouseup='fDragIt(",sCellDate,",2,event)'>",eval(gsDays),"",htm,__sDIVTD);} ag=null; } a.push("
\n"); return a.join(''); } with (document) { body.bgColor=gcCalBG; var a=[""]; if (!gbHideTop) if (giDCStyle==2) a.push(""); else if (giDCStyle==1){ a.push(""); } else { a.push(""); } a.push(""); if (!gbHideBottom) a.push(""); a.push("
",eval(gsCalTitle),"
",gsNavPrev,""); a.push(eval(gsCalTitle)); a.push("",gsNavNext,"
",gsNavPrev," "); var mstr=[""); mstr=mstr.join(''); var ystr=[""); ystr=ystr.join(''); if (gbDCSeq) a.push(mstr,ystr); else a.push(ystr,mstr); a.push(" ",gsNavNext,"
",gsBottom,"
"); for (var i=0;i