Cita:
Iniciado por buzu agrega:
setAttribute("id", "myForm");
a tu with(form)
y en lugar de
document.myform
usa
document.getElementById('myForm')
en las últimas lineas.
Muchas gracias buzu, ahí estaba el problema, aunque también tuve que aumentar la linea
Código:
setAttribute("id", "theInput");
De nuevo muchas gracias.