function b4_alert(g_head,g_text){
$("#DV_modal_alert").remove();
var b4_mod_html="
";
$("body").append(b4_mod_html);
var b4_alert_g_is=$("#DV_modal_alert").is("#DV_modal_alert");
if (b4_alert_g_is){
$("#DV_modal_alert").modal({
backdrop:"static",
keyboard:true,
show:true
});
}else{
alert(g_text);
}
window.self.focus();
}
function b4_info_alert(g_head,g_text){
$("#DV_modal_alert").modal('hide').remove();
var b4_mod_html="";
$("body").append(b4_mod_html);
var b4_alert_g_is=$("#DV_modal_alert").is("#DV_modal_alert");
if (b4_alert_g_is){
$("#DV_modal_alert").modal({
backdrop:true,
keyboard:true,
show:true
});
}else{
alert(g_text);
}
window.self.focus();
}
function b4_light_alert(g_text){
$("#DV_modal_alert").modal('hide').remove();
var b4_mod_html="";
$("body").append(b4_mod_html);
var b4_alert_g_is=$("#DV_modal_alert").is("#DV_modal_alert");
if (b4_alert_g_is){
$("#DV_modal_alert").modal({
backdrop:false,
keyboard:true,
show:true
});
}else{
alert(g_text);
}
window.self.focus();
}
function b4_confirm(g_head,g_text,g_function){
$("#DV_modal_alert").modal('hide').remove();
var b4_mod_html="";
$("body").append(b4_mod_html);
var b4_alert_g_is=$("#DV_modal_alert").is("#DV_modal_alert");
if (b4_alert_g_is){
$("#DV_modal_alert").modal({
backdrop:"static",
keyboard:true,
show:true
});
}else{
confirm(g_text);
}
window.self.focus();
}
function b4_modal_html(g_title,g_html){
$("#DV_modal_pop").modal('hide').remove();
var b4_mod_pop_html="";
$("body").append(b4_mod_pop_html);
var b4_mobal_pop_g_is=$("#DV_modal_pop").is("#DV_modal_pop");
if (b4_mobal_pop_g_is){
$("#DV_modal_pop .modal-body").html(g_html);
$("#DV_modal_pop").modal({
backdrop:true,
keyboard:true,
show:true
});
}else{
alert('Load Error');
}
}
function b4_modal_html_move(g_html){
var b4_mobal_pop_g_is=$("#DV_modal_pop").is("#DV_modal_pop");
if (b4_mobal_pop_g_is){
$("#DV_modal_pop .modal-body").empty().text("Loading...").html(g_html);
}else{
alert('Load Error');
}
}
function b4_modal_pop(g_title,g_url){
$("#DV_modal_pop").modal('hide').remove();
var b4_mod_pop_html="";
$("body").append(b4_mod_pop_html);
var b4_mobal_pop_g_is=$("#DV_modal_pop").is("#DV_modal_pop");
if (b4_mobal_pop_g_is){
$("#DV_modal_pop .modal-body").load(g_url,function(){
$("#DV_modal_pop").modal({
backdrop:true,
keyboard:true,
show:true
});
});
}else{
alert('Load Error');
}
}
function b4_modal_pop_fix_ms(g_title,g_url){
$("#DV_modal_pop").modal('hide').remove();
var b4_mod_pop_html="";
$("body").append(b4_mod_pop_html);
var b4_mobal_pop_g_is=$("#DV_modal_pop").is("#DV_modal_pop");
if (b4_mobal_pop_g_is){
$("#DV_modal_pop .modal-body").load(g_url,function(){
$("#DV_modal_pop").modal({
backdrop:"static",
keyboard:true,
show:true
});
});
}else{
alert('Load Error');
}
}
function b4_modal_pop_fix(g_title,g_url){
$("#DV_modal_pop").modal('hide').remove();
var b4_mod_pop_html="";
$("body").append(b4_mod_pop_html);
var b4_mobal_pop_g_is=$("#DV_modal_pop").is("#DV_modal_pop");
if (b4_mobal_pop_g_is){
$("#DV_modal_pop .modal-body").load(g_url,function(){
$("#DV_modal_pop").modal({
backdrop:"static",
keyboard:true,
show:true
});
});
}else{
alert('Load Error');
}
}
function b4_pop_page_move(g_url){
var b4_mobal_pop_g_is=$("#DV_modal_pop").is("#DV_modal_pop");
if (b4_mobal_pop_g_is){
$("#DV_modal_pop .modal-body").empty().text("Loading...").load(g_url);
}else{
alert('Load Error');
}
}
function b4_pop_remove(){
$("#DV_modal_pop").modal('hide').remove();
}