// This script opens a confirmation window when
// a user clicks the "Clear" button in a form

var dataOK=false;

function ConfirmCancel (){
  if (confirm("Are you sure you want to clear the form? Click OK to clear it."))
    {
      document.submit.reset();
    }
  return true;
}