function AjaxReq(URL,filter,method){

        var ajaxRequest; 
       
        var sText = null;

        try{
                // Opera 8.0+, Firefox, Safari
                ajaxRequest = new XMLHttpRequest();
        } catch (e){
             
                try{
                       ajaxRequest = new ActiveXObject("MSXML2.XMLHTTP");

                } catch (e) {
                        try{
                                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (e){

                                alert("Fehler");
                                return false;
                        }
     
                }
                
               
        }
        
             
        
      
      
       function result(){
            if(ajaxRequest.readyState == 4 && ajaxRequest.status == 200) {
              method();         
            }
          }    
          
         ajaxRequest.onreadystatechange = result;
        
         ajaxRequest.open("GET", URL+"?"+filter, true);
         ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");     
         ajaxRequest.send(null);
        
        return ajaxRequest;
  }
function AjaxRequest(URL,filter){

        var ajaxRequest; 
       
        var sText = null;

        try{
                // Opera 8.0+, Firefox, Safari
                ajaxRequest = new XMLHttpRequest();
        } catch (e){
             
                try{
                       ajaxRequest = new ActiveXObject("MSXML2.XMLHTTP");

                } catch (e) {
                        try{
                                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (e){

                                alert("Fehler");
                                return false;
                        }
     
                }
                
               
        }

         ajaxRequest.open("GET", URL+"?"+filter, true);
         ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");         
        // ajaxRequest.send(null);
        
        return ajaxRequest;
  }
  
function ajaxFunction(URL,filter){

        var ajaxRequest; 
       
        var sText = null;

        try{
                // Opera 8.0+, Firefox, Safari
                ajaxRequest = new XMLHttpRequest();
        } catch (e){
             
                try{
                       ajaxRequest = new ActiveXObject("MSXML2.XMLHTTP");

                } catch (e) {
                        try{
                                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (e){

                                alert("Fehler");
                                return false;
                        }
     
                }
                
               
        }

         ajaxRequest.open("GET", URL+"?"+filter, true);
         ajaxRequest.send(null);
        
        return ajaxRequest;
  }
  
function ajaxFunction_POST(URL,params){

        var ajaxRequest; 
       
        var sText = null;
        
        try{
                // Opera 8.0+, Firefox, Safari
                ajaxRequest = new XMLHttpRequest();
        } catch (e){
                // IE
                try{
                        ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
                } catch (e) {
                        try{
                                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (e){

                                alert("Fehler");
                                return false;
                        }
     
                }
        }
     
         ajaxRequest.open("POST", URL, true);
         
         ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
         ajaxRequest.setRequestHeader("Content-length", params.length);
         ajaxRequest.setRequestHeader("Connection", "close");
         
         ajaxRequest.send(params);
        
        return ajaxRequest;
  }
  

  
  
  function splitStr(obj){

    var del = obj.split(";");
 
    if(del.length > 0 ) {
        return del;
    }
    
  }
  
  function splitComma(obj) {
      var com = obj.split(",");
 
      if(com.length > 0 ) {
          return com;
      }
  }
  
 function splitVar(obj,del) {
      var com = obj.split(del);
 
      if(com.length > 0 ) {
          return com;
      }
      else 
         return null;
  }

