function initWebAttackFlash()
{
    $("#div_wgWebAttack10").load("Last10Data.jsp?type=1");
    swfobject.embedSWF("./open-flash-chart.swf", "div_WebAttackWeek", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataWeek.jsp?type=1"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_WebAttackMonth", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataMonth.jsp?type=1"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_WebAttackYear", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataYear.jsp?type=1"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_DomainThAll", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataDomainTh.jsp?type=1"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_OSWebAttackYear", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDATByType.jsp?type=1"});
    swfobject.embedSWF("./open-flash-chart.swf", "div_ServerWebAttackYear", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDATByType.jsp?type=2"});
}
var positionScrolltWebAttack
function initWebAttackRefresh()
{
    $("#wgWebAttackQuery .refresh").remove();
    $("#wgFWebAttackWeek .refresh").click(function(){
        positionScrolltWebAttack = document.documentElement.scrollTop;
        $("#td_WebAttackWeek").children().remove();
        $("#td_WebAttackWeek").empty();
        $("#td_WebAttackWeek").append("<DIV id='div_WebAttackWeek' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_WebAttackWeek", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataWeek.jsp?type=1"});
        setTimeout('document.documentElement.scrollTop=positionScrolltWebAttack;',10);
    });
    $("#wgFWebAttackMonth .refresh").click(function(){
        positionScrolltWebAttack = document.documentElement.scrollTop;
        $("#td_WebAttackMonth").children().remove();
        $("#td_WebAttackMonth").empty();
        $("#td_WebAttackMonth").append("<DIV id='div_WebAttackMonth' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_WebAttackMonth", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataMonth.jsp?type=1"});
        setTimeout('document.documentElement.scrollTop=positionScrolltWebAttack;',10);
    });
    $("#wgFWebAttackYear .refresh").click(function(){
        positionScrolltWebAttack = document.documentElement.scrollTop;
        $("#td_WebAttackYear").children().remove();
        $("#td_WebAttackYear").empty();
        $("#td_WebAttackYear").append("<DIV id='div_WebAttackYear' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_WebAttackYear", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataYear.jsp?type=1"});
        setTimeout('document.documentElement.scrollTop=positionScrolltWebAttack;',10);
    });
    $("#wgFDomainThAll .refresh").click(function(){
        positionScrolltWebAttack = document.documentElement.scrollTop;
        $("#td_DomainThAll").children().remove();
        $("#td_DomainThAll").empty();
        $("#td_DomainThAll").append("<DIV id='div_DomainThAll' style='width:100%;height:100%;' ></DIV>");
        swfobject.embedSWF("./open-flash-chart.swf", "div_DomainThAll", "100%", "160", "9.0.0","expressInstall.swf",{"data-file":"./json-chart/graphDataDomainTh.jsp?type=1"});
        setTimeout('document.documentElement.scrollTop=positionScrolltWebAttack;',10);
    });


    $("#wgWebAttack10 .refresh").click(function(){
        positionScrolltWebAttack = document.documentElement.scrollTop;
        $("#div_wgWebAttack10").empty();
        $("#div_wgWebAttack10").children().remove();
        $("#div_wgWebAttack10").load("Last10Data.jsp?type=1");
        setTimeout('document.documentElement.scrollTop=positionScrolltWebAttack;',10);
    });
}