function WriteHeads(MSNBCstories,doc) {
	var nStories = 20;
	var sTmp;
	sTmp = "<TABLE border=0 cellspacing=0 cellpadding=0 width='545' border='1'>";

	if(nStories>MSNBCstories.length) {nStories = MSNBCstories.length;}

	for (stories = 0; stories < nStories; stories++)	{
		sTmp += "<TR><TD><a href='" +  MSNBCstories[stories][0];
		sTmp += "' target='_blank' class='newsHead'>";
		sTmp += MSNBCstories[stories][1];
		sTmp += "</a><BR><span class='newsBody'>";
		sTmp += MSNBCstories[stories][2];
		sTmp += "</span><BR><BR></TD></TR>";
	}

	sTmp += "</TABLE>";
	doc.write(sTmp);
	

}

