function jconfirm(msg,callback) { $("#dialog-confirm").html(msg).dialog({ resizable: false, draggable: false, height:230, modal: true, show: { effect: 'fade', times: 2 }, hide: { effect: 'fade' }, buttons: { "OK": function() { if(!callback()) { $( this ).dialog( "close" ); } }, "Cancel": function() { $( this ).dialog( "close" ); result = false; } }, zIndex: 100000 }); } function jalert(msg) { $("#dialog").html(msg).dialog({ resizable: false, draggable: false, height:200, modal: true, show: { effect: 'fade', times: 2 }, hide: { effect: 'fade' }, open: function() { $(this).parents('.ui-dialog').find('.ui-dialog-titlebar-close').remove(); }, buttons: { "OK": function() { $( this ).dialog( "close" ); } }, zIndex: 100001 }); } function jalert_c(msg,callback) { $("#dialog").html(msg).dialog({ resizable: false, draggable: false, height:200, modal: true, show: { effect: 'fade', times: 2 }, hide: { effect: 'fade' }, open: function() { $(this).parents('.ui-dialog').find('.ui-dialog-titlebar-close').remove(); }, buttons: { "OK": function() { callback(); $( this ).dialog( "close" ); } }, zIndex: 100001 }); } function jloading(type) { if(type==1) { $("#loading").dialog({ create: function() { $("#loading").parents(".ui-dialog").find(".ui-dialog-titlebar-close").remove(); }, resizable: false, draggable: false, height: 120, modal: true, show: { effect: 'fade' }, hide: { effect: 'fade' }, zIndex: 10000 }); } else { $("#loading").dialog('close'); } } function verifyEmail(email) { var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i; if (email.search(emailRegEx) == -1) { return false; } else { return true; } } $(function() { $('
').appendTo("body"); $('
').appendTo("body"); $('').appendTo("body"); $('').appendTo("body"); });