rem:  if (Mail.mailObject == null) { return; }  var mailObject = Mail.mailObject; 
context: 	renderPreviewSection : function(count) {		if (count == null) {			count = 0;		}				if (Mail.mailObject == null) {			return;		}				var mailObject = Mail.mailObject;		var msgsState = document.getElementById("portlet-mail-msgs-state");		var msgsSender = document.getElementById("portlet-mail-msgs-from");		var msgsSubject = document.getElementById("portlet-mail-msgs-subject");		var msgsDate = document.getElementById("portlet-mail-msgs-received");		var sectionSize = 10;		var begin = count * sectionSize;		var end = begin + sectionSize - 1;		var total = mailObject.headers.length;				if (end > (total - 1)) {			end = total - 1;		}				for (var i = begin; i < end; i++) { 				var header = mailObject.headers[i];			var state = document.createElement("div");			var stateImg = document.createElement("img");			var sender = document.createElement("div");			var subject = document.createElement("div");			var date = document.createElement("div");			var msObj = new MailSummaryObject(state, sender, subject, date, header.id, header.read, i);			var summaryList = Mail.summaryList;			stateImg.src = themeDisplay.getPathThemeImage() + "/mail/read.gif";			sender.innerHTML = header.email;			subject.innerHTML = header.subject;			date.innerHTML = header.date;						if (!header.read) {				stateImg.src = themeDisplay.getPathThemeImage() + "/mail/unread.gif";				sender.style.fontWeight = "bold";				subject.style.fontWeight = "bold";				date.style.fontWeight = "bold";			}			else if (header.replied) {				stateImg.src = themeDisplay.getPathThemeImage() + "/mail/replied.gif";			}						if (summaryList.head == null) {				summaryList.head = msObj;				summaryList.tail = summaryList.head;			}			else {				summaryList.tail.next = msObj;				msObj.prev = summaryList.tail;				summaryList.tail = msObj;			}			state.appendChild(stateImg);			msgsState.appendChild(state);			msgsSender.appendChild(sender);			msgsSubject.appendChild(subject);			msgsDate.appendChild(date);						if (Mail.currentMessageId == msObj.id) {				/* Previous message selected */				Mail.summaryHighlight(msObj);				Mail.lastSelected = msObj;				Mail.scrollToSelected();			}		}				if (end < (total - 1)) {			setTimeout("Mail.renderPreviewSection(" + (count + 1) + ")", 1);		}	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/242fd4b99b8e901d5d393f3bb44e72e7af56c8e7/mail.js/buggy/portal-web/docroot/html/js/portlet/mail.js