function Inint_AJAX() {
   try { return new ActiveXObject("Msxml2.XMLHTTP")  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP") } catch(e) {} //IE
   try { return new XMLHttpRequest()          } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported")
   return null
}

function loadNews(url, handle) {
     var req = Inint_AJAX()
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
                    var obj = document.getElementById(handle)
                    obj.style.backgroundImage  = "url()"
                    obj.style.height='auto'
                    obj.innerHTML = req.responseText
               } 
          } 
     }
     req.open("POST", "rss.php", true)
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
     req.send("url="+url) //Êè§¤èÒ
}

window.onload = function () {
 //    loadNews('http://www.businessweek.com/rss/asia.rss', 'bizweek');
  //   loadNews('http://www.nationmultimedia.com/rss/headlines.rss', 'thenation');
	 //loadNews('http://www.dpu.ac.th/dpuic/blog/feed/', 'bbkbiz');
	  loadNews('http://www.dpu.ac.th/dpuic/blog/feed/', 'icblog');
	
}