
/*
 * Author: Sebastian Koszuta
 * Date: Jan 2010
 *
 * This file is protected by copyright laws
 */

if (window.XMLHttpRequest) {
    xmlhttp=new XMLHttpRequest();
} else {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}

function ajaxPutContent(url, target_id) {
    xmlhttp.open("GET",url,false);
    xmlhttp.send(null);
    if(xmlhttp.responseText!='AJAXERROR') {
        document.getElementById(target_id).innerHTML=xmlhttp.responseText;
    } else {
        alert('Wystąpił błąd. Część dynamicznej zawartości strony może nie działać poprawnie.');
    }
}




