function fValidateNewSub(){
	var sFrm;
	sFrm = "frmNewSub";
	var dtNow = new Date();
	var iMinDate = dtNow.getFullYear() - 14;
	var iCurDate = 19 + document.frmNewSub.txtYOB.value;
	
	aTestFor_1 = [1, 8];
	aEle_1 = ["txtFName", "t", aTestFor_1, "Your First Name"];
	aTestFor_2 = [1, 8];
	aEle_2 = ["txtLName", "t", aTestFor_2, "Your Last Name"];
	aTestFor_3 = [1];
	aEle_3 = ["txtEmail", "t", aTestFor_3, "Your Email Address"];
	aTestFor_4 = [1]
	aEle_4 = ["txtEmail|txtEmailConfirm", "p", aTestFor_4, "Your Email addresses"];
	aTestFor_5 = [1, 4];
	aEle_5 = ["txtYOB", "t", aTestFor_5, "Your Year of Birth"];
	aTestFor_6 = [1, 8];
	aEle_6 = ["txtUName", "t", aTestFor_6, "Your Desired User Name"];
	aTestFor_7 = [1, 8];
	aEle_7 = ["txtPW", "t", aTestFor_7, "Your Desired Password"];
	aTestFor_8 = [1];
	aEle_8 = [iCurDate + "|" + iMinDate, "c", aTestFor_8, "Your Year of Birth"];
	
	aObjs = [aEle_1, aEle_2, aEle_3, aEle_4, aEle_5, aEle_6, aEle_7, aEle_8];
	aResult = fChkFrm(sFrm, aObjs);
	if (!aResult[0]) {
		alert ("Your Data Entry had the following errors:\n\n" + aResult[1] + "\nPlease correct and resubmit.")
		}
	return aResult[0]
}

function fValidateSubmittal(){
	var sFrm;
	sFrm = "frmSubmitStory";

	aTestFor_1 = [1, 8];
	aEle_1 = ["txtStoryTitle", "t", aTestFor_1, "The Title of Your Story"];
	
	aObjs = [aEle_1];
	aResult = fChkFrm(sFrm, aObjs);
	if (!aResult[0]) {
		alert ("Your Data Entry had the following errors:\n\n" + aResult[1] + "\nPlease correct and resubmit.")
		}
	return aResult[0]
}

function fValidateSpread(){
	var sFrm;
	sFrm = "frmSpread";

	aTestFor_1 = [1, 8];
	aEle_1 = ["txtName", "t", aTestFor_1, "Your Name"];
	aTestFor_2 = [1, 8];
	aEle_2 = ["txtEmail", "t", aTestFor_2, "Your Email Address"];
	aTestFor_3 = [1, 8];
	aEle_3 = ["taAddresses", "t", aTestFor_3, "The List of Email Addresses to Send to"];
	
	aObjs = [aEle_1, aEle_2, aEle_3];
	aResult = fChkFrm(sFrm, aObjs);
	if (!aResult[0]) {
		alert ("Your Data Entry had the following errors:\n\n" + aResult[1] + "\nPlease correct and resubmit.")
		}
	return aResult[0]
}

function fValidateShare(){
	var sFrm;
	sFrm = "frmShare";

	aTestFor_1 = [1, 8];
	aEle_1 = ["txtName", "t", aTestFor_1, "Your Name"];
	aTestFor_2 = [1, 8];
	aEle_2 = ["txtEmail", "t", aTestFor_2, "Your Email Address"];
	aTestFor_3 = [1, 8];
	aEle_3 = ["taAddresses", "t", aTestFor_3, "The List of Email Addresses to Send to"];
	
	aObjs = [aEle_1, aEle_2, aEle_3];
	aResult = fChkFrm(sFrm, aObjs);
	if (!aResult[0]) {
		alert ("Your Data Entry had the following errors:\n\n" + aResult[1] + "\nPlease correct and resubmit.")
		}
	return aResult[0]
}
