Tried the other one, works fine. Adding the single line, without the script in the head is much quicker and easier.
Tried changing the "Are you sure" message to something more meaningful like "Are you sure you want to delete this order etc etc" and tried putting a line break in the text but this brings up a syntax error. Does the message have to be in one continuous line without breaks or can you add them somehow?