function drawHeader(page){
    document.write("<div id=\"my_header_1\" style=\"margin-bottom:0px;\">");
    document.write("    <TABLE width=\"100%\" CELLSPACING=\"0\" CELLPADDING=\"0\" border=\"0\" class=\"head_title\">");
    document.write("        <TR>");
    document.write("           <TD width=\"600\"><A href=\"/index.htm\"><IMG src=\"/img/header_left.gif\" alt=\"越知町\" title=\"越知町\" border=\"0\"></A></TD>");
    document.write("           <TD height=\"105\" style=\"background-image:url(/img/header_bg.gif);background-repeat:repeat-x\">&nbsp;</TD>");
    document.write("           <TD nowrap width=\"297\" style=\"background-image:url(/img/header_right.gif);background-repeat:repeat-x\">");
    document.write("               <div style=\"padding:10px;\" id=\"h_navi\">");
    //document.write("               <div align=\"right\" id=\"moji_size\"><IMG src=\"/img/ico_search.gif\" alt=\"\"><INPUT type=\"text\" size=\"15\"><INPUT type=\"button\" value=\"検索\"></div><BR>");
    document.write("               <div align=\"right\" id=\"moji_size\">");
//ここに

    document.write("<!-- SiteSearch Google -->");
    document.write("<div id=\"cse-search-form\" style=\"width: 100%;\">Loading</div>");
    //document.write("<script src=\"http://www.google.com/jsapi\" type=\"text/javascript\"></script>");
    document.write("<script type=\"text/javascript\"> ");
    document.write("  google.load('search', '1', {language : 'ja'});");
    document.write("  google.setOnLoadCallback(function() {");
    document.write("    var customSearchControl = new google.search.CustomSearchControl('000204516473143006002:8x8sv9ccdhe');");
    document.write("    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);");
    document.write("    var options = new google.search.DrawOptions();");
    document.write("    options.enableSearchboxOnly(\"http://google.com/cse?cx=000204516473143006002:8x8sv9ccdhe\");");    
    document.write("    customSearchControl.draw('cse-search-form', options);");
    document.write("  }, true);");
    document.write("</script>");
    document.write("<link rel=\"stylesheet\" href=\"http://www.google.com/cse/style/look/default.css\" type=\"text/css\" />");
    document.write("<!-- SiteSearch Google -->");

    document.write("               <div align=\"right\" id=\"moji_size\">");
    document.write("                <A href=\"/sitemap.htm\"><IMG src=\"/img/ico_sitemap.gif\" title=\"\" alt=\"\" border=\"0\">サイトマップ</a>　");
    document.write("                <A href=\"#\" onclick=\"fsc('larger');return false;\" onkeypress=\"fsc('larger');return false;\"><IMG src=\"/img/btn_big.gif\" title=\"拡大する\" alt=\"拡大する\" border=\"0\"></A>");
    document.write("                <A href=\"#\" onclick=\"fsc('default');return false;\" onkeypress=\"fsc('default');return false;\"><IMG src=\"/img/btn_small.gif\" title=\"元に戻す\" alt=\"元に戻す\" border=\"0\"></A></div>");
    //document.write("                <A href=\"#\" onclick=\"fsc('larger');return false;\" onkeypress=\"fsc('larger');return false;\"><IMG src=\"/img/ico_big.gif\" title=\"拡大する\" alt=\"拡大する\" border=\"0\">文字を拡大</A>　");
    //document.write("                <A href=\"#\" onclick=\"fsc('default');return false;\" onkeypress=\"fsc('default');return false;\"><IMG src=\"/img/ico_small.gif\" title=\"元に戻す\" alt=\"元に戻す\" border=\"0\">文字を縮小</A></div>");
    document.write("        </TD>");
    document.write("       </TR>");
    document.write("    </TABLE>");
    document.write("</div>");
    if (page != "top"){
        document.write("<TABLE BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"0\" class=\"head_title\">");
        document.write("    <TR>");
        document.write("        <TD width=\"10\">&nbsp;</TD>");
        document.write("        <TD><A href=\"/index.htm\"><IMG src=\"/img/btn_menu_home.gif\" alt=\"ホーム\" title=\"ホーム\" border=\"0\"></A></TD>");
        //document.write("        <TD><A href=\"/life/index.htm\"><IMG src=\"/img/btn_menu_kurasi.gif\" alt=\"くらしの情報\" title=\"くらしの情報\" border=\"0\"></A></TD>");
        //document.write("        <TD><A href=\"/kankou/index.htm\"><IMG src=\"/img/btn_menu_kankou.gif\" alt=\"観光情報\" title=\"観光情報\" border=\"0\"></A></TD>");
        document.write("    </TR>");
        document.write("</TABLE>");
    }
}

function drawFooter(page){
    document.write("<p>");
    document.write("【越知町役場】<br>");
    document.write("〒 781-1301 高知県高岡郡越知町越知甲1970　　");
    document.write("TEL：0889-26-1111　　");
    document.write("FAX：0889-26-0600 ");
    document.write("</p>");
    if (page=="top"){
        document.write("<A href=\"/yakuba/index.htm#form\">[お問い合わせ]</A>　　");
        document.write("<A href=\"map.htm\">[地図]</A>");
    }

}
