How to run a function

How to run a function

Hello,
I tried to install Jquery Impromptu, but I don't understand how to call function whitch I need after user(admin) submit form. Sense on my page is this:

You are admin and you want to delete photo(s).... You click on the icon with x sign (delete)... and the Window of Impromptu popups. There is a question if U realy want to delete the files. If Yes ("Ano") then submit "Ano" button and call the function to redirect (e.g. window.location="http://someplace.com"; ).

This is the page of mine:
http://web-design.rozhled.cz/t/try.htm


I have seen this example:

$.prompt(txt,{
    buttons:{Change:true, Cancel:false},
    submit: function(v,m,f){},
    callback: function(v,m,f){}
});


But this doesn't work on my site, because If I try to use it the popup window doesn't work. But I don't know if this is what I need to make the think working. Please help, thank You