function winopen(wname,url,w,h){
  win_op=window.open(url,wname,'scrollbars=no,width='+w+',height='+h+'');
  win_op.document.close();
}


theName = "conprouser=";
theCookie = document.cookie+";"
start = theCookie.indexOf(theName);
document.write('<table width="800" border=0 cellspacing=0 cellpadding=0 align="center" summary="タイトル">');
document.write('  <tr>');
document.write('    <td width="1" align="right">  </td>');
document.write('    <td align="center" bgcolor="#0000FF" height="13"><h1>歯科・歯医者情報　歯科医院検索・予約・歯科掲示板(無料相談) −ハーネット</h1></td>');
document.write('  </tr>');
document.write('</table>');
document.write('<table width=800 border=0 align="center" cellpadding=0 cellspacing=0 background="http://www.j-dol.com/images/top_bg2.gif">');
document.write('  <tr> ');
document.write('    <td width="3" height="40">&nbsp;</td>');
document.write('    <td width="217" valign="middle"><img src="http://www.j-dol.com/images/jdol_logo2.gif" border="0" alt="タイトル"></td>');
document.write('    <td colspan="4" valign="middle" class="txt3"><p>ハーネットでは、歯医者さん選び、歯の痛みを歯医者さんに相談、歯科についての知識を深める事が出来ます。</p></td>');
document.write('    <td colspan="2" align="center" valign="middle"><a href="http://www.j-dol.com/dr_pro/index.php" target="_blank"><img src="http://www.j-dol.com/images/btn_pro2.gif" width=120 height=25 border=0 alt="会員以外の歯科医院"></a></td>');
document.write('    <td colspan="2" align="center" valign="middle"><a href="http://www.j-dol.com/dr_pro/login_form.html" target="_blank"><img src="http://www.j-dol.com/images/btn_pro.gif" width=120 height=25 border=0 alt="会員歯科医院"></a></td>');
document.write('  </tr>');
document.write('  <tr>'); 
document.write('    <td height="40" colspan="2" align="center" valign="middle" class="txt2">全国歯科医院サイト'); 
document.write('      ハーネット</td>');
document.write('    <td width="62" valign="middle"><a href="http://www.j-dol.com/index.php" class="txt12">◆ＴＯＰへ</a></td>');
document.write('    <td width="123" valign="middle"><a href="http://www.j-dol.com/drnavi.php" class="txt12">◆全国歯科医院検索</a></td>');
document.write('    <td width="112" valign="middle"><a href="http://www.j-dol.com/mbbs/bbs/bbs.php" class="txt12">◆歯科相談掲示板</a></td>');
document.write('    <td colspan="2" valign="middle"><a href="http://www.j-dol.com/cons/cons/qa2/default.html" class="txt12">◆歯科Q&amp;A</a></td>');
document.write('    <td colspan="2" valign="middle"><a href="http://www.j-dol.com/cons/cons/pated2/default.html" class="txt12">◆いろいろな治療法</A></td>');
document.write('    <td width="97" valign="middle"><a href="http://www.j-dol.com/jobs/job.html" class="txt12">◆歯科リクルート</a></td>');
document.write('  </tr>');
document.write('  <tr> ');
document.write('    <td height="1"></td>');
document.write('    <td></td>');
document.write('    <td></td>');
document.write('    <td></td>');
document.write('    <td></td>');
document.write('    <td width="14"></td>');
document.write('    <td width="55"></td>');
document.write('    <td width="81"></td>');
document.write('    <td width="36"></td>');
document.write('    <td></td>');
document.write('  </tr>');
document.write('</table>');
document.write('<br>');
document.write('<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" class="txt">');
document.write('  <tr> ');
document.write('    <td width="155" valign="top">');


