﻿// JavaScript Document
function createXmlHttp(){
    if (window.XMLHttpRequest) {            
        return new XMLHttpRequest();
    } else if (window.ActiveXObject) {       
        try {
            return new ActiveXObject("Msxml2.XMLHTTP"); 
        } catch(e) {
            return new ActiveXObject("Microsoft.XMLHTTP");
        }
    } else {
        return null;
    }
}

function loadsiteupdate(){
	
	hto=new createXmlHttp();
	
	function htocallback(){
		var i,j;


		if(hto.readyState==4&&hto.status==200){
			
			tx='<h3>サイト全般 更新情報</h3><dl class="newslist">'+hto.responseText+'<div class="clearbox"></div></dl><div class="clearbox"></div>';
		
			document.getElementById("news_all").innerHTML=tx;
		
				
		}
	}
	hto.onreadystatechange=htocallback;
	
	hto.open("GET",'koushin.php',true);
	
	
	
	hto.send(null);
	
	
	
	hto2=new createXmlHttp();
	
	function htocallback2(){
		var i,j;


		if(hto2.readyState==4&&hto2.status==200){
			
			tx2='<h3>ブログ＆連載企画　更新情報</h3><dl class="newslist">'+hto2.responseText+'<div class="clearbox"></div></dl><div class="clearbox"></div>';
		
			document.getElementById("news_blog").innerHTML=tx2;
		
				
		}
	}
	hto2.onreadystatechange=htocallback2;
	
	hto2.open("GET",'blogup2.php',true);
	
	
	
	hto2.send(null);
	
	
}



