Hi.
Assuming that text fields are named text.0 and text.1 (the dot really matters, you can add more text.n fields if you want).
Place this script in the checkbox as a mouse up event:
if (event.target.value != "Off") {
this.getField("text").readonly = true;
} else {
this.getField("text").readonly = false;
}