<INPUT TYPE="submit" NAME="deleteOldEntries" VALUE="Delete all">
<input type=text name="mydate">
If submit button is press, show a popup to confirm deletion. In message, display value from "mydate" text field. If select yes, then proceed with the submit, otherwise, do nothing.