_ajax = function()
{
    this.id;
    this.site = "http://www.svkoko.nl/";  
    this.http;    
    this.browser = navigator.userAgent;
    if(this.browser.indexOf('MSIE') != -1 && this.browser.indexOf('Opera') == -1) this.browser = "Microsoft Internet Explorer";
    
    this.new_conn = function()
    {
        if ( this.browser == 'Microsoft Internet Explorer' ) return new ActiveXObject("Microsoft.XMLHTTP");
        else return new XMLHttpRequest();
    }
    
    this.getE = function(id) { return document.getElementById(id); }
    
    this._changeMonth = function(change,month,year,siteID)
    {      
        http_changeMonth = this.new_conn();
        http_changeMonth.open('POST', _ajax.site+'includes/temp_1/_ajax.calendar.php',true);
        http_changeMonth.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
        http_changeMonth.onreadystatechange = this._changeMonth_ready;
        http_changeMonth.send('action=changemonth&change='+encodeURIComponent(change)+'&month='+encodeURIComponent(month)+'&year='+encodeURIComponent(year)+'&siteID='+encodeURIComponent(siteID)); 
    }
    
    this._changeMonth_ready = function()
    {                                                                                      
        if ( http_changeMonth.readyState == 4 ) 
        {               
                var response     = http_changeMonth.responseText;
                getE('inc_cal').innerHTML = response;                
        }                             
    }
    
}

_ajax = new _ajax(); 