Deleting records with the 'run button' with date (parameter) required at the user

Good morning,
I create a grid very similar to the example “Deleting records with the run button”,
but now I should ask a date parameter to the user before delete my selected records…
I create a new map for ask a date, and with the new buttom “Aggiorna Ordini” I would like check the date’s validity before executed query of delete, but the function DateTest() for the event onClick for the button does not run… why?
this is the code:

<input type=‘date’ name=‘data’>gg/mm/aaaa
<input type=‘button’ name=‘Aggiorna’ value=‘Aggiorna Ordini’ onClick=‘DateTest()’>

function DateTest()
{

}

Could you help me to solve this problem?
Thank you so much!
Katia

It is not really clear to me what you are doing. Anyway apparently you want to check if the javascript you have is running. So grab firefirox and install the firebug addon. Then goto your page you want to test, press the F12 and start using the debugger that appears. So simply locate your onClick event and set a breakpoint on that line, also set a breakpoint on the DateTest function itself.