var mandatoryFields = new Array;
var mandatoryFieldsDescr = new Array;
function addMandatoryField(fieldName, fieldDescr, mand) {
    if (mand==0) return;
	mandatoryFields[mandatoryFields.length]=fieldName;
	mandatoryFieldsDescr[mandatoryFieldsDescr.length]=fieldDescr;
}

function submitFeedBack() {
	for ( i=0; i<mandatoryFields.length; i++ ) {
		inp = 'document.forms[0].'+mandatoryFields[i];
		inp1=eval(inp);
		if (inp1.value.length==0) {
	        alert("Field "+mandatoryFieldsDescr[i]+' cannot be empty')
	        inp1.focus();
			return false;

		}
	}
	return true;
}

