<!--

  /* 日付を取得 */
  function getDateString(iDaysBefore, strDelimita) {
    dtToday = new Date();
    iTodaysYear = dtToday.getFullYear();
    iTodaysMonth = dtToday.getMonth();
    iTodaysDay = dtToday.getDate();
    dtDaysBefore = new Date(iTodaysYear, iTodaysMonth, iTodaysDay - iDaysBefore);
    if ((dtDaysBefore.getFullYear() - 2000) < 10) {
      strYear = "0" + (dtDaysBefore.getFullYear() - 2000);
    } else {
      strYear = (dtDaysBefore.getFullYear() - 2000);
    }
    if ((dtDaysBefore.getMonth() + 1) < 10) {
      strMonth = "0" + (dtDaysBefore.getMonth() + 1);
    } else {
      strMonth = (dtDaysBefore.getMonth() + 1);
    }
    if (dtDaysBefore.getDate() < 10) {
      strDay = "0" + dtDaysBefore.getDate();
    } else {
      strDay = dtDaysBefore.getDate();
    }
    strResult = strYear + strDelimita + strMonth + strDelimita + strDay;
    return strResult;
  }

  /* 新着物件 */
  function ListupTopicsForSale() {
    document.write("<TABLE WIDTH=\"250\" BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\" BORDERCOLOR=\"#FFFFFF\">");
    document.write("<TR>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">&nbsp;</FONT>");
    document.write("<\/TD>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">7日前から<BR>今日まで</FONT>");
    document.write("<\/TD>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">14日前から<BR>8日前まで</FONT>");
    document.write("<\/TD>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">21日前から<BR>15日前まで</FONT>");
    document.write("<\/TD>");
    document.write("<\/TR>");


    document.write("<TD ROWSPAN=\"4\" WIDTH=\"5\" BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
    document.write(" <FONT STYLE=\"font-size:12px;\">調布市</FONT>");
    document.write("<\/TD>");

    /* マンション */
    document.write("<TR>");
    strBukkenCategory = "マンション"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write(" <FONT STYLE=\"font-size:12px;\"><A TARGET=\"_new\" HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_mansionbukkenkiso_jusyo1=調布市&bukken_category=" + strBukkenCategory + "\">マンション<\/A></FONT>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    /* 一戸建て */
    document.write("<TR>");
    strBukkenCategory = "戸建"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write(" <FONT STYLE=\"font-size:12px;\"><A TARGET=\"_new\" HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_kodatebukkenkiso_jusyo1=調布市&bukken_category=" + strBukkenCategory + "\">一戸建て<\/A></FONT>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    /* 土地 */
    document.write("<TR>");
    strBukkenCategory = "土地"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write(" <FONT STYLE=\"font-size:12px;\"><A TARGET=\"_new\" HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_totibukkenkiso_jusyo1=調布市&bukken_category=" + strBukkenCategory + "\">土地<\/A></FONT>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TD ROWSPAN=\"4\" WIDTH=\"5\" BGCOLOR=\"DDDDDD\" ALIGN=\"center\">");
    document.write(" <FONT STYLE=\"font-size:12px;\">府中市</FONT>");
    document.write("<\/TD>");

    /* マンション */
    document.write("<TR>");
    strBukkenCategory = "マンション"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"DDDDDD\" ALIGN=\"center\">");
      document.write(" <FONT STYLE=\"font-size:12px;\"><A TARGET=\"_new\" HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_mansionbukkenkiso_jusyo1=府中市&bukken_category=" + strBukkenCategory + "\">マンション<\/A></FONT>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    /* 一戸建て */
    document.write("<TR>");
    strBukkenCategory = "戸建"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"DDDDDD\" ALIGN=\"center\">");
      document.write(" <FONT STYLE=\"font-size:12px;\"><A TARGET=\"_new\" HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_kodatebukkenkiso_jusyo1=府中市&bukken_category=" + strBukkenCategory + "\">一戸建て<\/A></FONT>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    /* 土地 */
    document.write("<TR>");
    strBukkenCategory = "土地"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"DDDDDD\" ALIGN=\"center\">");
      document.write(" <FONT STYLE=\"font-size:12px;\"><A TARGET=\"_new\" HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_totibukkenkiso_jusyo1=府中市&bukken_category=" + strBukkenCategory + "\">土地<\/A></FONT>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TD ROWSPAN=\"4\" WIDTH=\"5\" BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
    document.write(" <FONT STYLE=\"font-size:12px;\">三鷹市</FONT>");
    document.write("<\/TD>");

    /* マンション */
    document.write("<TR>");
    strBukkenCategory = "マンション"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#0000ff;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_mansionbukkenkiso_jusyo1=三鷹市&bukken_category=マンション');document.charset='UTF-8';\">マンション<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    /* 一戸建て */
    document.write("<TR>");
    strBukkenCategory = "戸建"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#0000ff;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_kodatebukkenkiso_jusyo1=三鷹市&bukken_category=戸建');document.charset='UTF-8';\">一戸建て<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    /* 土地 */
    document.write("<TR>");
    strBukkenCategory = "土地"
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#0000ff;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&sk_totibukkenkiso_jusyo1=三鷹市&bukken_category=土地');document.charset='UTF-8';\">土地<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TD ALIGN=\"RIGHT\" COLSPAN=\"4\" STYLE=\"font-size:12px;\">");
    document.write("もっと詳しく&nbsp;<A HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?bukken_category=マンション\" target=\"_blank\">マンション<\/A>&nbsp;<A HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?bukken_category=戸建\" target=\"_blank\">一戸建て<\/A>&nbsp;<A HREF=\"http://www81.peculon.com/c21asahi/00/search_all_open.asp?bukken_category=土地\" target=\"_blank\">土地<\/A>");
    document.write("<\/TD>");
    document.write("<\/TR>");
    document.write("<\/TABLE>");
  }



  /* 新着物件 for Rent */
  function ListupTopicsForRent(){
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
    
      document.write("<TABLE WIDTH=\"500\" BORDER=\"0\" CELLPADDING=\"3\" CELLSPACING=\"2\" STYLE=\"font-size:12px;\">");

      /* 日付表示部 */
      document.write("<TR>");
      document.write("<TD HEIGHT=\"70px\" BGCOLOR=\"FFCC00\" ALIGN=\"center\" rowspan=\"3\">");
      document.write("<FONT COLOR=\"880000\"><SPAN STYLE=\"font-size:12px;\">" + getDateString(iDaysBefore, "/") + "<\/SPAN></FONT>");
      document.write("<\/TD>");
      /* ここまで */


      /* 調布市 */
      document.write("<TD BGCOLOR=\"EFEFEF\" WIDTH=\"100px\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=調布市\');document.charset='UTF-8';\">調布市<\/A>");
      document.write("<\/TD>");


      /* 府中市 */
      document.write("<TD BGCOLOR=\"EFEFEF\" WIDTH=\"100px\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=府中市\');document.charset='UTF-8';\">府中市<\/A>");
      document.write("<\/TD>");


      /* 三鷹市 */
      document.write("<TD BGCOLOR=\"EFEFEF\" WIDTH=\"100px\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=三鷹市\');document.charset='UTF-8';\">三鷹市<\/A>");
      document.write("<\/TD>");
      document.write("<\/TR>");

      /* 新築 */
      document.write("<TR>");
      document.write("<TD BGCOLOR=\"FFFFFF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_tikunen_year_ago=1\');document.charset='UTF-8';\">新築(築1年内)<\/A>");
      document.write("<\/TD>");


      /* 女性向け */
      document.write("<TD BGCOLOR=\"FFFFFF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_juko_kai=on&sk_setubi_id_juko_simple=123&sk_tatemono_tikunen_year_ago=5\');document.charset='UTF-8';\">女性向け<\/A>");
      document.write("<\/TD>");


      /* ペット可 */
      document.write("<TD BGCOLOR=\"FFFFFF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tintaijoken_joken=ペット:可\');document.charset='UTF-8';\">ペット可<\/A>");
      document.write("<\/TD>");
      document.write("<\/TR>");


      /* 沿線(京王線) */
      document.write("<TR>");
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&kotu_all=103885,103890,103895,103900,103905,103910,103915,103920,103925,103930,103935,103940,103945,103950,103955,103960,103965,103970,103980,103985,103995,104000,140005\');document.charset='UTF-8';\">京王線<\/A>");
      document.write("<\/TD>");


      /* 沿線(京王相模原線) */
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&kotu_all=103945,104040,104045,104050,104055,104060,104065,104070\');document.charset='UTF-8';\">京王相模原線<\/A>");
      document.write("<\/TD>");


      /* 沿線(小田急線) */
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&kotu_all=103040,103045,103050\');document.charset='UTF-8';\">小田急線<\/A>");
      document.write("<\/TD>");


      /* 沿線(中央線) */
      document.write("<TD BGCOLOR=\"EFEFEF\" WIDTH=\"100px\" ALIGN=\"center\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.convon.com/c21asahi/00/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&kotu_all=104210,104215,104220\');document.charset='UTF-8';\">中央線<\/A>");
      document.write("<\/TD>");
      document.write("<\/TR>");
      
      document.write("<TR>");
      document.write("<TD COLSPAN=\"6\">");
      document.write("<HR STYLE=\"HEIGHT:1px;color:#cc0000;\">");
      document.write("<\/TD>");
      document.write("<\/TR>");
      
      document.write("<\/TABLE>");
   }

     document.write("<TABLE WIDTH=\"500\" BORDER=\"0\" CELLPADDING=\"3\" CELLSPACING=\"2\" STYLE=\"font-size:12px;\">");
     document.write("<TR>");
     document.write("<TD ALIGN=\"RIGHT\" COLSPAN=\"5\" STYLE=\"font-size:12px;\">");
     document.write("<A href=\"http://www81.convon.com/c21asahi/00/search_all_open.asp\" target=\"_blank\" STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\">もっと詳しい条件で検索する<\/A>");
     document.write("<\/TD>");
     document.write("<\/TR>");
     document.write("<\/TABLE>");
  }


// ツリーメニューJavaScript
chMenu=0;
dimg=0;
function subopen(tName,iName){
  img = document.images[iName];
  tMenu=(document.all)?document.all(tName).style:document.getElementById(tName).style;
  
  // 0以外のとき
  if(chMenu)
  {
    chMenu.display="none";
    dimg.src = "img/search_up.gif";
  }
  
  if(chMenu==tMenu)
  {
    chMenu=0;
    dimg=0;
    img.src = "img/search_up.gif";
  }
  else
  {
    chMenu=tMenu;
    dimg=img;
    tMenu.display="block";
    img.src = "img/search_down.gif";
  }
}


/*
変更の際には、画像のパスの変更とfunction subopen()上の2つの変数のコピーを忘れずに。
この2つの変数がないとうまく動きません。
そして、1つだけ最初表示させておく、というものに対応できてません…
最初から全て隠れてますが、それでもいい場合にはコピペして下さい。
*/


/* ポップアップ */

function externalLinks() {
  if (!document.getElementsByTagName) return;
  var anchors = document.getElementsByTagName("a");
  for (var i=0; i<anchors.length; i++) {
    var anchor = anchors[i];
    if (anchor.getAttribute("href") &&
    anchor.getAttribute("rel") == "external")
    anchor.target = "_blank";
  }
}
window.onload=externalLinks;
-->


    
