
function getRSSContent(abc, divid, httpReq)
{
	httpReq=GetXmlHttpObjectGetRSS()
	if (httpReq==null)
	{
	 alert ("Browser tidak support HTTP Request")
	 return
	} 
	
	var url="include/feedsinc.php"
	url=url+"?abc="+abc
	url=url+"&sid="+Math.random()
	httpReq.onreadystatechange=function(){
		if(httpReq.readyState != 4)
		{
			if(httpReq == "infoobat")
			{
				document.getElementById("progress_div").innerHTML = '<span class="validMemuatEmail">Sedang memuat, mohon tunggu...</span>';
			}
		 	document.getElementById(divid).innerHTML = '<span class="textCilik"><br>Refreshing...</span>';
		}
		
		if (httpReq.readyState==4 || httpReq.readyState=="complete")
		{ 
		 	document.getElementById(divid).innerHTML=httpReq.responseText;
		 	if(httpReq == "infoobat")
			{
				document.getElementById("progress_div").innerHTML = '';
			}
		} 
	}
	httpReq.open("GET",url,true)
	httpReq.send(null)
}

function GetXmlHttpObjectGetRSS()
{
var xmlHttpGetRSS=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpGetRSS=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpGetRSS=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpGetRSS=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpGetRSS;
}

