var remoteCall = function() {
	var http;
	try {
		http = new XMLHttpRequest();
	}
	catch(e) {
		var msxml = ['MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'];
		for ( var i=0, len = msxml.length; i < len; ++i ) {
			try {
				http = new ActiveXObject(msxml[i]);
				break;
			}
			catch(e) {alert('no XMLHttpRequest available');}
		}
	}
	return function(command, params) {
		var sParam = "command=" + escape(command) + "&params=" + escape(params);
		http.open("POST", "remote.aspx?" + sParam, false);
//		http.setRequestHeader('Content-Length', 10000 );
//		http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		http.send("");
//alert(command + ": " + http.status + http.statusText + http.getAllResponseHeaders() + http.responseText);
		return http.responseText;
	};
}();

loadJS = function(pFiles) {
	eval(remoteCall("loadJS", pFiles));
};

var swfName = 'pcLoader';
function initJS() {
	document.getElementById('divContent').innerHTML = 'scripts laden ...';
	loadJS("js/json.js;js/system.js;js/peterc.js");
	initApp();
};