
<!--

var n4 = (document.layers)? true:false;
var e4 = (document.all)? true:false;
var n6 = (document.getElementById)? true:false;
var vnum = navigator.appVersion.substring(0,1)
if (document.layers) { 
	n4=true;
} else if (document.all) { 
	e4=true;
} else if (document.getElementById) { 
	n6=true;
}

CSStopExecution = false;
CSInit = new Array;
function CSScriptInit() {
    if(typeof(skipPage) != "undefined") { if(skipPage) return; }
    idxArray = new Array;
    for(var i=0;i<CSInit.length;i++)
	idxArray[i] = i;
    CSAction2(CSInit, idxArray);
}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
    var curDoc = ly ? ly.document : document; var elem = curDoc[n];
    if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
    elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
    return elem;
}
function CSClickReturn () {
    var bAgent = window.navigator.userAgent; 
    var bAppName = window.navigator.appName;
    if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
    return true; // dont follow link
    else return false; // dont follow link
}

function CSButtonReturn () {
    var bAgent = window.navigator.userAgent; 
    var bAppName = window.navigator.appName;
    if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
    return false; // follow link
    else return true; // follow link
}

CSIm = new Object();
function CSIShow(n,i) {
    if (document.images) {
        if (CSIm[n]) {
            var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
            if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
            if(i != 0)
                self.status = CSIm[n][3];
            else
                self.status = " ";
            return true;
        }
    }
    return false;
}

function CSILoad(action) {
    im = action[1];
    if (document.images) {
        CSIm[im] = new Object();
        for (var i=2;i<5;i++) {
        if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
        else CSIm[im][i-2] = 0;
        }
        CSIm[im][3] = action[5];
    }
}

CSStopExecution = false;

function CSAction(array) { 
    return CSAction2(CSAct, array);
}

function CSAction2(fct, array) { 
var result;
for (var i=0;i<array.length;i++) {
    if(CSStopExecution) return false; 
    var actArray = fct[array[i]];
    if(actArray == null) return false; 
    var tempArray = new Array;
    for(var j=1;j<actArray.length;j++) {
        if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
            if(actArray[j][0] == "VAR") {
                tempArray[j] = CSStateArray[actArray[j][1]];
            }
            else {
                if(actArray[j][0] == "ACT") {
                    tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
                }
                else
                    tempArray[j] = actArray[j];
                }
            }
        else
            tempArray[j] = actArray[j];
        }			
        result = actArray[0](tempArray);
    }
    return result;
}

CSAct = new Object;
function CSSetStyleVis(s,v) {
    if (IsIE()) CSIEStyl(s).visibility = (v == 0) ? "hidden" : "visible";
    else CSNSStyl(s).visibility = (v == 0) ? 'hide' : 'show'; 
}

function CSGetStyleVis(s) {
    if (IsIE()) return (CSIEStyl(s).visibility == "hidden") ? 0 : 1;
    else return (CSNSStyl(s).visibility == 'hide') ? 0 : 1;
}

function CSShowHide(action) {
    if (action[1] == '') return;
    var type=action[2];
    if(type==0) CSSetStyleVis(action[1],0);
    else if(type==1) CSSetStyleVis(action[1],1);
         else if(type==2) { 
                  if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
                  else CSSetStyleVis(action[1],0);
         }
}

function colsim_onClick(code) {
    // ナビゲーションポップページ
       win1=window.open("../../E_Paint/ePsim/ePsim0100.asp?trader=" + code,"child_window","width=800,height=620,resizable=no,scrollbars=no");
       win1.resizeTo(800,620);
}

function menu_onClick(code) {
    // ナビゲーションポップページ
//    if(document.all.incheck.value==1){
     if(n6){ f = document.getElementById('ifsid').contentWindow;}
       else{ f = document.getElementById('ifsid').contentWindow;}
       top.location.href="Default.asp?kb=" + code + "&sid=" + f.document.getElementById("ssid").value + "&trader=" + document.getElementById("trader").value + " ";
//    }   
}
// -->
