<!--

  /* 日付を取得 */
  function getDateString(iDaysBefore, strDelimita) {
    dtToday = new Date();
    iTodaysYear = dtToday.getYear();
    iTodaysMonth = dtToday.getMonth();
    iTodaysDay = dtToday.getDate();
    dtDaysBefore = new Date(iTodaysYear, iTodaysMonth, iTodaysDay - iDaysBefore);
    if ((dtDaysBefore.getYear() - 2000) < 10) {
      strYear = "0" + (dtDaysBefore.getYear() - 2000);
    } else {
      strYear = (dtDaysBefore.getYear() - 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=\"500\" BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\" BORDERCOLOR=\"#FFFFFF\">");
    document.write("<TR>");
    document.write("<TD BGCOLOR=\"ffffff\" ALIGN=\"center\">");
    document.write("<FONT COLOR=\"ffffff\" STYLE=\"font-size:12px;\">&nbsp;</FONT>");
    document.write("<\/TD>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\" colspan=\"2\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">7日前から<BR>今日まで</FONT>");
    document.write("<\/TD>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\" colspan=\"2\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">14日前から<BR>8日前まで</FONT>");
    document.write("<\/TD>");
    document.write("<TD BGCOLOR=\"FFCC00\" ALIGN=\"center\" colspan=\"2\">");
    document.write("<FONT COLOR=\"880000\" STYLE=\"font-size:12px;\">21日前から<BR>15日前まで</FONT>");
    document.write("<\/TD>");
    document.write("<\/TR>");

    document.write("<TD ROWSPAN=\"5\" WIDTH=\"60\" BGCOLOR=\"FFCC00\" ALIGN=\"center\" height=\"130\">");
    document.write(" <FONT STYLE=\"font-size:12px;\">土地</FONT>");
    document.write("<\/TD>");

    /* 土地 */
    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"EFEFEF\" ALIGN=\"center\" width=\"75\">");
      document.write("<A STYLE=\"text-decoration:underline;color:#cc0000;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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*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&bukken_category=土地\');document.charset='UTF-8';\">京王線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=103945,104040,104045,104050,104055,104060,104065,104070&bukken_category=土地\');document.charset='UTF-8';\">京王<br>相模原線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=103040,103045,103050&bukken_category=土地\');document.charset='UTF-8';\">小田急線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"ffffff\" ALIGN=\"center\">");
      document.write("<FONT COLOR=\"ffffff\" STYLE=\"font-size:12px;\">&nbsp;</FONT>");
      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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=104210,104215,104220&bukken_category=土地\');document.charset='UTF-8';\">中央線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");
    
    
    document.write("<TR>");
    document.write("<TD BGCOLOR=\"ffffff\" ALIGN=\"center\" colspan=\"7\">");
    document.write("<HR STYLE=\"color:#ff0000;height:1px;\">");
    document.write("<\/TD>");
    document.write("<\/TR>");
    

    document.write("<TD ROWSPAN=\"5\" WIDTH=\"60\" BGCOLOR=\"FFCC00\" ALIGN=\"center\" height=\"130\">");
    document.write(" <FONT STYLE=\"font-size:12px;\">戸建</FONT>");
    document.write("<\/TD>");

    /* 戸建 */
    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*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&bukken_category=戸建\');document.charset='UTF-8';\">京王線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=103945,104040,104045,104050,104055,104060,104065,104070&bukken_category=戸建\');document.charset='UTF-8';\">京王<br>相模原線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=103040,103045,103050&bukken_category=戸建\');document.charset='UTF-8';\">小田急線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"ffffff\" ALIGN=\"center\">");
      document.write("<FONT COLOR=\"ffffff\" STYLE=\"font-size:12px;\">&nbsp;</FONT>");
      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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=104210,104215,104220&bukken_category=戸建\');document.charset='UTF-8';\">中央線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    document.write("<TD BGCOLOR=\"ffffff\" ALIGN=\"center\" colspan=\"7\">");
    document.write("<HR STYLE=\"color:#ff0000;height:1px;\">");
    document.write("<\/TD>");
    document.write("<\/TR>");


    document.write("<TD ROWSPAN=\"5\" WIDTH=\"60\" BGCOLOR=\"FFCC00\" ALIGN=\"center\" height=\"130\">");
    document.write(" <FONT STYLE=\"font-size:12px;\">マンション</FONT>");
    document.write("<\/TD>");

    /* マンション */
    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*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&bukken_category=マンション\');document.charset='UTF-8';\">京王線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=103945,104040,104045,104050,104055,104060,104065,104070&bukken_category=マンション\');document.charset='UTF-8';\">京王<br>相模原線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      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.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("<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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=103040,103045,103050&bukken_category=マンション\');document.charset='UTF-8';\">小田急線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");

    document.write("<TR>");
    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {
      document.write("<TD BGCOLOR=\"ffffff\" ALIGN=\"center\">");
      document.write("<FONT COLOR=\"ffffff\" STYLE=\"font-size:12px;\">&nbsp;</FONT>");
      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.peculon.com/c21asahi/00/search_all_open.asp?date_from=" + getDateString(7*iDaysBefore + 6, "") + "&date_to=" + getDateString(7*iDaysBefore, "") + "&kotu_all=104210,104215,104220&bukken_category=マンション\');document.charset='UTF-8';\">中央線<\/A>");
      document.write("<\/TD>");
    }
    document.write("<\/TR>");
    
    

    document.write("<TD ALIGN=\"RIGHT\" COLSPAN=\"7\" STYLE=\"font-size:12px;\">");
    document.write("もっと詳しく&nbsp;<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.peculon.com/c21asahi/00/search_all_open.asp?bukken_category=マンション\');document.charset='UTF-8';\">マンション<\/A>&nbsp;<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.peculon.com/c21asahi/00/search_all_open.asp?bukken_category=戸建\');document.charset='UTF-8';\">一戸建て<\/A>&nbsp;<A STYLE=\"text-decoration:underline;color:#cc0000;font-size:12px;\" style=\"cursor: pointer;\" onClick=\"document.charset='shift_jis';window.open('http://www81.peculon.com/c21asahi/00/search_all_open.asp?bukken_category=土地\');document.charset='UTF-8';\">土地<\/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;
-->


    
