function features(warengruppe){
	
 	var tag = document.getElementsByClassName("optionen");
 	var tag2 = document.getElementsByClassName("boxinhalt");
 	var option ="";
 
 	tag2.each(function(el,indice) {
 		
		//el.style.filter='alpha(opacity=100)';
		//el.style.opacity='1';
		//el.style.MozOpacity='1';
 		//}
	})
 	
	tag.each(function(el,indice) {
	
		if(el.checked == true) {
		
			option = option+el.value+";";
			
		}	
	})
		
	var pars = "option="+option+"&warengruppe="+warengruppe;	

	if(option !='') {
	var myajax = new Ajax.Request('/optionen.php',{parameters:pars,evalScripts:true,method:'post',onSuccess:function(transport) {response(transport.responseText);}});
	
	}else{
		
	 	tag2.each(function(el,indice) {
	 		
			el.style.filter='alpha(opacity=100)';
			el.style.opacity='1';
			el.style.MozOpacity='1';
	 		})
		}	
	}


function response(str) {

	str=str.evalJSON();
	//alert(artnr.length);
	for(var i=0;i<str.length;i++){
	
		//alert (str[i].artnr);
		
		if(str[i].gesetzt=='true' && Object.isElement($(str[i].artnr))==true) {
			//alert(str[i].artnr+" 1");
			$(str[i].artnr).style.filter='alpha(opacity=100)';
			$(str[i].artnr).style.opacity='1.0';
			$(str[i].artnr).style.MozOpacity='1.0';
		}
		if(str[i].gesetzt=='false' && Object.isElement($(str[i].artnr))==true) {
			//alert(str[i].artnr+" 2");
			$(str[i].artnr).style.filter='alpha(opacity=20)';
			$(str[i].artnr).style.opacity='0.2';
			$(str[i].artnr).style.MozOpacity='.2';
		}
			
			//$(artnr[i]).style.display='none';
			//alert(22+" "+i);
		//}else{
			
			//$(artnr[i]).style.filter='alpha(opacity=100)';
			//alert(1+" "+i);
			//$(artnr[i]).style.filter='alpha(opacity=20)';
			//$(artnr[i]).style.opacity='0.2';
			//$(artnr[i]).style.MozOpacity='.2';
		
		//alert(i);
	};
}