function zmien_r(on,off,block,none) {
	
	var on_switch 	 = on.split("|");
	var off_switch	 = off.split("|");
	var block_switch = block.split("|");
	var none_switch	 = none.split("|");
	
	for (var i=0; i<block_switch.length; i++){
		document.getElementById(block_switch[i]).style.display = 'block';
	}
	
	for (var i=0; i<none_switch.length; i++){
		document.getElementById(none_switch[i]).style.display = 'none';
	}
	
	for (var i=0; i<on_switch.length; i++){
		document.getElementById(on_switch[i]).className = 'tab_r_on';
	}

	for (var i=0; i<off_switch.length; i++){
		document.getElementById(off_switch[i]).className = 'tab_r_off';
	}

} 