Topic: Change the Javascript-Dialog-Design

Hi, i want to change the javascript-dialog-desgin, so I wrote a custom-javascript-box (showConfirmDialog) and a helper-function(link_to_remote_confirm) which should be used istead of the default link_to_remote. But when i call this function in a view the dialog is not shown but the function is executed. Any ideas? Code: https://gist.github.com/726718