var sotonXH, ecsXH;
function getECSEPrints(){
        ecsXH=GetXmlHttpObject();
        if (ecsXH==null){
                alert ("Browser does not support HTTP Request");
                return;
        }
        var url="inc/ecseprints.inc.php";
	ecsXH.onreadystatechange=ecsStateChanged;
        ecsXH.open("GET",url,true);
        ecsXH.send(null);
}
function getSotonEPrints(){
        sotonXH=GetXmlHttpObject();
        if (sotonXH==null){
                alert ("Browser does not support HTTP Request");
                return;
        }
        var url="inc/sotoneprints.inc.php";
        sotonXH.onreadystatechange=sotonStateChanged;
        sotonXH.open("GET",url,true);
        sotonXH.send(null);
}

function ecsStateChanged(){
        if (ecsXH.readyState==4 || ecsXH.readyState=="complete"){
                document.getElementById("ecseprints").innerHTML=ecsXH.responseText;
        }
}

function sotonStateChanged(){
        if (sotonXH.readyState==4 || sotonXH.readyState=="complete"){
                document.getElementById("sotoneprints").innerHTML=sotonXH.responseText;
        }
}
function GetXmlHttpObject(){
        var xmlHttp=null;
        try{
                // Firefox, Opera 8.0+, Safari
                xmlHttp=new XMLHttpRequest();
        }
        catch (e){
                //Internet Explorer
                try{
                        xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
                }
                catch (e){
                        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                }
        }
        return xmlHttp;
}

