<!--
function ImgSwap(imgName, imgSrc)
{
  document.images[imgName].src=imgSrc;
}

var SWait=400;
var EWait=50;
var onTObj=null;
var offTObj=null;
var onObj=null;

function setVisibility(id,type)
{
  var _Obj=document.getElementById(id);
  if (_Obj!=null) { _Obj.style.visibility=type; }
}

function hiddenMenu(id)
{
  var _Obj=document.getElementById(id)
  if (_Obj!=null) { _Obj.style.visibility='hidden'; _Obj.style.left=10; }
}

function clearOnTObj()
{
  if (onTObj!=null) { clearTimeout(onTObj); onTObj=null; }
}

function clearOffTObj()
{
  if (offTObj!=null)  { clearTimeout(offTObj);  offTObj=null; }
}

function setOn(object)
{
  clearOnTObj();
  clearOffTObj();
  if (object.style.visibility=='hidden')
  {
    if (typeof document.documentElement.style.maxHeight != "undefined")
    {
      onTObj=setTimeout(function(){ onObj=object; onObj.style.visibility='visible'; },SWait);
    }else{
      onTObj=setTimeout(function(){ onObj=object; onObj.style.visibility='visible'; setVisibility('MknSelect','hidden'); setVisibility('SrtSelect','hidden'); setVisibility('LvcSelect','hidden'); },SWait);
    }
  }
}

function setOnIE6(object)
{
  clearOnTObj();
  clearOffTObj();
  if (object.style.visibility=='hidden')
  {
    onTObj=setTimeout(function(){ onObj=object; onObj.style.visibility='visible'; setVisibility('ShopSelect','hidden'); setVisibility('MknSelect','hidden'); setVisibility('SrtSelect','hidden'); setVisibility('LvcSelect','hidden'); },SWait);
  }
}

function setOff(object)
{
  clearOffTObj();
  if (object.style.visibility=='visible')
  {
    offTObj=setTimeout(function(){ object.style.visibility='hidden'; object.style.left=10; setVisibility('ShopSelect','visible'); setVisibility('MknSelect','visible'); setVisibility('SrtSelect','visible'); setVisibility('LvcSelect','visible'); },EWait);
  }else{
    clearOnTObj();
    object.style.left=10;
  }
}

function OnMenu(id,obj)
{
  var mw=460;
  var offx=0;
  var offy=-2;
  var oj=obj;
  var x = 0; 
  while(oj)
  {
    x += oj.offsetLeft;
    oj = oj.offsetParent;
  }
  oj=obj;
  var y = 0; 
  while(oj) { 
    y+=oj.offsetTop;
    oj=oj.offsetParent;
  }
  var w = obj.offsetWidth; 
  var h = obj.offsetHeight; 

  OffAllMenu();

  var menuObj=document.getElementById(id);
  if (menuObj!=null)
  {
    menuObj.style.top=y+h+(offy);
    var maxw=document.body.clientWidth;
    var newx=0;
    if ((x+(offx)+mw)<=maxw)
    {
      newx=x+(offx);
    }else{
      newx=(x+w)-(offx)-mw-2;
    }
    menuObj.style.left=newx;
    menuObj.style.width=mw;

    if (typeof document.documentElement.style.maxHeight != "undefined")
    {
      setOn(menuObj);
    }else {
      var selie6=document.getElementById('ShopSelect');
      if (selie6==null)
      {
        setOn(menuObj);
      }else{
        var oj2=selie6;
        var selie6x = 0; 
        while(oj2)  {
          selie6x += oj2.offsetLeft;
          oj2 = oj2.offsetParent;
        }
        selie6x+=selie6.offsetWidth;
        if (selie6x>newx)
        {
          setOnIE6(menuObj);
        }else{
          setOn(menuObj);
        }
      }
    }
  }
}

function OffMenu()
{
  clearOnTObj();
  if (onObj!=null)  { setOff(onObj);  }
}


function OffAllMenu()
{
  clearOnTObj();
  clearOffTObj();
  hiddenMenu('CategoryMenu21');
  hiddenMenu('CategoryMenu22');
  hiddenMenu('CategoryMenu24');
  hiddenMenu('CategoryMenu23');
  hiddenMenu('CategoryMenu31');
  hiddenMenu('CategoryMenu35');
  hiddenMenu('CategoryMenu33');
  hiddenMenu('CategoryMenu64');
  hiddenMenu('CategoryMenu61');
  hiddenMenu('CategoryMenu41');
  hiddenMenu('CategoryMenu44');
  hiddenMenu('CategoryMenu42');
  hiddenMenu('CategoryMenu43');
  hiddenMenu('CategoryMenu34');
  hiddenMenu('CategoryMenu36');
  hiddenMenu('CategoryMenu51');
  hiddenMenu('CategoryMenu54');
  hiddenMenu('CategoryMenu52');
  hiddenMenu('CategoryMenu53');
  setVisibility('ShopSelect','visible');
  setVisibility('MknSelect','visible');
  setVisibility('SrtSelect','visible');
  setVisibility('LvcSelect','visible');
}

