using vs2005 / 2.0

in my save button i have validation.

when user clicks save, validation is checked, and if it fails, it does not postback. user then fixes errors.

then when user clicks save buton again, confirm box appears, ok/cancel,
for confirmation.

i know with startupscript routine, how i can put this confirm into place? a small sample code is nice. thanks you.