function createModal(sender,src, width, height) {

    if (height === undefined) {
        height = "400";
    }
    if (width === undefined) {
        width = "600";
    }
    if (src === undefined) {
        src="";
    }
    if (sender === undefined) {
        return false;
    }

    $(document).ready(function () {
        $("#" + sender + "").click(function (event) {
            event.preventDefault();

            $.modal('<iframe src="' + src + '" height="' + height + '" width="' + width + '" style="border:0">', {
                appendTo: 'body',
                focus: true,
                opacity: 50,
                overlayId: 'modalOverlay',
                overlayCss: {},
                containerId: 'modalContainer',
                containerCss: {},
                dataId: 'simplemodal-data',
                dataCss: {},
                minHeight: height,
                minWidth: width,
                maxHeight: height,
                maxWidth: width,
                autoResize: false,
                autoPosition: true,
                zIndex: 1000,
                close: true,
                closeHTML: '<a class="modalCloseImg" title="Close"></a>',
                closeClass: 'simplemodal-close',
                escClose: true,
                overlayClose: false,
                position: null,
                persist: false,
                modal: true,
                onOpen: null,
                onShow: null,
                onClose: null
            });

            return false;
        });

    });

}


