var xmlhttpobj;
var cacheinterval;
var AllowXmlHttpCache;
var CacheBuster;
var Nowtime = new Date();
//in minutes:
cacheinterval = 15; 
// The following will allow/prevent caching by the xmlhttpobj object:
AllowXmlHttpCache = "no";
if (AllowXmlHttpCache == "yes"){
	CacheBuster = "AllowXmlHttpCache";
}else{
	CacheBuster = "cb=" + escape(String(Nowtime)) + "&";
}	
function refresh_blotter(blogurl){
if (blogurl=="all"){
	blogurl = "/includes/blog_feeds/getcachedfile.aspx?" + CacheBuster + "interval=" + cacheinterval + "&reqfile=" + escape("/includes/blog_feeds/blogfeedjumbotron.aspx");
}else{
	blogurl = "/includes/blog_feeds/getcachedfile.aspx?" + CacheBuster + "interval=" + cacheinterval + "&reqfile=" + escape("/includes/blog_feeds/blogfeedjumbotron.aspx?blog=") + blogurl;
}

xmlhttpobj=GetXmlHttpObject();
if (xmlhttpobj==null)
  {
  ////alert ("Your browser does not support XMLHTTP!");
  return;
  }
xmlhttpobj.onreadystatechange=stateChanged;
xmlhttpobj.open("GET",blogurl,true);
xmlhttpobj.send(null);
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}

function stateChanged()
{
if (xmlhttpobj.readyState==4)
  {
  if (xmlhttpobj.status==200)
    {
    // our code here....
	document.getElementById("blotter").innerHTML = xmlhttpobj.responseText;
    }
  else
    {
    ////alert("Problem retrieving XML data:" + xmlhttpobj.statusText);
    }
  }


}
