



function AJAX_Query(target_url,target_container){

var target_url = target_url;
var target_container = target_container;
var close_container = close_container;
var xmlHttp = null;

try {
    // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    xmlHttp = new XMLHttpRequest();
} catch(e) {
    try {
        // MS Internet Explorer (ab v6)
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        try {
            // MS Internet Explorer (ab v5)
            xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            xmlHttp  = null;
        }
    }
}
if (xmlHttp) {
    xmlHttp.open('GET', target_url, true);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
            document.getElementById(target_container).innerHTML=xmlHttp.responseText;
            document.getElementById(target_container).style.display='block';
        }
    };
    xmlHttp.send(null);
}
}



function AJAX_Post(target_url,input,target_container){

var input = input;
var postData = input + "=" + escape( document.getElementById(input).value );

var target_url = target_url;
var target_container = target_container;
var close_container = close_container;
var xmlHttp = null;

try {
    // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    xmlHttp = new XMLHttpRequest();
} catch(e) {
    try {
        // MS Internet Explorer (ab v6)
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        try {
            // MS Internet Explorer (ab v5)
            xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            xmlHttp  = null;
        }
    }
}
if (xmlHttp) {
    xmlHttp.open('POST', target_url, true);
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
	xmlHttp.setRequestHeader("Content-length", postData.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(postData);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
            if(document.getElementById(target_container)){
				document.getElementById(target_container).innerHTML=xmlHttp.responseText;
            	document.getElementById(target_container).style.display='block';
			}
        }
    };
}
}








