
	function triggered_ajax(modul_id, callback)
	{
		document.getElementById('store_callback').value = callback;
		switch (modul_id)
		{
			case 'modul_1':
				url = 'xml_page.php?modul_id=' + modul_id + '&photos_map=' + document.getElementById('photos_map').value
				break;
		}
		//alert(url)
		xmlHttp=GetXmlHttpObject();
		xmlHttp.onreadystatechange=stateChanged_triggered_page;
		xmlHttp.open("GET",url,true); 
		xmlHttp.send(null);
	}
		
	function stateChanged_triggered_page() { 
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{
			document.getElementById(document.getElementById('store_callback').value).innerHTML = xmlHttp.responseText;
			
			pre_load_image();
		} 
	}
		
		
		
	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");
			}
		}
		if (xmlHttp==null) {
			alert ("Browser does not support HTTP Request");
			return;
		 }
		return xmlHttp;
	}
