var TabbedPanels1 = null;

function createXmlHttp(){
  try {
    xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e1){
    try {
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e2) {
      xmlHttp = false;
    }
  }
  if (!xmlHttp) {
    xmlHttp = new XMLHttpRequest();
  }
}

function loadGooglenews(){
  createXmlHttp();
  //url = "http://www.tongyi.com/bcmain.php";
  url = "news.php?systime="+(new Date()).getTime();
  xmlHttp.open("GET", url, true);   
  xmlHttp.onreadystatechange = getGoogleNewsCallback;
  xmlHttp.send(null);
}

function getGoogleNewsCallback()
{
  if (xmlHttp.readyState == 4){
    if (xmlHttp.status == 200){
    	  html = xmlHttp.responseText;
    	  var googleNewsObj = document.getElementById("googleNews");
    	  googleNewsObj.className='googleNews_only_bottom';
    	  googleNewsObj.innerHTML = html;
    	  TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");    	  
    }
 }
}

