rem: gHtmlDocument.write("</td></tr><tr valign=top><td></td><td valign=top style='font-size:11px;'>"+uriTag+": "+calendarEventDisplay.event.url); gHtmlDocument.write("</td></tr>"); 
add: gHtmlString += "</td></tr><tr valign=top><td></td><td valign=top style='font-size:11px;'>"+uriTag+": "+calendarEventDisplay.event.url; gHtmlString += "</td></tr>"; 
context: function printWeekView(currentDate){  var dayStart=currentDate.getDate();  var dowStart = (startOfWeek <= currentDate.getDay()) ?  currentDate.getDay()-startOfWeek : 7-startOfWeek;  var weekStart=new Date(currentDate.getFullYear(), currentDate.getMonth(), dayStart - dowStart);  var weekNumber = DateUtils.getWeekNumber(currentDate) ;  gHtmlDocument.write("<table border=0 width=100% style='font-size:26px;font-weight:bold;'><tr ><td align=center valign=bottom>Week "+weekNumber+"</td></tr></table>");  gHtmlDocument.write("<table style='border:1px solid black;' width=100%>")  gHtmlDocument.write("<tr>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[weekStart.getDay()]+"</td>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[(weekStart.getDay()+1 >6) ? weekStart.getDay()+1-7:weekStart.getDay()+1]+"</td>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[(weekStart.getDay()+2 >6) ? weekStart.getDay()+2-7:weekStart.getDay()+2]+"</td>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[(weekStart.getDay()+3 >6) ? weekStart.getDay()+3-7:weekStart.getDay()+3]+"</td>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[(weekStart.getDay()+4 >6) ? weekStart.getDay()+4-7:weekStart.getDay()+4]+"</td>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[(weekStart.getDay()+5 >6) ? weekStart.getDay()+5-7:weekStart.getDay()+5]+"</td>");  gHtmlDocument.write("<td align=center style='border:1px solid black;background-color:#e0e0e0;FONT-SIZE:12px;FONT-WEIGHT: bold'>"+ArrayOfDayNames[(weekStart.getDay()+6 >6) ? weekStart.getDay()+6-7:weekStart.getDay()+6]+"</td>");  gHtmlDocument.write("</tr>");  // content here  dayToStart=weekStart.getDate();  monthToStart=weekStart.getMonth();  yearToStart=weekStart.getFullYear();  gHtmlDocument.write("<tr>");  for (var i=0; i<7; i++)  {    var thisDaysDate=new Date(yearToStart, monthToStart, dayToStart+i);    gHtmlDocument.write("<td style='border:1px solid black;' valign=top width=14% height=500>");    gHtmlDocument.write("<table valign=top width=100 border=0>"); // to force uniform width    gHtmlDocument.write("<tr valign=top><td valign=top colspan=2 align=center>");    gHtmlDocument.write(monthNames[thisDaysDate.getMonth()].substring(0,3)+" "+thisDaysDate.getDate());    gHtmlDocument.write("</td></tr>");    gHtmlDocument.write("<tr><td width=20%></td><td width=80%></td></tr>");    var calendarEventDisplay    // add each calendarEvent    dayEventList = eventSource.getEventsForDay( thisDaysDate );    for( var eventIndex = 0; eventIndex < dayEventList.length; eventIndex++ )    {      calendarEventDisplay = dayEventList[ eventIndex ];      var listpriv=true;      if (calendarEventDisplay.event.privateEvent)        if (! gShowprivate.checked)          listpriv=false;      if (listpriv)      {        eventTitle=calendarEventDisplay.event.title;        var eventStartTime = new Date( calendarEventDisplay.event.start.getTime() ) ;        var formattedStartTime=returnTime(eventStartTime);        var eventEndTime = new Date( calendarEventDisplay.event.end.getTime() ) ;        var formattedEndTime=returnTime(eventEndTime);        var formattedTime=formattedStartTime+"-"+formattedEndTime;        if (calendarEventDisplay.event.allDay)          gHtmlDocument.write("<tr valign=top><td valign=top colspan=2 style='font-size:11px;'>");        else          gHtmlDocument.write("<tr valign=top><td valign=top colspan=2 style='font-size:11px;'>"+formattedTime+"</td></tr><tr><td></td><td valign=top style='font-size:11px;'>");        gHtmlDocument.write(eventTitle);        if (calendarEventDisplay.event.location)          gHtmlDocument.write("</td></tr><tr valign=top><td></td><td valign=top style='font-size:11px;'>"+locationTag+": "+calendarEventDisplay.event.location);        if (calendarEventDisplay.event.url)          gHtmlDocument.write("</td></tr><tr valign=top><td></td><td valign=top style='font-size:11px;'>"+uriTag+": "+calendarEventDisplay.event.url);        gHtmlDocument.write("</td></tr>");      }    }    gHtmlDocument.write("</table>");  }  gHtmlDocument.write("</tr>");  gHtmlDocument.write("</table>")}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/60fbfed7d20e7300b099643b608bc81aef8cc97a/calPrintEngine.js/clean/calendar/resources/content/calPrintEngine.js