function checkform (form) { if (form.report.value == "") { alert("You need to enter a filename!"); form.report.focus; return false; } return true; }