function loadPage(aNo, aOyaNo, aMode){
    if (window.XMLHttpRequest){
        xmlHttp = new XMLHttpRequest();
    }else{
        if (window.ActiveXObject){
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }else{
            xmlHttp = null;
        }
    }
    xmlHttp.onreadystatechange = checkStatus;
    xmlHttp.open("GET", "msgview.php?no=" + aNo + "&oyano=" + aOyaNo + "&m=" + aMode, true);

    xmlHttp.send(null);
}

function checkStatus(){
    if (xmlHttp.readyState == 4 && xmlHttp.status == 200){
        var node = document.getElementById("disp");
        node.innerHTML = xmlHttp.responseText;
    }
}


function treePage(aNo, aUser, aP){
    if (window.XMLHttpRequest){
        xmlHttp = new XMLHttpRequest();
    }else{
        if (window.ActiveXObject){
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }else{
            xmlHttp = null;
        }
    }
    xmlHttp.onreadystatechange = checkStatus2;
    xmlHttp.open("GET", "msgtree.php?no=" + aNo + "&u=" + aUser + "&p=" + aP, true);

    xmlHttp.send(null);
	

}

function checkStatus2(){
    if (xmlHttp.readyState == 4 && xmlHttp.status == 200){
        var node = document.getElementById("disp2");
        node.innerHTML = xmlHttp.responseText;
    }
}
