Hola otra vez:
Prueba así:
Código PHP:
<html>
<head>
<script>
var total=0;
function sumar(valor) {
total += valor;
document.formulario.total.value=total;
}
function restar(valor) {
total-=valor;
document.formulario.total.value=total;
}
</script>
</head>
<body>
<form name=formulario>
<input name="checkbox" type="checkbox" onClick="if (this.checked) sumar(3); else restar(3)" value="checkbox">
<input type=text name=total value=0>
</form>
</body>
</html>
Saludos