// JavaScript Documentvar xmlHttp;

var xmlHttp;
function GetXmlHttpObject() {
	var xmlHttp = null;
	try {
	  // Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
	  // Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function load_image(){
		pos="load_image";
		xmlHttp = GetXmlHttpObject();
		if (xmlHttp == null) {
			alert("Your browser does not support AJAX!");
			return;
		}
		var url = "../controller/controller-load-image.php";
		url=url+"?sid="+Math.random();
		xmlHttp.onreadystatechange = function () {
			//document.getElementById(pos).innerHTML='<img class="ajax-loader" src="images/loading_image.gif">';
			if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
				document.getElementById(pos).innerHTML = xmlHttp.responseText;
			}
		};
		xmlHttp.open("POST", url, true);
		xmlHttp.send(null);
		
}