function goTarget(where) {
    var site="";
    var path = "";
    var base = "";
    var pos;
    var appName = escape(navigator.appName);
    var appVersion = escape(navigator.appVersion);

    /*--- for DeleGate ---*/
    path = window.location.pathname;
    pos = path.indexOf("/cgi-bin/KENSAKU" );
    if( pos < 0 )  pos = path.indexOf( "/KENSAKU" );
    if( pos > 0 ) {
        base = path.substring(0,pos);
    }
    /*--------------------*/

    if( where  == 0 ) {             
        /*--- to トップ画面 ---*/
        site = "/KENSAKU/swk_startup.html";
    } else if( where  == 1 ) {
        /*--- to 簡単検索 ---*/
        site = "/cgi-bin/KENSAKU/swk_login.cgi?"
             + "MODE=1"
             + "&appName=" + appName
             + "&appVersion=" + appVersion
             + "&DMY=" + Math.floor(Math.random()*10000);
    } else if( where == 2 ) {
        /*--- to 詳細検索 ---*/
        site = "/cgi-bin/KENSAKU/swk_login.cgi?"
             + "MODE=2"
             + "&appName=" + appName
             + "&appVersion=" + appVersion
             + "&DMY=" + Math.floor(Math.random()*10000);
    } else if( where == 3 ) {
        /*--- to 追録・附録・目次・索引検索 ---*/
        site = "/cgi-bin/KENSAKU/swk_login.cgi?"
             + "MODE=3"
             + "&appName=" + appName
             + "&appVersion=" + appVersion
             + "&DMY=" + Math.floor(Math.random()*10000);
    } else if( where == 4 ) { 
        /*--- to 選択閲覧 ---*/
        site = "/SENTAKU/index.htm";
    } else if( where == 5 ) { 
        /*--- to FAQ ---*/
        site = "/KENSAKU/www_faq_top.html";
    } else if( where == 6 ) {
        /*--- to メールアンケート ---*/
        site = "/cgi-bin/KENSAKU/swk_enq.cgi?"
             + "DMY=" + Math.floor(Math.random()*10000);
    }
    window.document.location.href = base + site;
    return;
}