function OnColor(obj,color)
{
  obj.style.color=color;
}
function ColorRed(obj)
{
  obj.style.color='RED';
}
function ColorBlue(obj)
{
  obj.style.color='BLUE';
}
function BorderColor(obj,strColor)
{
  obj.style.borderColor=strColor;
}
function SDClr()
{
  document.forms[0].SD_NAME1.value="";
  document.forms[0].SD_NAME2.value="";
  document.forms[0].SD_KANA_NAME1.value="";
  document.forms[0].SD_KANA_NAME2.value="";
  document.forms[0].SD_ZIP1.value="";
  document.forms[0].SD_ZIP2.value="";
  document.forms[0].SD_ADDRESS_CODE.value="";
  document.forms[0].SD_ADDRESS1.value="";
  document.forms[0].SD_ADDRESS2.value="";
  document.forms[0].SD_ADDRESS3.value="";
  document.forms[0].SD_TEL1.value="";
  document.forms[0].SD_TEL2.value="";
  document.forms[0].SD_TEL3.value="";
  document.forms[0].SD_MAIL.value="";
}
function popUp(url)
{
  var sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1, scrollbars=1,resizable=1,width=500,height=450');
  self.name = "mainWin";
}
function popUp2(url,wx,wy)
{
  var px=(screen.width-wx)/2;
  var py=(screen.height-wy)/2;
  loginWin=window.open(url,"win","left=" + px + ",top=" + py + ",toolbar=0,menubar=0,status=1,resizable=1,location=0,directories=0,scrollbars=0,width=" + wx + ",height=" + wy);
}
function loadLoginCookie()
{
  var strData="";
  var strCookieName="EMALLLOGINDATA"
  var theCookie=document.cookie+";";
  var start=theCookie.indexOf(strCookieName);
  if (start!=-1)
  {
    var end=theCookie.indexOf(";",start);
    strData=unescape(theCookie.substring(start+strCookieName.length+1,end));
  }
  if (strData.length>3)
  {
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    var strSplitData=strData.split(",",3);
    if (strSplitData[0].length>0)
    {
      document.login_sub.LGID.value=strSplitData[0];
    }
    if (strSplitData[1].length>0)
    {
      document.login_sub.PSWD.value=strSplitData[1];
    }
    if (strSplitData[2].length>0)
    {
      document.login_sub.LGIDPSWDSAVE.checked=true;
    }
  }
}
function loadLoginCookie2()
{
  var strData="";
  var strCookieName="EMALLLOGINDATA_2"
  var theCookie=document.cookie+";";
  var start=theCookie.indexOf(strCookieName);
  if (start!=-1)
  {
    var end=theCookie.indexOf(";",start);
    strData=unescape(theCookie.substring(start+strCookieName.length+1,end));
  }
  if (strData.length>4)
  {
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    strData=strData.replace(".",",");
    var strSplitData=strData.split(",",3);
    if (strSplitData[0].length>0)
    {
      document.login_sub.LGID.value=strSplitData[0];
    }
    if (strSplitData[1].length>0)
    {
      document.login_sub.PSWD.value=strSplitData[1];
    }
    if (strSplitData[2].length>0)
    {
      document.login_sub.LGIDPSWDSAVE.checked=true;
    }
    if (strSplitData[2].length==32)
    {
      document.login_sub.PSWDKEY.value=strSplitData[2];
    }
  }
}

function loadLoginCookie4(objForm)
{
  var strData="";
  var strCookieName="EMALLLOGINDATA_2"
  var theCookie=document.cookie+";";
  var start=theCookie.indexOf(strCookieName);
  if (start!=-1)
  {
    var end=theCookie.indexOf(";",start);
    strData=unescape(theCookie.substring(start+strCookieName.length+1,end));
  }
  if (strData.length>4)
  {
    var at = strData.indexOf("@");
    if(at>0)
    {
      var mail ="";
      var zero = strData.match(/\.0*\./);
      var zeropt = strData.indexOf(zero);
      if(zeropt>0)
      {
        mail = strData.substring(0,zeropt);
      }
      strData = strData.substring(zeropt);
      strData=strData.replace(".",",");
      strData=strData.replace(".",",");
      strData=strData.replace(".",",");
      strData = mail + strData;
    }else{
      strData=strData.replace(".",",");
      strData=strData.replace(".",",");
      strData=strData.replace(".",",");
      strData=strData.replace(".",",");
      strData=strData.replace(".",",");
    }
    var strSplitData=strData.split(",",3);
    if (strSplitData[0].length>0)
    {
      var lgid = objForm.LGID.value=strSplitData[0];
    }
    if (strSplitData[1].length>0)
    {
      objForm.PSWD.value=strSplitData[1];
    }
    if (strSplitData[2].length>0)
    {
      objForm.LGIDPSWDSAVE.checked=true;
    }
    if (strSplitData[2].length==32)
    {
      objForm.PSWDKEY.value=strSplitData[2];
    }
  }
}
function DeleteLoginCookie()
{
  var strDay="1"
  setDay=new Date();
  setDay.setTime(setDay.getTime()+(strDay*1000*60*60*24));
  var expDay=setDay.toGMTString();

  document.cookie = "EMALLLOGINDATA= ;expires="+expDay;
}
// -->
