// AJinx
// (c) 2009 Gecko Tribe, LLC
// By Antone Roundy

function ajinx(e,p) {
	var r=true;
	var de=document.getElementById(e);
	if (de) {
		var ao=false;
		if (window.XMLHttpRequest) {
			try { ao=new XMLHttpRequest(); }
			catch(e) { ao=false; }
		} else if (window.ActiveXObject) {
			try { ao=new ActiveXObject("Microsoft.XMLHTTP"); }
			catch(e) { ao=false; }
		}

		if (ao) {
			ao.open('GET',p,false);
			ao.send(null);
			if ((ao.status>=200)&&(ao.status<300)) {
				r=false;
				de.innerHTML=ao.responseText;
			}
		}
	}
	return r;
}
