function check_length(my_form)
{
maxLen = 79; // max number of characters allowed
if (my_form.comments.value.length > maxLen) {
// Alert message if maximum limit is reached. 
// If required Alert can be removed. 
var msg = "You have reached your maximum limit of characters allowed";
alert(msg);
// Reached the Maximum length so trim the textarea
my_form.comments.value = my_form.comments.value.substring(0, maxLen);
}
else{ // Maximum length not reached so update the value of comments counter
my_form.text_num.value = maxLen - my_form.comments.value.length;}
}

function verify() {
var themessage = "Please enter the following missing information: ";
if (document.myform.lname.value=="" || document.myform.fname.value=="") {
themessage = themessage + "\n - Full Name";
}
//mailing address required for option 0 = both lists, option 2 = usmail only list				

		if (document.myform.street1.value=="" && document.myform.street2.value=="") {
		themessage = themessage + "\n - Street Address";
		}
		if (document.myform.city.value=="") {
		themessage = themessage + "\n - City";
		}
		if (document.myform.zip.value=="" || document.myform.zip.value.length != 5 ) {
		themessage = themessage + "\n - 5 digit Zip";
		}


//Email address required 
	if (document.myform.email.value=="") {
		themessage = themessage + "\n - email address";
		}

//alert if fields are empty and cancel form submit
if (themessage == "Please enter the following missing information: ") {
document.myform.submit();
}
else {
alert(themessage);
return false;
   }
}

//
