var load_info_cache = '';

function load_info(page) {
load_info_cache = '';
	if (load_info_cache != page) {

		http_request = false;

		if (window.XMLHttpRequest) {

			http_request = new XMLHttpRequest();

			if (http_request.overrideMimeType) {
				http_request.overrideMimeType('text/xml');
			}

		} else if (window.ActiveXObject) {

			try {

				http_request = new ActiveXObject("Msxml2.XMLHTTP");

			} catch (E) {

				try {

					http_request = new ActiveXObject("Microsoft.XMLHTTP");

				} catch (E) {}

			}

		}

		if (!http_request) {

			document.getElementById("content").innerHTML = '<b>Fehler...</b> AJAX konnte nicht initialisiert werden';
			return false;

		}

		http_request.onreadystatechange = change_info;
		http_request.open('GET', 'inhalt/'+ page + '.html', true);
		http_request.send(null);

		load_info_cache = '';

	}

}

function change_info() {
if (http_request.readyState == 4) {
		
		if (http_request.status == 200) {

			document.getElementById('content').innerHTML = http_request.responseText;

		} else {

			document.getElementById('content').innerHTML = '<b>Fehler...</b> Requestfehler';

		}

	}

}

function popup()
{ 
NF=window.open("http://www.tobsolution.de/locos/popup/popup2.php","neu","width=852,height=541");
NF.focus; } 