function checkForm(els,doNumber) {
	//Function to check out if a form validates or not - returns error text
	//els is an array of elementIDs to check
	//Now iterate through each finding out if they are filled in or not
	var ErrorList="";
	for (var n = 0; n < els.length; n++) {
		//Get the element by ID
		var elID=document.getElementById(els[n]);
		if (elID!=null) {
			//Find the label text for this, if any
			var labelID=document.getElementById(els[n]+"Label");
			var LabelText="";
			if (labelID==null) {
				//If there is no label, guess the name
				LabelText=els[n];
			} else {
				//Only bother if the label field actually exists
				LabelText=labelID.innerHTML;
			}
		
			//Perform different checks based on Type
			var ErrorText="";
			if (elID.type=='select-one') {
				//Single select box - make sure value is non-zero
				var myVal="";
				myVal=elID.options[elID.selectedIndex].value;
				if (myVal=="") {
					myVal=elID.options[elID.selectedIndex].text ;
				}
				
				//Split and just take the first part
				var ValArr=new Array;
				ValArr=myVal.split("|");
				myVal=ValArr[0];
			} else if (elID.type=='checkbox') {
				//Checkbox
				if (elID.checked) {
					var myVal=elID.value;
				} else {
					var myVal='';
				}
			} else {
				//Text box or Text area - make sure value is non-zero
				var myVal=elID.value;	
			}
			
			//Treat zero as not filled in, if we're checking for numbers
			if (doNumber && myVal=='0') {
				myVal='';
			}
			
			//Trim the value
			myVal=Trim(myVal);
			
			//Add to master list if we have an error
			if (myVal=="") {
				if (ErrorList!="") {
					ErrorList=ErrorList+"\n";
				}
	
				ErrorList=ErrorList+"    - "+LabelText;
			}
		}
	}

	//And return the results
	return ErrorList;
}		
