// JavaScript Document function isEmpty() { var form = document.pageFrm; if(form.page_title.value == ''){ alert ("Please Enter Page Title"); form.page_title.focus(); return false; } else if (form.publish_date.value == ''){ alert ("Please Enter Publish Date"); form.publish_date.focus(); return false; } else{ return true; } }