function alertA(msg){
     $.blockUI({css: {border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui msg_shadow"><img alt="" align="left" width="64" height="69" style="margin: 10px;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/alert.gif">'+msg+'<br><br><img alt="" width="69" height="22" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/ok.gif" onclick="$.unblockUI();"></div>'});
     blockUIfix();
}

function confirmA(msg,href){
     $.blockUI({css: {border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui msg_shadow"><img alt="" align="left" width="64" height="69" style="margin: 10px;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/question.gif">'+msg+'<br><br><a href="'+href+'"><img alt="" width="69" height="22" border="0" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/ok.gif"></a>&nbsp;<img alt="" width="69" height="22" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/cancel.gif" onclick="$.unblockUI();"></div>'});
     blockUIfix();
}

function confirmF(msg,func){
     $.blockUI({css: {border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui msg_shadow"><img alt="" align="left" width="64" height="69" style="margin: 10px;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/question.gif">'+msg+'<br><br><a href="javascript:void(0);" onclick="'+func+'();"><img alt="" width="69" height="22" border="0" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/ok.gif"></a>&nbsp;<img alt="" width="69" height="22" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/cancel.gif" onclick="$.unblockUI();"></div>'});
     blockUIfix();
}

function promptF(msg,idval,func){
     $.blockUI({css: {border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui msg_shadow" style="height: 100%;"><img alt="" align="left" width="64" height="69" style="margin: 10px;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/edit.gif">'+msg+'<br><br><input type="text" name="dd_admin_prompt_value" id="dd_admin_prompt_value" class="form2" style="width: 200px;text-align: right;padding:2px;" value="'+idval+'"><br><br><a href="javascript: void(0);" onclick="'+func+'();"><img alt="" width="69" height="22" border="0" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/ok.gif"></a>&nbsp;<img alt="" width="69" height="22" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/cancel.gif" onclick="$.unblockUI();"></div>'});
     blockUIfix();
}

function promptF2(msg,idval,action){
     $.blockUI({css: {border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui msg_shadow" style="height: 100%;"><img alt="" align="left" width="64" height="69" style="margin: 10px;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/edit.gif">'+msg+'<br><br><input type="text" name="dd_admin_prompt_value" id="dd_admin_prompt_value" class="form2" style="width: 200px;text-align: left;padding:2px;" value="'+idval+'"><br><br><a href="javascript: void(0);" onclick="'+action+'"><img alt="" width="69" height="22" border="0" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/ok.gif"></a>&nbsp;<img alt="" width="69" height="22" style="cursor: pointer;" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/cancel.gif" onclick="$.unblockUI();"></div>'});
     blockUIfix();
}

function iframeA(ifile,iframe_auto_refresh){
    if(iframe_auto_refresh == undefined){
        var iframe_auto_refresh = false;
    }
    
    if(iframe_auto_refresh == true)
    {
        $.blockUI({css:{top: '5%',left: '4%',width: '92%',height: '90%',border: 0,backgroundColor: 'transparent'},message: '<table cellspacing="0" cellpadding="0" border="0" align="right" class="block_ui2_image" style="width: 100%;height: 100%;"><tr><td valign="top"><div align="right" style="text-align: right;"><img alt="" style="float: right;cursor: pointer;margin: -20px -22px 0px 0px;" onclick="window.location.reload(true);$.unblockUI();" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/close.png"></div><iframe border="0" style="cursor: default;" alt="" src="'+ifile+'" width="100%" height="98%"></iframe></td></tr></table>'});
    }
    else
    {
        $.blockUI({css:{top: '5%',left: '4%',width: '92%',height: '90%',border: 0,backgroundColor: 'transparent'},message: '<table cellspacing="0" cellpadding="0" border="0" align="right" class="block_ui2_image" style="width: 100%;height: 100%;"><tr><td valign="top"><div align="right" style="text-align: right;"><img alt="" style="float: right;cursor: pointer;margin: -20px -22px 0px 0px;" onclick="$.unblockUI();" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/close.png"></div><iframe border="0" style="cursor: default;" alt="" src="'+ifile+'" width="100%" height="98%"></iframe></td></tr></table>'});    
    }
    blockUIfix();
}

function loadingA(msg){
     if(msg == undefined){
         msg = 'Please wait ...';  
     } 
     $.blockUI({css: {border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui msg_shadow" style="background-color: #777777;height: 100%;cursor: wait;"><img alt="" width="124" height="74" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/loading.gif"><br><blink class="loading">'+msg+'</blink></div>'});
     blockUIfix();
}

function GlobalImagePreview(im){
    $.blockUI({css:{border: 0,backgroundColor: 'transparent'},message: '<table cellspacing="0" cellpadding="0" border="0" align="right" class="block_ui2_image"><tr><td><div align="right"><img alt="" style="float: right;cursor: pointer;margin: -20px -22px 0px 0px;" onclick="$.unblockUI();" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/close.png"></div><img style="cursor: default;" alt="" onload="blockUIfix();" src="'+im+'"></td></tr></table>'});
    blockUIfix();
}

function Ajax(ajax_file){
     $.blockUI({css:{border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui2_image msg_shadow" id="admin_blockui_ajax_container" style="height: 100%;cursor: default;"><img alt="" width="32" height="32" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/loading_m.gif">&nbsp;</div><script>$("#admin_blockui_ajax_container").load("'+ajax_file+'",function(){blockUIfix();});</script>'});
     blockUIfix();
}

function Ajax2(ajax_file){
     $.blockUI({css:{border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui2_image msg_shadow" id="admin_blockui_ajax_container" style="width: 100%;height: 100%;cursor: default;"><img alt="" width="32" height="32" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/loading_m.gif"></div><script>$("#admin_blockui_ajax_container").load("'+ajax_file+'",function(){blockUIfix();});</script>'});
     blockUIfix();
}

function Ajax3(ajax_file){
     $.blockUI({css:{top: '5%',left: '4%',width: '92%',height: '90%',border: 0,backgroundColor: 'transparent'},message: '<div class="block_ui2_image msg_shadow" id="admin_blockui_ajax_container" style="height: 100%;cursor: default;"><img alt="" width="32" height="32" src="' + jquery_plugins_root +'modules/jquery_plugins/blockui_alerts/loading_m.gif">&nbsp;</div><script>$("#admin_blockui_ajax_container").load("'+ajax_file+'",function(){blockUIfix();});</script>'});
     blockUIfix();
}

function blockUIfix(){
    $('.blockMsg').css({'visibility' : 'hidden'});blockUIfix2();
    setTimeout("blockUIfix2();$('.blockMsg').css({'visibility' : 'visible'});",5);
}

function blockUIfix2(){
    if(!$.browser.msie){
        $('.blockMsg').css({top:($(window).height()-$('.blockMsg').height())/2,left:($(window).width()-$('.blockMsg').width())/2});
    }
}

