why does not open the dialog box "delete-dialog2" when running the line in bold


<script type="text/javascript">
$(function () {
var deleteLinkObj;
// delete Link
...