function confirm_remove( object_type, name, url ) { var msg = 'Do you want to remove ' + object_type + ' (' + name + ') ?' if ( confirm( msg ) ) { self.location = url; } }