Hola
Prueba con esto.
mycheck es ahora el nombre
Código HTML:
Ver original<FORM ACTION="pagosonline.php" method="post" name="input" id="formulario" onsubmit="return validarcampos(this);">
Código Javascript
:
Ver originalfunction validarcampos(a) {
var oktermns = a.mycheck.checked == true;
if (!oktermns) {
alert("Debes aceptar los terminos del contrato");
return (false);
}
else
return (true);
}
Suerte