function CheckForm() { if (document.getElementById('supportcat').selectedIndex == 0) { alert("Please select a support category."); document.getElementById('supportcat').focus(); return false; } if (document.getElementById('entry').value == "") { alert("Please tell us what we can do for you."); document.getElementById('entry').focus(); return false; } return true; }