<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile">Save as new file: </label><input type="text" name="newfile" value="{FILE}" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></p>