var xmlhttp1    =   this.XMLHttpRequest ? new XMLHttpRequest() :
                    new ActiveXObject("Msxml2.XMLHTTP") || new ActiveXObject("Microsoft.XMLHTTP");
var xmlhttp2    =   this.XMLHttpRequest ? new XMLHttpRequest() :
                    new ActiveXObject("Msxml2.XMLHTTP") || new ActiveXObject("Microsoft.XMLHTTP");
var xmlhttp3    =   this.XMLHttpRequest ? new XMLHttpRequest() :
                    new ActiveXObject("Msxml2.XMLHTTP") || new ActiveXObject("Microsoft.XMLHTTP");

function getTopic() {
    var target1     =   document.getElementById("result1");
    var lochost     =   location.host;
    var openfile;

    if (lochost.match(/tas-ajnet/i)) {
        openfile    =   "./taswebinfo/jsp/TopicGet.jsp"
    } else {
        openfile    =   "./jsp/TopicGet.jsp"
    }
    xmlhttp1.open("GET", openfile);
    xmlhttp1.onreadystatechange = function() {

        if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) {
            target1.innerHTML = xmlhttp1.responseText;
        }
    };
    xmlhttp1.send("");
}

function getTopic2() {
    var target2     =   document.getElementById("result2");
    var lochost2    =   location.host;
    var openfile2;

    if (lochost2.match(/tas-ajnet/i)) {
        openfile2   =   "./taswebinfo/jsp/TopicGet2.jsp"
    } else {
        openfile2   =   "./jsp/TopicGet2.jsp"
    }
    xmlhttp2.open("GET", openfile2);
    xmlhttp2.onreadystatechange = function() {

        if (xmlhttp2.readyState == 4 && xmlhttp2.status == 200) {
            target2.innerHTML = xmlhttp2.responseText;
        }
    };
    xmlhttp2.send("");
}

function getBanner() {
    var target3     =   document.getElementById("result3");
    var lochost3    =   location.host;
    var openfile3;

    if (lochost3.match(/tas-ajnet/i)) {
        openfile3   =   "./taswebinfo/jsp/BannerGet.jsp"
    } else {
        openfile3   =   "./jsp/BannerGet.jsp"
    }
    xmlhttp3.open("GET", openfile3);
    xmlhttp3.onreadystatechange = function() {
        if (xmlhttp3.readyState == 4 && xmlhttp3.status == 200) {
            target3.innerHTML = xmlhttp3.responseText;
        }
    };
    xmlhttp3.send("");
}

