Bonsoir,
Effectivement, là si tu as 5 checkboxs, tu vas avoir :
<input type="checkbox" id="check1" onClick="ChoixClic('check1','view')" >
<div id="view" style="display:none"><input type ="text"></div>
<input type="checkbox" id="check1" onClick="ChoixClic('check1','view')" >
<div id="view" style="display:none"><input type ="text"></div>
<input type="checkbox" id="check1" onClick="ChoixClic('check1','view')" >
<div id="view" style="display:none"><input type ="text"></div>
<input type="checkbox" id="check1" onClick="ChoixClic('check1','view')" >
<div id="view" style="display:none"><input type ="text"></div>
<input type="checkbox" id="check1" onClick="ChoixClic('check1','view')" >
<div id="view" style="display:none"><input type ="text"></div>
Quand tu fais document.getElementById('check1'), il va prendre le premier.
Idem pour document.getElementById('view').
Solution, utiliser ta variable $i qui s'incrémente pour changer les id des checkbox et des div.
Bonne chance !