UI.extend.confirm=function(text,callback1,callback2,callback3){var templete='";if(document.getElementById("pup_upbox")){$("#pup_upbox").remove()}$("body").append(templete);$("#pup_upbox").ui("dialog",{close:".grayleft_addbtn,.pup_close"}).find(".blueleft_btn").click(function(){if(typeof callback1=="function"){callback1(function(bl){if(bl){$("#pup_upbox").closeDialog()}})}else{$("#pup_upbox").closeDialog()}});$("#pup_upbox").find(".grayleft_addbtn").click(function(){typeof callback2=="function"&&callback2()});$("#pup_upbox").find(".pup_close").click(function(){typeof callback3=="function"&&callback3()})};UI.extend.alert=function(text,callback1,callback2){var templete='";if(document.getElementById("pup_upbox")){$("#pup_upbox").remove()}$("body").append(templete);$("#pup_upbox").ui("dialog",{close:".grayleft_addbtn,.pup_close"}).find(".blueleft_btn").click(function(){$("#pup_upbox").closeDialog(callback1)});$("#pup_upbox").find(".pup_close").click(callback2)};