document.write('<table width="155" border="0" cellpadding="0" cellspacing="0">');
document.write('        <tr> ');
document.write('          <td colspan="2" valign="top"><a href="/drnavi.php"><img src="/images/search.gif" width=150 border=0 alt="歯医者検索ができます。"></a><br> ');
document.write('                          <br>');
document.write('             <a href="/dr_pro/register/entry.php"><img src="/images/entry.gif" width=150 border=0 alt="会員申込み（歯医者さんのみ）"></a><br> ');
document.write('             <table width="150" border=0 cellpadding=0 cellspacing=0 class="txt">');
document.write('                           <tr> ');
document.write('                             <td bgcolor="#666666"><table width="148" bgcolor="#FFFFFF" align="center" class="txt">');
document.write('                                 <tr> ');
document.write('                                   <td> <a href="/dr_pro/service.php">会員歯科サービス内容</a><br> <a href="/dr_pro/tour.php">会員歯科サイトツアー</a><br> ');
document.write('                                     <a href="/dr_pro/hptemp.php">会員歯科ＨＰサンプル</a><br> <a href="/dr_pro/paper.php">歯科論文</a> ');
document.write('                                   </td>');
document.write('                                 </tr>');
document.write('                               </table></td>');
document.write('                           </tr>');
document.write('                         </table>');
document.write('            <table width=150 border=0 cellpadding=0 cellspacing=0 bgcolor="#6699CC" class="txt4">');
document.write('              <tr> ');
document.write('                <td width="150"> <br>');
document.write('                  　人気ページ<br>');
document.write('                   　┣　<a href="/cons/cons/pated2/implant.html" class="mn2">インプラント</a><br>');
document.write('                   　┣　<a href="/cons/cons/pated2/cos.html" class="mn2">審美歯科</a><br>');
document.write('                   　┣　<a href="/cons/cons/pated2/perio.php" class="mn2">歯肉炎・歯周病</a><br>');
document.write('                   　┣　<a href="/cons/cons/articles/canker2.html" class="mn2">口内炎</a><br>');
document.write('                   　┣　<a href="/cons/cons/pated2/bridges.php" class="mn2">ブリッジ</a><br>');
document.write('                   　┣　<a href="/cons/cons/pated2/ortho.html" class="mn2">矯正</a><br>');
document.write('                   　┣　<a href="/cons/cons/pated2/05_alt_wt1.html" class="mn2">親知らず</a><br>');
document.write(' 				  　<a href="/cons/cons/pated2/default.html" class="mn2">いろいろな治療法</a><br>');
document.write('                   　<a href="/cons/cons/newtech2/default.html" class="mn2">最新歯科技術</a><br>');
document.write('                   　<a href="/cons/cons/cosdent2/default.html" class="mn2">グッドスマイル</a><br>');
document.write('                   　<a href="/cons/cons/symp2/default.html" class="mn2">症例と処置</a><br>');
document.write('                   　<a href="/cons/cons/articles/default.html" class="mn2">気になるトピック</a><br>');
document.write('                   　<a href="/cons/parents2.html" class="mn2">お子様のページ</a><br>');
document.write('                   　<a href="/cons/seniors.html" class="mn2">お年よりのページ</a><br>');
document.write('                  　<a href="/drnavi.php" class="mn2">歯科医院検索</a><br>');
document.write('                  　<a href="/mbbs/bbs/bbs.php" class="mn2">歯科相談掲示板</a><br>');
document.write('                  　<a href="/column/column.php" class="mn2">歯科コラム</a><br>');
document.write('                  　<a href="/jobs/job.html" class="mn2">歯科リクルート</a><br>');
document.write('                  　<a href="/cons/cons/qa2/default.html" class="mn2">歯科Q&amp;A</a><br>');
document.write('                  　<a href="/cons/cons/glossary2/definitions.html" class="mn2">歯科辞典</a><br>');
document.write('                  　<a href="http://www.j-dol.com/member/index.html" class="mn2">ハーネット通信</a><br>');
document.write('                  　<a href="/link/index.html" class="mn2">歯科リンク集</a><br>');
document.write('                  　<a href="/index.php" class="mn2">TOPページ</a> </td>');
document.write('              </tr>');
document.write('              <tr> ');
document.write('                <td><img src="/images/under_blue_bg.gif" id="left_cat3" alt="インプラントback"></td>');
document.write('              </tr>');


