function getData(){
	setInterval("dataCheck()", 30000);
}


function dataCheck(){
	
	var replies_div = document.getElementById("recive_replies");

	var xmlhttp = false;

	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
		}
	}
	
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest();
	}


	randParameter=parseInt(Math.random()*99999999);  
	var serverPage = "http://www.insidernews.com.br/wp-content/themes/insidernews_3/auditorio_return_replies.php?replies_limit=10" + "&rand=" + randParameter;
	xmlhttp.open("GET", serverPage);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			
			ajaxReturn = xmlhttp.responseText;
			ajaxReturn = unescape(ajaxReturn);
			ajaxReturn = ajaxReturn.replace(/1plus1/gi,"+");
			
			if (ajaxReturn == ""){
			
				
			} else {
				replies_div.innerHTML = ajaxReturn;
				
			}
			
			

		}
	}
	xmlhttp.send(null);
	

}



function blink_cell(table){

	var table = table;

	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffd800'",100);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffdb14'",120);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffdd21'",140);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffe033'",160);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffe346'",180);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffe556'",200);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffe765'",220);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffea77'",240);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#ffed8b'",7260);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fff09d'",7280);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fff3b1'",7300);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fff6c4'",7320);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fff7cd'",7340);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fff8d3'",7360);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fffadc'",7380);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fffbe3'",7400);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fffbe8'",7420);
	setTimeout("document.getElementById('" + table + "').rows[0].style.backgroundColor='#fffcec'",7440);
	setTimeout("document.getElementById('" + table + "').rows[0].style.background='transparent'",7460);	
}