function showcodex ( strX ) {
	var p =  strX.split(';');
	var strURL = 'http://'+location.host + '/showcode.php'; 
//	var strPost = location.search.substr(1) + '&subtype=' + p[0] +'&a='+p[1]+'&s='+p[2]+'&l='+p[3];

	var strPost = 'path='+location.pathname + '&subtype=' + p[0] +'&a='+p[1]+'&s='+p[2]+'&l='+p[3];
	showcode ( 'content', strURL , strPost );
}
function showcodewindow(strURL) {
 	Fenster1 = window.open(strURL , "Debug", "width=300,height=400,left=100,top=200");
} 

function showcode(tg, strURL , qs) {
    // showcodewindow ( strURL + "?" + qs);
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
 
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.setRequestHeader('charset','UTF-8'); 
    
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
        	document.getElementById(tg).innerHTML = self.xmlHttpReq.responseText;
        }
        else {
            //alert ("Error");
        }
    }
    self.xmlHttpReq.send(qs);
}

