//
timestamp = 0;
function addMessages(xml)
{
timestamp = $("time", xml).text();
$("p", xml).each(function()
{
$("#messagewindow").append("
" + this.firstChild.data + "
");});
}
function updateMsg()
{
$.post
(
"/liveblogload.jsp",
{
id: 18612,
time: timestamp
},
function(xml) {addMessages(xml);}
);
setTimeout('updateMsg()', 4000);
}
setTimeout('updateMsg()', 4000);
//]]>