I have a number of places in my website where I have a jqueryui dialog. In many cases the jquery code is almost identical. Typical differences are for title, width, and height.
The dialog is attached to a control with something like $('#selector').dialog().
Is there a way to make this like a "function that is called with parameters"? That is, have a generic jquery function instead of have numerous nearly identical codes?