function sendAjaxRequest (target, variables, sendMethod) {		
	var req = null;
    try{
        req = new XMLHttpRequest();
    }
    catch (ms){
        try{
            req = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch (nonms){
            try{
                req = new ActiveXObject("Microsoft.XMLHTTP");
            } 
            catch (failed){
                req = null;
            }
        }  
    }		            
  	req.open(sendMethod, target, false);
  	req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
    req.send(variables);        	
 	return req;       	
}