function Selection(w,h,TITLE,TAR) {
    if (TAR.indexOf("htm",0) == -1) {
        newWin = window.open("","image","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h);
        x = (screen.width - w) / 2;
        y = (screen.height - h) / 2;
        newWin.resizeTo(w+10,h+83);
        newWin.moveTo(x,y);
        newWin.document.open();
        newWin.document.write("<HTML><HEAD><TITLE>"+TITLE+"</TITLE></HEAD>");
        newWin.document.write("<BODY BACKGROUND='../image/bg_01.gif' TOPMARGIN='0' LEFTMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0' BGCOLOR='#FFFFFF' TEXT='#666666' LINK='#0000ff' VLINK='#6633990' ALINK='#66CCFF'><LAYER TOP=0>");
        newWin.document.write("<CENTER>");
/*        newWin.document.write("<SPAN STYLE='font-size: 14pt;'><P>"+TITLE+"<P>");    */
        newWin.document.write("<IMG SRC='image/"+TAR+"'><P>");
        newWin.document.write("</CENTER></LAYER>");
        newWin.document.write("");
        newWin.document.close();
        newWin.focus();
    }
    else {
        if (TAR.indexOf("http://",0) == -1) {
            link = window.open("","html","toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
            x = (screen.width - w) / 2;
            y = (screen.height - h) / 2;
            link.location.href=""+TAR;
            link.focus();
            link.resizeTo(w+10,h+55);
            link.moveTo(x,y);
        }
        else {
            Olink = window.open("","http","toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
            x = (screen.width - w) / 2;
            y = (screen.height - h) / 2;
            Olink.location.href="log.html";
            Olink.focus();
            Olink.resizeTo(w+10,h+55);
            Olink.moveTo(x,y);
            Olink.location.href=""+TAR;
        };
    };
}
