// JavaScript Document

function loadurl(dest,box) {
	window.myValue = box;
	document.getElementById("v" + window.myValue).innerHTML = "<img src='/al.gif'>";
	//document.getElementById("iv" + window.myValue).style.display = "";
try {
// Moz supports XMLHttpRequest. IE uses ActiveX.
// browser detction is bad. object detection works for any browser
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
// browser doesn't support ajax. handle however you want
}
// the xmlhttp object triggers an event everytime the status changes
// triggered() function handles the events
xmlhttp.onreadystatechange = triggereda;
// open takes in the HTTP method and url.
xmlhttp.open("GET", dest);
// send the request. if this is a POST request we would have
// sent post variables: send("name=aleem gender=male)
// Moz is fine with just send(); but
// IE expects a value here, hence we do send(null);
xmlhttp.send("null");
}
function triggereda() {
	
if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {

// 
document.getElementById("v" + window.myValue).innerHTML = xmlhttp.responseText;

}
}
}

function loadurl2(dest,box) {
	window.myValue = box;
	document.getElementById("x" + window.myValue).innerHTML = "<img src='/al.gif'>";
	//document.getElementById("iv" + window.myValue).style.display = "";
try {
// Moz supports XMLHttpRequest. IE uses ActiveX.
// browser detction is bad. object detection works for any browser
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
// browser doesn't support ajax. handle however you want
}
// the xmlhttp object triggers an event everytime the status changes
// triggered() function handles the events
xmlhttp.onreadystatechange = triggeredb;
// open takes in the HTTP method and url.
xmlhttp.open("GET", dest);
// send the request. if this is a POST request we would have
// sent post variables: send("name=aleem gender=male)
// Moz is fine with just send(); but
// IE expects a value here, hence we do send(null);
xmlhttp.send("null");
}
function triggeredb() {
	
if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {

// 
document.getElementById("x" + window.myValue).innerHTML = xmlhttp.responseText;

}
}
}
