
function submitForm(formName)
{
 	oForm = document.getElementById(formName);
	if ( oForm) {
	 	// We found the form, now process fields
	 	var oItem;
	 	var oFocusItem;
	 	oFocusItem = 0;
		for ( i=1;i<oForm.length;i++ ) {
	 	 	oItem = oForm.item(i);
			if ( oItem.id.substr(0, 4) == 'man_' )
				if ( oItem.value == '' ) {
					oItem.style.backgroundColor = 'yellow';
					if ( !oFocusItem )
					 	oFocusItem = oItem;
				}
	 	}
	 	if ( oFocusItem )
		 	oFocusItem.focus();
		else
		 	oForm.submit();
	}
}