document.write('			  <tr bgcolor="#FFFFFF"> ');
document.write('                      <td valign="top"><table width="150" border="0" cellpadding="0" cellspacing="0" class="pr_banner" bgcolor="#FFFFFF">');
document.write('                          <br>');
document.write('                          <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.ydc-imp.jp/" target="_blank"><img src="/images/pr_banner/1.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('						  <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1017&url=http://www.j-dol.com/&hp=http://www.e-kondou.com/" target="_blank"><img src="/images/pr_banner/2.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('                          <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1014&url=http://www.j-dol.com/&hp=http://www.saitoshika.com/" target="_blank"><img src="/images/pr_banner/3.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('						  <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1008&url=http://www.j-dol.com/&hp=&hp=http://www.a-implant.tv/" target="_blank"><img src="/images/pr_banner/4.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr><tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1005&url=http://www.j-dol.com/&hp=http://www.ikashika.jp/" target="_blank"><img src="/images/pr_banner/5.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('						  <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.smile-shika.com/" target="_blank"><img src="/images/pr_banner/6.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr><tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1015&url=http://www.j-dol.com/&hp=http://www.taiyo-dental.com/" target="_blank"><img src="/images/pr_banner/7.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('						  <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1007&url=http://www.j-dol.com/&hp=http://www.tanaka.or.jp/" target="_blank"><img src="/images/pr_banner/8.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr><tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.wakabayashi-shika.com/" target="_blank"><img src="/images/pr_banner/9.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('						  <tr class="pr_baneer"> ');
document.write('                            <td height="45" valign="top"><a href="http://www.j-dol.com/ad/ad.php?dr_id=1019&url=http://www.j-dol.com/&hp=http://www.aaa-plus.jp/" target="_blank"><img src="/images/pr_banner/10.gif" alt="" border="0" width="150"></a></td>');
document.write('                          </tr>');
document.write('                        </table></td>');
document.write('                </tr>');


document.write('            </table></td>');
document.write('        </tr>');
document.write('      </table>');




document.write('      <br>');
//document.write('      	<table width=150 border=0 cellspacing=0 cellpadding=0 class="txt">');
//document.write('              <tr> ');
//document.write('                <td width="150" align="center"><img src="/images/perionet.jpg" width=150 height=20 alt="歯周病 ペリオネット"><br>');
//document.write('      		  <img src="/images/perionet_qr.jpg" alt="歯周病ペリオネットQR"><br>');
//document.write('                                    ↑QRコードからアクセス↑ <br>');
//document.write('                                    <a href="mailto:?subject=歯周病ペリオネット モバイル&body=http://www.perionet.com/mobile/">携帯にアドレスをメール</a><br>');
//document.write('                                    ↓URL↓<br>');
//document.write('      <a href="http://www.perionet.com/mobile/">http://www.perionet.com/mobile/</a></td>');
//document.write('              </tr>');
//document.write('              <tr> ');
//document.write('                <td height="78">&nbsp;</td>');
//document.write('              </tr>');
//document.write('            </table>');
//document.write('      <table width=\"150\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#cc9966\" class=\"txt\">');
//document.write('        <tr> ');
//document.write('          <td><img src=\"http://www.j-dol.com/images/dentalgoods.gif\" width=\"150\" height=\"20\"></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　</td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/coeyoji.html\" class=\"mn2\">デンタルピック</a></td>');
//document.write('        </tr>');
//document.write('        <tr>');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/doctorpick/default.html\" class=\"mn2\">ドクターピック</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/coetan.html\" class=\"mn2\">タンクリーナー</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/coeshikanburashi.html\" class=\"mn2\">歯間ブラシ</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/coeburasi.html\" class=\"mn2\">はぐきブラシ</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/halimeter.html\" class=\"mn2\">ハリメーターC21</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/catechin1.html\" class=\"mn2\">カテキンピュア</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/ionbrush.html\" class=\"mn2\">イオン歯ブラシ</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td>　<a href=\"http://www.j-dol.com/cons/goods/breathclub/default.html\" class=\"mn2\">薬用ブレスクラブ</a></td>');
//document.write('        </tr>');
//document.write('        <tr> ');
//document.write('          <td><img src=\"http://www.j-dol.com/images/under_brown_bg.gif\" width=\"150\" height=\"20\"></td>');
//document.write('        </tr>');
//document.write('      </table> ');

//以下はバナー用　今はエスケープする
//document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td height="12"></td></tr>');
//document.write('<tr><td width="150" height="28"><a href="http://www.moca-art.com/towel/"><img src="http://www.j-dol.com/mocatowel/towel_linkimage.gif" border="0"></a></td></tr></table>');
//document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td height="12"></td></tr>');
//document.write('<tr><td width="150" height="28"><a href="http://www.j-dol.com/sinsatsucard/index.html"><img src="http://www.j-dol.com/sinsatsucard/images/link.gif" border="0"></a></td></tr></table>');

document.write('      <br></td>');
document.write('    <td align="center" valign="top"> ');
document.write('      <div align="center">');

  // Cookie stuff first
  var ChocChip = document.cookie;
  function getCookie(name) { // use: getCookie("name");
    var index = ChocChip.indexOf(name + "=");
    if (index == -1) return null;
    index = ChocChip.indexOf("=", index) + 1;
    var endstr = ChocChip.indexOf(";", index);
    if (endstr == -1) endstr = ChocChip.length;
    return unescape(ChocChip.substring(index, endstr));
  }

  var today = new Date();
  var expiry = new Date (today.getTime() + 28 * 24 * 60 * 60 * 1000);
  var fontSize = getCookie("fontsize");
  if (fontSize == null) {
    fontSize="medium";
    document.cookie = "fontsize=medium; expires=" + expiry.toGMTString() + '; path=/';
  }

  // Platform
  var agt=navigator.userAgent.toLowerCase();
  var is_mac = (agt.indexOf("mac")!=-1);
  var is_win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
  
  // font-family
  if (is_win) {
  	fontfamily = 'ＭＳ Ｐゴシック';
  }else{
  	fontfamily = 'Osaka';
  }

  var fontString=" ";

  // Stylesheet variables
  var bodyS=0; var bodyLH=0;
  var sizeString="文字サイズ"; // d: small
  if (is_win) {
    bodyS += 1;
  }
  if (fontSize == "medium") {
    bodyS += 2; bodyLH += 3;
    sizeString="文字サイズ"; // d: medium
  }
  if (fontSize == "large") {
    bodyS += 4; bodyLH += 5;
    sizeString="文字サイズ"; // d: large
    if (is_win) bodyS -= 1;
  }
  if (fontSize == "xlarge") {
    bodyS += 6; bodyLH += 7;
    sizeString="文字サイズ"; // d: xlarge
    if (is_win) bodyS -= 1;
  }
  if (fontSize == "xxlarge") {
    bodyS += 8; bodyLH += 9;
    sizeString="文字サイズ"; // d: xxlarge
    if (is_win) bodyS -= 1;
  }

  // Stylesheet definitions
  var css="<STYLE> \n";
  css += ".txt  { font-family:"+ fontfamily +"; font-size:" + (10+bodyS) + "px; line-height:" + (13+bodyLH) + "px; font-style: normal; font-weight: normal} \n";
  css += "a:link.mn    { font-family: "+ fontfamily +"; font-size: " + (10+bodyS) + "px; font-style: normal; font-weight: normal; color: #000099; text-decoration: underline } \n";
  css += "a:visited.mn { font-family: "+ fontfamily +"; font-size: " + (10+bodyS) + "px; font-style: normal; font-weight: normal; color: #000099; text-decoration: underline } \n";
  css += "a:hover.mn   { font-family: "+ fontfamily +"; font-size: " + (10+bodyS) + "px; font-style: normal; font-weight: normal; color: #FF3300; text-decoration: underline } \n";
  css += "a:active.mn  { font-family: "+ fontfamily +"; font-size: " + (10+bodyS) + "px; font-style: normal; font-weight: normal; color: #FF3300; text-decoration: underline } \n";
  css += "</STYLE> \n";
  document.write(css);

  // font change functions
  function fontUp() {
    if(getCookie("fontsize") == "small")
      document.cookie = "fontsize=medium; expires=" + expiry.toGMTString() + '; path=/';
    else if(getCookie("fontsize") == "medium")
      document.cookie = "fontsize=large; expires=" + expiry.toGMTString() + '; path=/';
    else if(getCookie("fontsize") == "large")
      document.cookie = "fontsize=xlarge; expires=" + expiry.toGMTString() + '; path=/';
    else if(getCookie("fontsize") == "xlarge")
      document.cookie = "fontsize=xxlarge; expires=" + expiry.toGMTString() + '; path=/';

    history.go(0);
  }

  function fontDown() {
    if(getCookie("fontsize") == "xxlarge")
      document.cookie = "fontsize=xlarge; expires=" + expiry.toGMTString() + '; path=/';
    else if(getCookie("fontsize") == "xlarge")
      document.cookie = "fontsize=large; expires=" + expiry.toGMTString() + '; path=/';
    else if(getCookie("fontsize") == "large")
      document.cookie = "fontsize=medium; expires=" + expiry.toGMTString() + '; path=/';
    else if(getCookie("fontsize") == "medium")
      document.cookie = "fontsize=small; expires=" + expiry.toGMTString() + '; path=/';
    history.go(0);
  }

  btndnoff = new Image(11,11); btndnoff.src = "/fontsize/down_off.gif";
  btndnon  = new Image(11,11); btndnon.src  = "/fontsize/down_on.gif";
  btnupoff = new Image(11,11); btnupoff.src = "/fontsize/up_off.gif";
  btnupon  = new Image(11,11); btnupon.src  = "/fontsize/up_on.gif";

  function imgSwap(fname, iname) {
    document.images[iname].src = fname.src;
  }

  function fontButtons() {
    var sop = fontString + '&nbsp;';
    if(getCookie("fontsize") != "small") {
      sop += '<A HREF="javaScript:fontDown()"';
      sop += ' ONMOUSEOVER="imgSwap(btndnon, \'btndown\')" ONMOUSEOUT="imgSwap(btndnoff, \'btndown\')">';
    }
    sop += '<IMG SRC="' + btndnoff.src + '" WIDTH="11" HEIGHT="11" BORDER="0" ALIGN="ABSBOTTOM" NAME="btndown">';
    sop += '</A>';
    sop += '&nbsp;<font size=2 color=white><b>' + sizeString + '</b></font>&nbsp;';
    if(getCookie("fontsize") != "xxlarge") {
      sop += '<A HREF="javaScript:fontUp()"';
      sop += ' ONMOUSEOVER="imgSwap(btnupon, \'btnup\')" ONMOUSEOUT="imgSwap(btnupoff, \'btnup\')">';
    }
    sop += '<IMG SRC="' + btnupoff.src + '" WIDTH="11" HEIGHT="11" BORDER="0" ALIGN="ABSBOTTOM" NAME="btnup">';
    sop += '</A>';
    document.write(sop);
  }


