function getXMLHTTPRequest() {
	try {
		req = new XMLHttpRequest();
	} catch(err1) {
		try {
			req = new ActiveXObject("Msxm12.XMLHTTP");
		} catch(err2) {
				try {
					req = new ActiveXObject("Microsoft.XMLHTTP");
				} catch(err3) {
						req = false;
					}
			}
		}
return req;
}

var httpReq = getXMLHTTPRequest();

function directMe(direct) {
	var myURL = "insrtd_files/" + direct;
	var rand = parseInt(Math.random()*9999999999999999999);
	var modURL = myURL + "?rand=" + rand;
	httpReq.open("GET", modURL, true);
	httpReq.onreadystatechange = useHttpResponse;
	httpReq.send(null);
}

function useHttpResponse() {
	if (httpReq.readyState == 4) {
		if(httpReq.status == 200) {
			var newContent = httpReq.responseText;
			document.getElementById("ajaxSwap").innerHTML = newContent;
		}
		else {
			document.getElementById("ajaxSwap").innerHTML = "loading...";
		}
	}
}