fíjate en los cambios que he realizado
Cita: function calcula(t){
document.cuentas.elements[1].value=2*t.value;
}
<form name="cuentas">
<input type="int" name="numeropiezas0" value="0" onblur="calcula(this)">
<input type="int" name="preciopiezas0" value="0" >
<br />
<input type="int" name="numeropiezas1" >
<input type="int" name="preciopiezas1" >
</form>