	function OnSubmitData() {			
		var bError = false;
		//General Information
		var acctnbr = document.autopay.acctnbr.value;
		var acctnbr_field = document.autopay.acctnbr;
		var fname = document.autopay.firstname.value;
		var fname_field = document.autopay.firstname;
		var lname = document.autopay.lastname.value;
		var lname_field = document.autopay.lastname;
		var relationship = document.autopay.relationship.value;
		var relationship_field = document.autopay.relationship;
		//Banking Information
		var f_instit = document.autopay.fin_name.value;
		var f_instit_field = document.autopay.fin_name;
		var f_rounting = document.autopay.instit_routing.value;
		var f_rounting_field = document.autopay.instit_routing;
		var f_account = document.autopay.fin_account.value;
		var f_account_field = document.autopay.fin_account;
		var f_instit_city = document.autopay.instit_city.value;
		var f_instit_city_field = document.autopay.instit_city;
		var f_instit_state = document.autopay.instit_state.value;
		var f_instit_state_field = document.autopay.instit_state;
		var zip = document.autopay.zip.value;
		var zip_field = document.autopay.zip;
		var zip2 = document.autopay.zip2.value;
		var zip2_field = document.autopay.zip2;
		//Email Address
		var email = document.autopay.email.value;
		var email_field = document.autopay.email;
		var confirmemail = document.autopay.confirmemail.value;
		var confirmemail_field = document.autopay.confirmemail;
		var company_type = document.autopay.Company_Area.value;
		

		bError = isWhitespace(acctnbr);
		if (bError){
			warnEmpty(acctnbr_field, "account number");
		}
		if (!bError){
			bError = !isInteger(acctnbr);		
			if (bError){
				warnInvalid(acctnbr_field, "Please enter only numeric values for account number.");
			} 
		}

		if (company_type.toLowerCase( ) == "comed"){
			if (!bError){
				if (acctnbr.length != 10){
					bError = true;
					warnInvalid(acctnbr_field, "Please enter your full 10 digit account number.");
				} 
			}
		}
		else
		{
			if (!bError){
				if (acctnbr.length == 10 || acctnbr.length == 12){
				} 
				else
				{
					bError = true;
					warnInvalid(acctnbr_field, "Please enter a 10 or 12-digit account number.");
				}				
			}
		}
		
		if (!bError){
			bError = isWhitespace(fname);
			if (bError){
				warnEmpty(fname_field, "first name");
			}
		}
		
		if (!bError){
			bError = isWhitespace(lname);
			if (bError){
				warnEmpty(lname_field, "last name");
			}
		}
		
		if (!bError){
			bError = isWhitespace(relationship);
			if (bError){
				warnEmpty(relationship_field, "relationship");
			}
		}		
		
		if (!bError){
			bError = isWhitespace(f_instit);
			if (bError){
				warnEmpty(f_instit_field, "financial institution");
			}
		}
		
		if (!bError){
			bError = isWhitespace(f_rounting);
			if (bError){
				warnEmpty(f_rounting_field, "institution routing number");
			}
			if (!bError){
				bError = !isInteger(f_rounting);		
				if (bError){
					warnInvalid(f_rounting_field, "Please enter only numeric values for institution routing number.");
				} 
			}
			if (!bError){
				if (f_rounting.length != 9){
					bError = true;
					warnInvalid(f_rounting_field, "Please enter your full 9 digit institution routing number.");
				} 
			}
		}
		
		if (!bError){
			bError = isWhitespace(f_account);
			if (bError){
				warnEmpty(f_account_field, "financial account");
			}
			if (!bError){
				bError = !isInteger(f_account);		
				if (bError){
					warnInvalid(f_account_field, "Please enter only numeric values for financial account number.");
				} 
			}
		}
		
		if (!bError){
			if (!isWhitespace(zip) || !isWhitespace(zip2)) {
				if (!bError){
					bError = !isInteger(zip);		
					if (bError){
						warnInvalid(zip_field, "Please enter only numeric values for institution zip.");
					} 
				}
				if (!bError){
					if (zip.length != 5){
						bError = true;
						warnInvalid(zip_field, "Please enter at least 5 digits for your institution zip code.");
					} 
				}
				if (!bError){
					if (!isWhitespace(zip2)){
							bError = !isInteger(zip2);		
							if (bError){
								warnInvalid(zip2_field, "Please enter only numeric values for second part of your institution zip.");
							} 
							if (!bError){
								if (zip2.length != 4){
									bError = true;
									warnInvalid(zip2_field, "Please enter at least 4 digits for second part of your institution zip code.");
								} 
							}
					}
				}
			}
		}
		
		if (!bError){
			bError = !isEmail(email);
			if (bError){
				warnInvalid(email_field, "Please enter a valid email address.");
			}
			if (!bError){
				if (email != confirmemail){
					bError = true;
					warnInvalid(email_field, "Your email address entry must match the email address confirmation entry.");
				}
			}
		}
		
		if (!bError) {
			document.autopay.submit();
		}
		
	}
