<!--  /* 日付を取得 */  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 ListupTopicsForRent() {    var strStyle = "search_head";    document.write("<TABLE WIDTH=\"270\" BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\" SUMMARY=\"新着物件\" BORDERCOLOR=\"#FFFFFF\" ALIGN=\"center\" STYLE=\"margin-bottom:5px;\">");    document.write("<TR>");    document.write("<TD CLASS=" + strStyle + ">");    document.write("本日<BR><SPAN STYLE=\"font-size:10px;\">(" + getDateString(0, "/") + ")<\/SPAN>");    document.write("<\/TD>");    document.write("<TD CLASS=" + strStyle + ">");    document.write("昨日<BR><SPAN STYLE=\"font-size:10px;\">(" + getDateString(1, "/") + ")<\/SPAN>");    document.write("<\/TD>");    document.write("<TD CLASS=" + strStyle + ">");    document.write("一昨日<BR><SPAN STYLE=\"font-size:10px;\">(" + getDateString(2, "/") + ")<\/SPAN>");    document.write("<\/TD>");    document.write("<\/TR>");    /* 豊島区 */    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=豊島区\">豊島区<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");    /* 練馬区 */    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=練馬区\">練馬区<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");    /* 文京区 */    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=文京区\">文京区<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");    /* 板橋区 */    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=板橋区\">板橋区<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");    /* 北区    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=北区\">北区<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");     */    /* 新宿区     document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tatemono_jusyo1=新宿区\">新宿区<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");    */    /* Pet    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_tintaijoken_joken=ペット:可\">Pet<\/A>");      document.write("<\/TD>");    }    document.write("<\/TR>");

    女性向    document.write("<TR>");    for (iDaysBefore=0; iDaysBefore < 3; iDaysBefore++) {      if (iDaysBefore%2 == 0) {        strStyle = "search_td_color";      } else {        strStyle = "search_td_white";      }      document.write("<TD CLASS=" + strStyle + ">");      document.write("<A TARGET=\"top02.html\" HREF=\"http://www81.convon.com/argus/head/search_all_open.asp?date=" + getDateString(iDaysBefore, "") + "&sk_juko_kai=on&sk_setubi_id_juko_simple=123&sk_tatemono_tikunen_year_ago=5\">女性向け<\/A>");      document.write("<\/TD>");    } */
    document.write("<\/TR>");/*
    document.write("<TR>");    document.write("<TD ALIGN=\"RIGHT\" COLSPAN=\"4\" STYLE=\"font-size:12px;\">");    document.write("<A href=\"http://www81.convon.com/argus/head/search_all_open.asp\" TARGET=\"_blank\">もっと詳しい条件で検索する<\/A>");    document.write("<\/TD>");    document.write("<\/TR>"); 
*/    document.write("<\/TABLE>");  }  function openSearchResultWindow(strSearchURL) {    var kotu = document.joken.kotu_all.value;    var tinryo_min = document.joken.sk_tintaijoken_tinryo_min.value;    var tinryo_max = document.joken.sk_tintaijoken_tinryo_max.value;    var delimita = "";    var hikisu = "";    if (kotu != "") {      hikisu = hikisu + delimita + "kotu_all=" + kotu;      delimita = "&";    }    if (tinryo_min != "") {      hikisu = hikisu + delimita + "sk_tintaijoken_tinryo_min=" + tinryo_min;      delimita = "&";    }    if (tinryo_max != "") {      hikisu = hikisu + delimita + "sk_tintaijoken_tinryo_max=" + tinryo_max;      delimita = "&";    }    if (hikisu != "") {      hikisu = hikisu + delimita + "action=検索";      delimita = "&";      var wndNew = window.open(strSearchURL + "?" + hikisu, "sakurajosui_rent_window");    } else {      var wndNew = window.open(strSearchURL, "sakurajosui_rent_window");    }  }  function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  }

  function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
      var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
      if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  }

  function MM_findObj(n, d) { //v4.0
    var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
      d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && document.getElementById) x=document.getElementById(n); return x;
  }

  function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
     if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  }
  function BukkenCount() {    dtToday = new Date();
    iTodaysYear = dtToday.getYear();
    iTodaysMonth = dtToday.getMonth();
    iTodaysDay = dtToday.getDate();
    iCountNumber = (23 * iTodaysYear) + ((iTodaysDay + iTodaysMonth + 15) * (iTodaysMonth + iTodaysDay + 15));    document.write("&nbsp;賃貸不動産物件掲載数:" + iCountNumber + "件");
  }
//-->
