function submitToOtherAction(someForm, someAction) {
	someForm.action = someAction;
	someForm.method = "post";
	someForm.submit();
}
// takes a freeform date and deploys the m, d, y components to separate hidden fields
function deployFreeformDate(someForm, dateFieldHash) {
	var freeformDateRE = new RegExp("^([0-9]{2})" + _VALIDATION_DATE_DL + "([0-9]{2})" + _VALIDATION_DATE_DL + "([0-9]{4})$");
	for (var freeformField in dateFieldHash) {
		if (!someForm[freeformField]) return;
		freeformDateRE.exec(someForm[freeformField].value);
		for (var i=0; i<_VALIDATION_DATE_ORDER.length; i++) {
			if (someForm[dateFieldHash[freeformField][_VALIDATION_DATE_ORDER[i]]]) someForm[dateFieldHash[freeformField][_VALIDATION_DATE_ORDER[i]]].value = eval("RegExp.$" + (i+1));
		}
	}
}

// PRIVACY POLICY STUFF
// pops up the privacy policy window
function showPrivacyPolicy(ppUrl, showOptout) {
	if (showOptout) ppUrl += "&showOptout=true";
	PrivacyPolicyWindowPopup = window.open(ppUrl,"ppPopUp","toolbar=no,width=600,height=400,status=no,scrollbars=yes,resize=no,menubar=no");
	PrivacyPolicyWindowPopup.focus();
}

// enables/disables "opt out" checkbox when "agree" checkbox is checked/unchecked
function ppToggle(testCheckbox, targetCheckbox) {
	if (!targetCheckbox) return;
	if (testCheckbox.checked) targetCheckbox.disabled = false;
	else targetCheckbox.disabled = true;
}

