var p=null;

window.onload=init;

function init()
{
    if (window.XMLHttpRequest) //firefox
       p=new XMLHttpRequest();
    else if (window.ActiveXObject)
      p=new ActiveXObject("Microsoft.XMLHTTP");
}


function callServer(targetPage, qs, fn, args)
{
	p.open('GET', targetPage, true);
	p.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    p.onreadystatechange=new Function(fn+"('"+args+"')");
	p.send(qs);
}


