function sendRequest(){
		try{
                req = window.XMLHttpRequest?new XMLHttpRequest():
                new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e){;
                //Kein AJAX Support
        }
		req.onreadystatechange = handleResponse;
        req.open("GET", 'includes/request_tiernamen.php?cat_id='+ document.getElementById('bestandcat_idfs').value);
		
		req.send(null);
}
 
function handleResponse(){
   if ((req.readyState == 4) && (req.status == 200)){
                var update = new Array();
                var response = req.responseText;
                if(response.indexOf('||' != -1)){
                        update = response.split('||');
                        document.getElementById(update[0]).innerHTML = update[1];
                }
        }     
}

function updateSelect(id){
	//alert(spec);
	var url = 'includes/request_tiernamen.php?cat_id='+id;

	new Ajax.Updater('select2',url,{asynchronous:true});

}
