/*
This checks to see if all required fields are filled in.

formName   = name of the form to be checked
compList   = array list of fields to be checked for a value
*/

function isFormComplete(formName,compList) {

	for(element=0;element<compList.length;element++) {

		var field = eval('document.forms[formName].'+compList[element]);
		
		if(field.value == "") {
			alert('You must enter a value for this field:\n\n\t\''+compList[element]+'\'');
			document.forms[formName].elements[compList[element]].focus();
			return false;
		}

	}
	
	return true;
	
}

