function findTag(eItem) {
    var objATag = new Object();
//  objATag = eItem.all.tags("A").item(0)
    objATag = eItem.all.tags("A").item(0)
    return objATag;
}

function NavMOver(eItem){
    var objATag = new Object();
    objATag = eItem.all.tags("A").item(0)
    objATag.DefaultBgColor = objATag.style.backgroundColor;
    objATag.DefaultTxtColor = objATag.style.color;
    objATag.style.backgroundColor = "#CCCCFF";
    objATag.style.cursor="hand";
//  eItem.DefaultBgColor = eItem.style.backgroundColor;
//  eItem.DefaultTxtColor = eItem.style.color;
//  eItem.style.backgroundColor = "#CCCCFF";
//  eItem.style.cursor="hand";
//window.status = findTag(eItem).getAttribute("HREF");
}

function NavMOut(eItem){
    var objATag = new Object();
    objATag = eItem.all.tags("A").item(0)
    objATag.style.backgroundColor = objATag.DefaultBgColor;
    objATag.style.color=objATag.DefaultTxtColor
//window.status= "";
}

function NavMDown(eItem){
    findTag(eItem).style.color="#9999CC"
}

function NavMUp(eItem){
    top.location.href= findTag(eItem).getAttribute("HREF")//leave "top" in, so we can navigate away from framed pages.
}

function NavClick(eItem){
//  eItem.parentNode.parentNode.all.tags("a").item(0).style.backgroundColor = top.style.backgroundColor;
    eItem.parentNode.style.backgroundColor = "white";
}

function chgCompo(compo){
    parent.frames[1].location = compo + "/control.asp";
}
function chgMenu(menupg){
    parent.frames[2].location = menupg;
}
function chgMain(mainpg){
    parent.frames[3].location = mainpg;
}
function chgFooter(footpg){
    parent.frames[4].location = footpg;
}

function popUp( loc ) {
    var detailWin = window.open(loc, 'detailWin', 'resizable,scrollbars,width=600,height=400');
    detailWin.focus();
}

function popUpExt( loc ) {
    var x=(screen.width -600)/2;
    var y=(screen.height-400)/2;
    var detailWin = window.open(loc, 'detailWin', 'resizable=0,scrollbars,width=600,height=400,left=' + x + ',top=' + y);
    detailWin.focus();
    return detailWin;   //Window IuWFNgԂ
}

function popUpHelp( loc ) {
    var helpWin = window.open(loc, 'helpWin', 'resizable,scrollbars,width=640,height=480');
    helpWin.focus();
}

if (document.all || document.layers){
    if (document.layers){
        document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown=onClickR;
}

function onClickR(evt){
    if ( (!!document.layers)&&(evt.which==2||evt.which==3)
      || (!!document.all)&&(event.button==2||event.button==3) ){
        alert("|bvAbvj[Ŏw肷鍀ڂ͂܂B");
        return false;
    }else{
        return true;
    }
}
