if (this.value == '') { alert('You must enter a subject to proceed.'); setTimeout('this.focus()', 1) ; }