function ShowModalMsg(a){$("#"+a).modal({overlay:99,overlayClose:true,overlayCss:{backgroundColor:"#000000"}});return false}function ModalMsg(a){$.modal.close();$(" <div />").attr("id","ModalMessage").html('<div id="ModalMessage"></div>').addClass("ModalMessage").appendTo($("body"));a+='<div style="text-align:center;padding-top:40px;"><input type="button" value="OK" onclick="$.modal.close()"></div>';$("#ModalMessage").html("<div style='padding: 30px;'>"+a+"</div>");$("#ModalMessage").modal({onOpen:function(b){b.overlay.fadeIn("fast",function(){b.data.hide();b.container.fadeIn("fast",function(){b.data.slideDown("fast")})})},onClose:function(b){$.modal.close();$("#ModalMessage").html("")},overlay:99,overlayClose:false,maxHeight:400,maxWidth:600,focus:true,escClose:false,autoResize:false,overlayCss:{backgroundColor:"#000"}})}function ModalMsgSend2Friend(a){$("#mail2friend").modal({onOpen:function(b){b.overlay.fadeIn("fast",function(){b.data.hide();b.container.fadeIn("fast",function(){b.data.slideDown("fast")})})},onClose:function(b){$.modal.close()},overlay:99,overlayClose:false,maxHeight:400,maxWidth:600,focus:true,escClose:true,autoResize:false,overlayCss:{backgroundColor:"#000"}})}function doModal(a){$("#ModalDialog").dialog("destroy");$(" <div />").attr("id","ModalDialog").appendTo($("body"));$("#ModalDialog").html(a);$("#ModalDialog").dialog({width:400,modal:true,buttons:{Ok:function(){$("#ModalDialog").dialog("destroy")}}})}function doModalElement(a){$("#"+a).dialog("destroy");$("#"+a).dialog({width:400,modal:true,buttons:{Ok:function(){$("#"+a).dialog("destroy")},}})}function confirm(a,b){$(".message").html(a);$("#confirm").dialog({resizable:false,width:550,modal:true,buttons:{OK:function(){b.apply();$(this).dialog("close")},Cancel:function(){$(this).dialog("close")}}})};