if (theform.message.value.length > 1000) { alert("Your message is too long.\n\nReduce your message to 1000 characters.\nIt is currently " + theform.message.value.length + " characters long."); return false; }