only put the function definition in <head>, between script tags of course
for your form, do: <form ... onsubmit="return todayDate(document.form.AssignedDate.value, document.from.DueDate.value)">
if you are going to do an onsubmit, you should put "return false;" in the else branch of the function's if statement, after the alert ray
rheindl@bju.edu