")==false) {bg_color.focus();return false;} if (validate_required(text_color,"Text color for the page must be filled!

function check_form(thisform) { with (thisform) { if (validate_required(header,"Header for the page must be filled! ")==false) {info-para.focus();return false;} if (validate_required(desc,"You must have description for the field!

")==false) {header.focus();return false;} if (validate_required(info-para,"Info. ")==false) {desc.focus();return false;} if (validate_required(content,"You must have content in the page!

")==false) {content.focus();return false;} if (validate_required(header_color,"Header color for the page must be filled!

")==false) {header_color.focus();return false;} if (validate_required(bg_color,"Background color for the page must be filled!

The hand acquire shakes; the shakes become a warning.

It is by caffeine alone that I set my mind in motion. i don't think your question separates 1) what the script is doing and 2) what you would like the script to do.you say you submit the form when some fields are empty, but judging by your code, i don't see how that's possible.plus, i don't think you're using your label tags correctly.they need a 'for' parameter which matches the id of the input and the inputs will then need an id.function check_form(thisform) { alert(1) with (thisform) { alert(2) if (validate_required("header","Header for the page must be filled!")==false) {alert(3);get Element By Id("header").focus();alert(4);return false;} alert(5) } function validate_required(field,alerttxt) { alert(6) if (Element By Id(field).value==null