﻿
function getAjaxContent(div, url)
{
    var xmlhttp=false;
    div.innerHTML = "<p><img src='../images/wait-loader.gif' style='visibility:visible' alt='Inhalt wird geladen...' /></p>";
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
    {
        try {xmlhttp = new XMLHttpRequest();} 
        catch (e) {xmlhttp=false;}
    }
    if (!xmlhttp && window.createRequest) 
    {
        try {xmlhttp = window.createRequest();} 
        catch (e) {xmlhttp=false;}
    }
    xmlhttp.open("GET", url, true);
    xmlhttp.onreadystatechange=function() 
    {
        if (xmlhttp.readyState==4) 
        {
            div.innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
}

function ShowPopupWindow(url, height, width) 
{
 	fenster = window.open(url, "popupwindow", "width=" + width + ",height=" + height + ",left=360,top=300,status=0,menubar=0,toolbar=0,location=0,locationbar=0,scrollbars=0,resizable=0");
 	fenster.focus();
}


