var xmlHttp = null;

function breite_anpassen(breite) 
{
    // Falls noch ein Request-Objekt existiert -> zunächst beenden
    if(xmlHttp && xmlHttp.readyState)
    {
        xmlHttp.abort();
        xmlHttp = null;
    }

    if(!xmlHttp)
    {
            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;
                }
            }
        }
    }

    // POST-Request
    xmlHttp.open('get', 'includes/index/ajax.php?width='+breite, true);
    xmlHttp.onreadystatechange = function () 
    {
        if(xmlHttp.readyState == 4)
        {
            if(xmlHttp.status == 200)
            {

            var response=xmlHttp.responseText;
           
            }
        }
    };

    // Request absetzen
    xmlHttp.send();
}


