Two things, head8k was right, you will need to use eval on the function, like so.
field = eval("aform."+fieldArray[i]);
this will give you the formreference you need, but you will show [object] when you try to display it in the error message, so before you break, I would place the form name into a string.
Code:
for (i = 0; i<fieldArray.length;i++){
field = eval("aform."+fieldArray[i]);
if(field.value ==""){
fieldName = fieldArray[i];
decision = false;
break;
}
}
if (!decision){alert(fieldName + " is a required field. Please enter a value.");}
else { aform.submit(); prompt = "The form is being submitted.";alert(prompt);}
The form name might not be too useful to the user though. You could have a seccond array, or a multidimentional array set up with a better display name.
ShriekForth