/**
 * Jansco Validation Routine
 * Requires Prototype -- v1.4.0 included in this update
 * available from prototype.conio.net
 * 
 * @param form the form to validate
 * @return bool	whether of not the form passed muster
 */
 
 function quoteRequestValidation(f) {
 
	// enums of textfield numbers and labels
	var fields = ['5','4','2','','7','8','9','10','11','12','122','124'];
	var fieldNames = ['First Name','Last Name','Company Name','Address 1','City','State','Zip','Phone','Fax','Email','Event Date','Estimated Quantity'];
	
	var errors = new Array();
	
	fields.each(
		function(num,index) {
			
			// get the value of the field
			//alert("Looking at " + fieldNames[index]);
			txv = $F('textfield' + num);
			
			// they just want to make sure that the field isnt empty ..
			if(txv == "") {
				errors.push(fieldNames[index]);
				return false;
			}
			
		}
	)
	
	if(errors.length == 0) {
	
		return true;
		
	} else {
	
		alert("Please fill out these fields completely:\n" + errors.join(", "));
		return false;
	}
 
 }