Código HTML:
Ver original
function seleccionar(){
var chk = document.getElementById('añade1');
if(chk.checked){
rese();
document.getElementById('Inputs').style.display='none';
}
else
{
document.getElementById('Inputs').style.display='block';
}
}
function rese(){
document.getElementById('apellido1b').value = "";
document.getElementById('apellido2b').value = "";
document.getElementById('nombreb').value = "";
}
<form name="comunicaciones"> <input name="añade1" type="checkbox" id="añade1" onClick="seleccionar()">
<input name="apellido1b" type="text" id="apellido1b" size="18" > <input name="apellido2b" type="text" id="apellido2b" size="18"> <input name="nombreb" type="text" id="nombreb" size="15">