
window.onload = init;
function init() {
	getVotersByPageSize();
	window.setInterval(getVotersByPageSize, 200000);
}
function getVotersByPageSize() {
	voterBiz.getVotersByPageSize(20, setContent);
}
function setContent(data) {
	var content = document.getElementById("index_appraise_content");
	var temp = "";
	for (var i = 0; i < data.length; i = i + 1) {
		temp += "<p><a href='vote.do?o=toVoteDetail&noteId=" + data[i].age + "' >";
		temp += "<b class='attention'>" + data[i].voterName + "</b> \u4e3a <span  class='attention'>";
		temp += data[i].commend + "</span>\u6295\u4e86\u4e00\u7968<br /><b>\u8bc4\u4ef7\u5185\u5bb9:</b>";
		temp += data[i].appraise + "</a></p>";
	}
	content.innerHTML = temp;
	var contentoffsetHeight = content.offsetHeight;
	if (contentoffsetHeight > 340) {
		content_in.innerHTML = content.innerHTML;
	}
}

