Например, по одинаковому class
<input type="checkbox" class="protection" value="value1">
<input type="checkbox" class="noprotection" value="value2">
<input type="checkbox" class="protection" value="value3">
<input type="text" id="artikul">
<script>
    var chex = document.querySelectorAll(".protection"),
         artikul = document.getElementById('artikul');
    for(var i = 0; i<chex.length;i++) {
        chex[i].onchange = function () {
             this.checked ? artikul.value += this.value : artikul.value = artikul.value.replace(this.value,"") ;
        }
    }
</script>