function checkall(frm, list, state) {
	for(i = 0; i <= frm[list].length - 1; i++) {
		frm[list][i].checked = state;
	}
}//end checkall()

function checksubmit(frm) {
	frm_ok = false;
	//if(frm.action == "kmp_do.php") {
		if(frm.email.value.length == 0) {
			alert("Please enter your email address.");
			frm.email.focus();
		}
		else {
			if(!checkemail(frm.email.value)) {
				alert("The email address you entered does not appear to be valid.\n\nPlease try again.");
				frm.email.focus();
			}
			else {
				frm_ok = true;
			}
		}
	//} else {
		//frm_ok = true;
	//}
	
	return frm_ok;
}
