<!--
function hama_ch_wdvw(lt,tp,wt,ht,lin){
    document.dummy.src="hamamatsu_mark.gif"
    if(!window.hama_ch_wdvw.no)hama_ch_wdvw.no=0
    var hama_ch_wdnm='markwindow'+hama_ch_wdvw.no
    hama_ch_wdvw.no++
    if(navigator.userAgent.indexOf("Opera 6")!=-1||navigator.userAgent.indexOf("Opera/6")!=-1)return null
    else if(document.getElementById){
        var lyobj=document.createElement('ly')
        lyobj.setAttribute('id',hama_ch_wdnm)
        lyobj.innerHTML=lin
        lyobj.style.position='absolute'
        lyobj.style.backgroundColor='#FFFFFF'
        lyobj.style.left=lt+'px'
        lyobj.style.top=tp+'px'
        lyobj.style.width=wt+'px'
        lyobj.style.height=ht+'px'
        document.body.appendChild(lyobj)
        return lyobj
    } else if(document.all){
        var divstr='<div id='+hama_ch_wdnm+'style="position:absolute;left:'+lt+'px;top:'+tp+'px;width:'+wt+'px;height:'+ht+'px;">'+lin+'<\/div>'
        document.body.insertAdjacentHTML('BeforeEnd',divstr)
        return document.all(hama_ch_wdnm)
    } else if(document.layers){
        var lyobj=new Layer(wt)
        lyobj.bgcolor='#FFFFFF'
        hama_ch_wdnm=lyobj.name
        lyobj.left=lt
        lyobj.top=tp
        lyobj.height=ht
        lyobj.visibility='visible'
        document.layers[hama_ch_wdnm].document.open()
        document.layers[hama_ch_wdnm].document.write(lin)
        document.layers[hama_ch_wdnm].document.close()
        return lyobj
    }
    return null
}

function hama_ch_wdcl(hama_ch_wdnm){
    if(document.getElementById){
        document.getElementById(hama_ch_wdnm).style.visibility='hidden'
    } else if(document.all){
        document.all(idName).style.visibility='hidden'
    } else if(document.layers)
        document.layers[idName].visibility='hide'
    }

function hama_ch_ci(image,md){
    hama_ch_st=md
    document.dummy.src=image;
}

function hama_ch_mudwn(e){
    var tx
    if(hama_ch_st){
        if(window.opera){
            cx=e.clientX
            cy=e.clientY
        } else if(document.all){
            if(document.body.clientWidth-event.clientX < 270){cx=document.body.scrollLeft+document.body.clientWidth-270}
            else {cx=document.body.scrollLeft+event.clientX}
            if(document.body.clientHeight-event.clientY < 253){cy=document.body.scrollTop+document.body.clientHeight-253}
            else {cy=document.body.scrollTop+event.clientY}
        } else if(document.layers||document.getElementById){
            if(pageXOffset+innerWidth-e.pageX < 270+30){cx=pageXOffset+innerWidth-270-30}
            else {cx=e.pageX}
            if(pageYOffset+innerHeight-e.pageY < 253+30){cy=pageYOffset+innerHeight-253-30}
            else {cy=e.pageY}
        }
        if(!hama_ch_ojt){
            tx='<TABLE width=270 height=253><TR align=center valign=middle><TD>ؕ\</TD></TR></TABLE>'
            hama_ch_ojt1=hama_ch_wdvw(cx,cy,270,253,tx)
            setTimeout("hama_ch_wdcl(hama_ch_ojt1.id)",500)
            var apl = navigator.appName
            if(apl.indexOf("Microsoft") >= 0){
               tx='<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width=270 height=253><PARAM NAME="archive" VALUE="'+hama_ch_fn+'"><PARAM NAME="codebase" VALUE="./"><PARAM NAME="code" VALUE="jp.co.hitachi.im.IM3MrkViwApl.class"><PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4"><TABLE width=270 height=253><TR align=center valign=middle><TD><A HREF="http://www.hamamatsu-cci.or.jp/mark/2.html#3" TARGET="_blank"><IMG SRC="dummy.gif" WIDTH=113 HEIGHT=113 border=0></A></TD></TR></TABLE></OBJECT>'
            }else{
               tx='<TABLE></TABLE><APPLET CODEBASE="./" ARCHIVE="'+hama_ch_fn+'" CODE="jp.co.hitachi.im.IM3MrkViwApl" WIDTH=270 HEIGHT=253 NAME="Internet-Marks"><PARAM NAME="PLUGINSPAGE" VALUE="http://www.hamamatsu-cci.or.jp/mark/Q_A.html"><param name=LogLevel value="0"><TABLE width=270 height=253><TR align=center valign=middle><TD><A HREF="http://www.hamamatsu-cci.or.jp/mark/2.html#3" TARGET="_blank"><IMG SRC="dummy.gif" WIDTH=113 HEIGHT=113 border=0></A></TD></TR></TABLE></APPLET>'
            }
            setTimeout("hama_ch_ojt=hama_ch_wdvw('"+cx+"','"+cy+"',270,253,'"+tx+"')",200)
        }
    }else if(hama_ch_ojt){
        hama_ch_wdcl(hama_ch_ojt.id)
        hama_ch_ojt = null
    }
}

function hama_ch_clearW(){
    if(hama_ch_ojt){
        if(document.all){
            if(document.hasFocus()){
                hama_ch_wdcl(hama_ch_ojt.id)
                hama_ch_ojt=null
            }
        }else{
            hama_ch_wdcl(hama_ch_ojt.id)
            hama_ch_ojt=null
        }
    }
    clearInterval(hama_ch_tmID)
}

function hama_ch_mmv(e){
    if(hama_ch_ojt){
        if(document.all){
            vx=document.body.scrollLeft+window.event.clientX
        }else if(document.layers || document.getElementById ){
            vx=e.pageX
        }
        if(document.all){
            vy=document.body.scrollTop+window.event.clientY
        }else if(document.layers || document.getElementById ){
            vy=e.pageY
        }
        if(document.all){
            if((cy>vy||cy+253<vy)||(cx>vx||cx+270<vx)){
                clearInterval(hama_ch_tmID)
                hama_ch_tmID=setInterval("hama_ch_clearW()",1000)
            }else{
                clearInterval(hama_ch_tmID)
            }
        }else if(document.layers || document.getElementById ){
            clearInterval(hama_ch_tmID)
            var x1=cx+270+30
            var x2=cx-10
            var y1=cy+253+30
            var y2=cy-10
            if((x1<vx)||(vx<x2)||(y1<vy)||(vy<y2)){
                hama_ch_tmID=setInterval("hama_ch_clearW()",1000)
            }else{
                clearInterval(hama_ch_tmID)
            }
        }
    }
}
//-->