<!--
function changeTdBgcolor(laynm,flg){
   if(flg == "on"){
      var bgcol = "#FFF000";
   }else if(flg == "off"){
      var bgcol = "#F9AFAA";
   }else{
      var bgcol = "#FFFFF0";
   }

   document.getElementById(laynm).style.backgroundColor = bgcol;
}

function openNewWindow(url){
   var winName = 'newWin' + Math.floor(Math.random() * 999999);
   var option = 'width=900,height=800,';
   option += 'resizable=1,toolbar=1,menubar=1,status=1,location=1,scrollbars=1,directories=1';
   newWin = window.open(url,winName,option);
   newWin.window.focus();
}

function backToTop(){
   var x1 = x2 = x3 = 0;
   var y1 = y2 = y3 = 0;
   if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
   }
   if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
   }
   x3 = window.scrollX || 0;
   y3 = window.scrollY || 0;
   var x = Math.max(x1, Math.max(x2, x3));
   var y = Math.max(y1, Math.max(y2, y3));
   window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
   if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 30);
   }
}

function isFlashPlugin(){
   var limit_flashplugin_ver = 10;
   if(navigator.plugins && navigator.mimeTypes['application/x-shockwave-flash']){
      var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
      var flashplugin_ver = parseInt(plugin.description.match(/\d+\.\d+/));
   }else{
      var flashOCX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/);
      var flashplugin_ver = parseInt(flashOCX[0]);
   }
   if(flashplugin_ver >= limit_flashplugin_ver){
      return true;
   }else{
      return false;
   }
}
//-->

