//Check whether the form element is empty
function check(Form )
{
for (i=0;i
if(Form.elements[i].value == "")
{
// The first letter e of the Form attribute elements should be lowercase
alert(Form.elements[i].name "Cannot be empty!");
Form.elements[i].focus();
// The specified form element gets focus
return;
}
}
Form.submit();
}
Call