//==============================================================================
// AJAX
//==============================================================================
function abc_checkAjax(){
    var xmlHttp = false;
    try{            // Firefox, Opera 8.0+, Safari        
        xmlHttp = new XMLHttpRequest();
        if (xmlHttp.overrideMimeType) {
            xmlHttp.overrideMimeType('text/xml');
        }
        if (!xmlHttp) {
            //alert("Your browser does not support AJAX!");
            return false;
        }
    }catch (e){     // Internet Explorer        
        try{
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }catch (e){
            try{
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch (e){
                //alert("Your browser does not support AJAX!");
                return false;
            }
        }
    }
    return xmlHttp;  
}
//------------------------------------------------------------------------------
function abc_runAjax(filename, abc_params){
	var obj = abc_checkAjax();
    if(!obj) return false;
    var abc_url = filename;       
    // simple request by method POST
    obj.onreadystatechange = function(){
        if(this.readyState == 4){
            if(this.status == 200){
                processResponse(this.responseText);
            }else{
                //alert('There was a problem with the request! Please, try again later.');
            }
        }
};
    obj.open("POST", abc_url, true);
    obj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    obj.setRequestHeader("Content-length", abc_params.length);
    obj.send(abc_params);   
    return false;         
}
//==============================================================================

function abc_runAjax_bid(filename, abc_params){
	var obj = abc_checkAjax();
    if(!obj) return false;
    var abc_url = filename;       
    // simple request by method POST
    obj.onreadystatechange = function(){
        if(this.readyState == 4){
            if(this.status == 200){
                processResponse1(this.responseText);
            }else{
                //alert('There was a problem with the request! Please, try again later.');
            }
        }
};
    obj.open("POST", abc_url, true);
    obj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    obj.setRequestHeader("Content-length", abc_params.length);
    obj.send(abc_params);   
    return false;         
}
