var oXmlHttp;
var oXmlHttp2;

function getHTTPObject()
{
   if (typeof XMLHttpRequest != "undefined") {
        return new XMLHttpRequest();
    } else if (typeof ActiveXObject != "undefined") {
        return new ActiveXObject("Microsoft.XMLHTTP");
    } else {
        throw new Error("XMLHttpRequest not supported");
    }
}

function updatePid(url, url2)
{
var doc = document.forms[0];

document.getElementById("idiv1").innerHTML = "Loading...";
document.getElementById("idiv2").innerHTML = "Loading...";

   oXmlHttp = getHTTPObject();
   oXmlHttp2 = getHTTPObject();

   oXmlHttp.onreadystatechange = stateChanged;
   oXmlHttp2.onreadystatechange = stateChanged2;

   oXmlHttp.open( "GET", url, true );
   oXmlHttp2.open( "GET", url2, true );

   oXmlHttp.send("");
   oXmlHttp2.send("");
}

function stateChanged()
{
if (oXmlHttp.readyState==4 || oXmlHttp.readyState=="complete")
{
document.getElementById("idiv1").innerHTML = oXmlHttp.responseText;
}
}

function stateChanged2()
{
if (oXmlHttp2.readyState==4 || oXmlHttp2.readyState=="complete")
{
document.getElementById("idiv2").innerHTML = oXmlHttp2.responseText;
}
}



function mailto(name, domain)
{
 location.href = "mailto:" + name + "@" + domain;
}
