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.01
  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 && d.getElementById) x=d.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 tabs(tb2){
	if (tb2=="block1"){
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs(\'block1\');"><img src="/images/common/btn_mp01_on.gif" name="tt1" alt="地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt2\',\'\',\'/images/common/btn_mp02_ac.gif\',1)"><img src="/images/common/btn_mp02.gif" name="tt2" alt="沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display01").style.display="";
	document.getElementById("display02").style.display="none";
	}else{
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt1\',\'\',\'/images/common/btn_mp01_ac.gif\',1)"><img src="/images/common/btn_mp01.gif" name="tt1" alt="地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs(\'block2\');"><img src="/images/common/btn_mp02_on.gif" name="tt2" alt="沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display02").style.display="";
	document.getElementById("display01").style.display="none";
	}
}

function tabs02(tb2){
	if (tb2=="block1"){
	document.getElementById("tbk").innerHTML ='<table width="292" cellpadding="0" cellspacing="0" border="0"><tr><td width="140"><a href="javascript:tabs02(\'block1\');"><img src="/images/detail/btn_dm_stb01_on.gif" alt="地図" name="Image54" width="140" height="25" border="0" id="Image54" /></a></td><td width="2" bgcolor="#CCCCCC"><img src="/images/common/spacer.gif" width="2" height="1" alt="" border="0" /></td><td width="150"><a href="javascript:tabs02(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image55\',\'\',\'/images/detail/btn_dm_stb02_ac.gif\',1)"><img src="/images/detail/btn_dm_stb02.jpg" alt="航空写真" name="Image55" width="150" height="25" border="0" id="Image55" /></a></td></tr></table>';
	document.getElementById("display01").style.display="";
	document.getElementById("display02").style.display="none";
	}else{
	document.getElementById("tbk").innerHTML ='<table width="292" cellpadding="0" cellspacing="0" border="0"><tr><td width="140"><a href="javascript:tabs02(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image54\',\'\',\'/images/detail/btn_dm_stb01_ac.gif\',1)"><img src="/images/detail/btn_dm_stb01.jpg" alt="地図" name="Image54" width="140" height="25" border="0" id="Image54" /></a></td><td width="2" bgcolor="#CCCCCC"><img src="/images/common/spacer.gif" width="2" height="1" alt="" border="0" /></td><td width="150"><a href="javascript:tabs02(\'block2\');"><img src="/images/detail/btn_dm_stb02_on.gif" alt="航空写真" name="Image55" width="150" height="25" border="0" id="Image55" /></a></td></tr></table>';
	document.getElementById("display01").style.display="none";
	document.getElementById("display02").style.display="";
	}
}

function tabs03(a){
		if(a=="size1"){
			document.getElementById("szs").innerHTML ='<table width="420" cellpadding="0" cellspacing="0" border="0"><tr align="center"><td width="80">縮尺</td><td width="80"><strong>1/1500</strong></td><td width="80"><a href="javascript:tabs03(\'size2\');">1/3000</a></td><td width="80"><a href="javascript:tabs03(\'size3\');">1/8000</a></td><td width="100"><a href="javascript:tabs03(\'size4\');">1/21000</a></td></tr></table>';
		}
		if(a=="size2"){
			document.getElementById("szs").innerHTML ='<table width="420" cellpadding="0" cellspacing="0" border="0"><tr align="center"><td width="80">縮尺</td><td width="80"><a href="javascript:tabs03(\'size1\');">1/1500</a></td><td width="80"><strong>1/3000</strong></td><td width="80"><a href="javascript:tabs03(\'size3\');">1/8000</a></td><td width="100"><a href="javascript:tabs03(\'size4\');">1/21000</a></td></tr></table>';
		}
		if(a=="size3"){
			document.getElementById("szs").innerHTML ='<table width="420" cellpadding="0" cellspacing="0" border="0"><tr align="center"><td width="80">縮尺</td><td width="80"><a href="javascript:tabs03(\'size1\');">1/1500</a></td><td width="80"><a href="javascript:tabs03(\'size2\');">1/3000</a></td><td width="80"><strong>1/8000</strong></td><td width="100"><a href="javascript:tabs03(\'size4\');">1/21000</a></td></tr></table>';
		}
		if(a=="size4"){
			document.getElementById("szs").innerHTML ='<table width="420" cellpadding="0" cellspacing="0" border="0"><tr align="center"><td width="80">縮尺</td><td width="80"><a href="javascript:tabs03(\'size1\');">1/1500</a></td><td width="80"><a href="javascript:tabs03(\'size2\');">1/3000</a></td><td width="80"><a href="javascript:tabs03(\'size3\');">1/8000</a></td><td width="100"><strong>1/21000</strong></td></tr></table>';
		}
}

function disarr(num){
	var i
	for(i=1;i<11;i++){
		if (i==num){
			document.getElementById("arr"+num).style.display="";
			document.getElementById("ph"+num).style.border = "1px solid #ff0000";
			
			document.getElementById("ph"+num).onmouseover = function() {
				this.style.border = "1px solid #ff0000"
			}
			document.getElementById("ph"+num).onmouseout = function() {
				this.style.border = "1px solid #ff0000"
			}
		}else{
			document.getElementById("arr"+i).style.display="none";
			document.getElementById("ph"+i).style.border = "1px solid #9D9D9D";
			
			document.getElementById("ph"+i).onmouseover = function() {
				this.style.border = "1px solid #ff0000"
			}
			document.getElementById("ph"+i).onmouseout = function() {
				this.style.border = "1px solid #9D9D9D"
			}
		}
	}
}
function displayradio(num){
	
    if (document.getElementById("inq03")) {
    
    
        if (document.getElementById("inq03").checked==true){
                document.getElementById("inq03-2").disabled=false;
                document.getElementById("inq03-3").disabled=false;
                document.getElementById("inq03-1").disabled=false;

             switch (num){
                case "1":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="none";
                    document.getElementById("maddress").style.display="none";
                    document.getElementById("mfax").style.display="none";
                break;
                case "2":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="";
                    document.getElementById("maddress").style.display="";
                    document.getElementById("mfax").style.display="none";
                break;
                case "3":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="none";
                    document.getElementById("maddress").style.display="none";
                    document.getElementById("mfax").style.display="";
                break;
                default:
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="none";
                    document.getElementById("maddress").style.display="none";
                    document.getElementById("mfax").style.display="none";
                break;
            }
        }else{
                document.getElementById("mmail").style.display="";
                document.getElementById("mcode").style.display="none";
                document.getElementById("mprovince").style.display="none";
                document.getElementById("maddress").style.display="none";
                document.getElementById("mfax").style.display="none";
                document.getElementById("inq03-2").checked=false;
                document.getElementById("inq03-3").checked=false;
                document.getElementById("inq03-1").checked=false;
                document.getElementById("inq03-2").disabled=true;
                document.getElementById("inq03-3").disabled=true;
                document.getElementById("inq03-1").disabled=true;
        }
    } else {
            switch (num){
                case "1":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="none";
                    document.getElementById("maddress").style.display="none";
                    document.getElementById("mfax").style.display="none";
                break;
                case "2":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="";
                    document.getElementById("maddress").style.display="";
                    document.getElementById("mfax").style.display="none";
                break;
                case "3":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="none";
                    document.getElementById("maddress").style.display="none";
                    document.getElementById("mfax").style.display="";
                break;
                case "4":
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="";
                    document.getElementById("maddress").style.display="";
                    document.getElementById("mfax").style.display="none";
                break;
                default:
                    document.getElementById("mmail").style.display="";
                    document.getElementById("mcode").style.display="none";
                    document.getElementById("mprovince").style.display="none";
                    document.getElementById("maddress").style.display="none";
                    document.getElementById("mfax").style.display="none";
                break;
            }
    
    }    
        
        
}
function tabs04(str){
	switch (str){
	case "block1":
		document.getElementById("openhouse1").style.display="";
		document.getElementById("openhouse2").style.display="none";
		document.getElementById("openhouse3").style.display="none";
		document.getElementById("tablock").innerHTML ='<ul><li><a href="javascript:tabs04(\'block1\');"><img src="/images/openhouse/btn_oh_01on.gif" alt="マンション" name="oh01" width="110" height="25" border="0" id="oh01" /></a></li><li><a href="javascript:tabs04(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh02\',\'\',\'/images/openhouse/btn_oh_02ac.gif\',1)"><img src="/images/openhouse/btn_oh_02.gif" alt="一戸建て" name="oh02" width="110" height="25" border="0" id="oh02" /></a></li><li><a href="javascript:tabs04(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh03\',\'\',\'/images/openhouse/btn_oh_03ac.gif\',1)"><img src="/images/openhouse/btn_oh_03.gif" alt="土地" name="oh03" width="110" height="25" border="0" id="oh03" /></a></li></ul>';
	break;
	case "block2":
		document.getElementById("openhouse2").style.display="";
		document.getElementById("openhouse1").style.display="none";
		document.getElementById("openhouse3").style.display="none";
		document.getElementById("tablock").innerHTML ='<ul><li><a href="javascript:tabs04(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh01\',\'\',\'/images/openhouse/btn_oh_01ac.gif\',1)"><img src="/images/openhouse/btn_oh_01.gif" alt="マンション" name="oh01" width="110" height="25" border="0" id="oh01" /></a></li><li><a href="javascript:tabs04(\'block2\');"><img src="/images/openhouse/btn_oh_02on.gif" alt="一戸建て" name="oh02" width="110" height="25" border="0" id="oh02" /></a></li><li><a href="javascript:tabs04(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh03\',\'\',\'/images/openhouse/btn_oh_03ac.gif\',1)"><img src="/images/openhouse/btn_oh_03.gif" alt="土地" name="oh03" width="110" height="25" border="0" id="oh03" /></a></li></ul>';
	break;
	case "block3":
		document.getElementById("openhouse3").style.display="";
		document.getElementById("openhouse1").style.display="none";
		document.getElementById("openhouse2").style.display="none";
		document.getElementById("tablock").innerHTML ='<ul><li><a href="javascript:tabs04(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh01\',\'\',\'/images/openhouse/btn_oh_01ac.gif\',1)"><img src="/images/openhouse/btn_oh_01.gif" alt="マンション" name="oh01" width="110" height="25" border="0" id="oh01" /></a></li><li><a href="javascript:tabs04(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh02\',\'\',\'/images/openhouse/btn_oh_02ac.gif\',1)"><img src="/images/openhouse/btn_oh_02.gif" alt="一戸建て" name="oh02" width="110" height="25" border="0" id="oh02" /></a></li><li><a href="javascript:tabs04(\'block3\');"><img src="/images/openhouse/btn_oh_03on.gif" alt="土地" name="oh03" width="110" height="25" border="0" id="oh03" /></a></li></ul>';
	break;
	default:
		document.getElementById("openhouse1").style.display="";
		document.getElementById("openhouse2").style.display="none";
		document.getElementById("openhouse3").style.display="none";
		document.getElementById("tablock").innerHTML ='<ul><li><a href="javascript:tabs04(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh01\',\'\',\'/images/openhouse/btn_oh_01ac.gif\',1)"><img src="/images/openhouse/btn_oh_01on.gif" alt="マンション" name="oh01" width="110" height="25" border="0" id="oh01" /></a></li><li><a href="javascript:tabs04(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh02\',\'\',\'/images/openhouse/btn_oh_02ac.gif\',1)"><img src="/images/openhouse/btn_oh_02.gif" alt="一戸建て" name="oh02" width="110" height="25" border="0" id="oh02" /></a></li><li><a href="javascript:tabs04(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'oh03\',\'\',\'/images/openhouse/btn_oh_03ac.gif\',1)"><img src="/images/openhouse/btn_oh_03.gif" alt="土地" name="oh03" width="110" height="25" border="0" id="oh03" /></a></li></ul>';
	break;
	}
}

function tabs_used_mansion(tb2){
	if (tb2=="block1"){
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_used_mansion(\'block1\');"><img src="/images/common/btn_mp01_on.gif" name="tt1" alt="マンション（中古マンション）を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_used_mansion(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt2\',\'\',\'/images/common/btn_mp02_ac.gif\',1)"><img src="/images/common/btn_mp02.gif" name="tt2" alt="マンション（中古マンション）を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display01").style.display="";
	document.getElementById("display02").style.display="none";
	}else{
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_used_mansion(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt1\',\'\',\'/images/common/btn_mp01_ac.gif\',1)"><img src="/images/common/btn_mp01.gif" name="tt1" alt="マンション（中古マンション）を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_used_mansion(\'block2\');"><img src="/images/common/btn_mp02_on.gif" name="tt2" alt="マンション（中古マンション）を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display02").style.display="";
	document.getElementById("display01").style.display="none";
	}
}
function tabs_new_house(tb2){
	if (tb2=="block1"){
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_new_house(\'block1\');"><img src="/images/common/btn_mp01_on.gif" name="tt1" alt="新築一戸建て（建売住宅）・新築住宅を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_new_house(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt2\',\'\',\'/images/common/btn_mp02_ac.gif\',1)"><img src="/images/common/btn_mp02.gif" name="tt2" alt="新築一戸建て（建売住宅）・新築住宅を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display01").style.display="";
	document.getElementById("display02").style.display="none";
	}else{
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_new_house(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt1\',\'\',\'/images/common/btn_mp01_ac.gif\',1)"><img src="/images/common/btn_mp01.gif" name="tt1" alt="新築一戸建て（建売住宅）・新築住宅を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_new_house(\'block2\');"><img src="/images/common/btn_mp02_on.gif" name="tt2" alt="新築一戸建て（建売住宅）・新築住宅を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display02").style.display="";
	document.getElementById("display01").style.display="none";
	}
}
function tabs_used_house(tb2){
	if (tb2=="block1"){
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_used_house(\'block1\');"><img src="/images/common/btn_mp01_on.gif" name="tt1" alt="中古物件・中古一戸建てなど中古住宅を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_used_house(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt2\',\'\',\'/images/common/btn_mp02_ac.gif\',1)"><img src="/images/common/btn_mp02.gif" name="tt2" alt="中古物件・中古一戸建てなど中古住宅を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display01").style.display="";
	document.getElementById("display02").style.display="none";
	}else{
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_used_house(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt1\',\'\',\'/images/common/btn_mp01_ac.gif\',1)"><img src="/images/common/btn_mp01.gif" name="tt1" alt="中古物件・中古一戸建てなど中古住宅を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_used_house(\'block2\');"><img src="/images/common/btn_mp02_on.gif" name="tt2" alt="中古物件・中古一戸建てなど中古住宅を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display02").style.display="";
	document.getElementById("display01").style.display="none";
	}
}
function tabs_land(tb2){
	if (tb2=="block1"){
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_land(\'block1\');"><img src="/images/common/btn_mp01_on.gif" name="tt1" alt="土地・売地情報を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_land(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt2\',\'\',\'/images/common/btn_mp02_ac.gif\',1)"><img src="/images/common/btn_mp02.gif" name="tt2" alt="土地・売地情報を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display01").style.display="";
	document.getElementById("display02").style.display="none";
	}else{
	document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs_land(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt1\',\'\',\'/images/common/btn_mp01_ac.gif\',1)"><img src="/images/common/btn_mp01.gif" name="tt1" alt="土地・売地情報を地域から探す" width="185" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs_land(\'block2\');"><img src="/images/common/btn_mp02_on.gif" name="tt2" alt="土地・売地情報を沿線から探す" width="185" height="30" border="0" id="tt2" /></a><br /></li></ul>';
	document.getElementById("display02").style.display="";
	document.getElementById("display01").style.display="none";
	}
}

function tabs05_house(tb2){
	switch (tb2){
	case "block1":
		document.getElementById("display01").style.display="";
		document.getElementById("display02").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_house(\'block1\');"><img src="/images/common/btn_mp03_on.gif" alt="新築一戸建て（建売住宅）・新築住宅を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_house(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="新築一戸建て（建売住宅）・新築住宅を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_house(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt5\',\'\',\'/images/common/btn_mp05_ac.gif\',1)"><img src="/images/common/btn_mp05.gif" alt="注目の新築一戸建て（建売住宅）・新築住宅" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	case "block2":
		document.getElementById("display02").style.display="";
		document.getElementById("display01").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_house(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt3\',\'\',\'/images/common/btn_mp03_ac.gif\',1)"><img src="/images/common/btn_mp03.gif" alt="新築一戸建て（建売住宅）・新築住宅を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_house(\'block2\');"><img src="/images/common/btn_mp04_on.gif" alt="新築一戸建て（建売住宅）・新築住宅を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_house(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt5\',\'\',\'/images/common/btn_mp05_ac.gif\',1)"><img src="/images/common/btn_mp05.gif" alt="注目の新築一戸建て（建売住宅）・新築住宅" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	case "block3":
		document.getElementById("display03").style.display="";
		document.getElementById("display01").style.display="none";
		document.getElementById("display02").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_house(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt3\',\'\',\'/images/common/btn_mp03_ac.gif\',1)"><img src="/images/common/btn_mp03.gif" alt="新築一戸建て（建売住宅）・新築住宅を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_house(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="新築一戸建て（建売住宅）・新築住宅を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_house(\'block3\');"><img src="/images/common/btn_mp05_on.gif" alt="注目の新築一戸建て（建売住宅）・新築住宅" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	default:
		document.getElementById("display01").style.display="";
		document.getElementById("display02").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_house(\'block1\');"><img src="/images/common/btn_mp03_on.gif" alt="新築一戸建て（建売住宅）・新築住宅を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_house(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="新築一戸建て（建売住宅）・新築住宅を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_house(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt5\',\'\',\'/images/common/btn_mp05_ac.gif\',1)"><img src="/images/common/btn_mp05.gif" alt="注目の新築一戸建て（建売住宅）・新築住宅" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	}
}

function tabs05_land(tb2){
	switch (tb2){
	case "block1":
		document.getElementById("display01").style.display="";
		document.getElementById("display02").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_land(\'block1\');"><img src="/images/common/btn_mp03_on.gif" alt="土地・売地情報を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_land(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="土地・売地情報を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_land(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt5\',\'\',\'/images/common/btn_mp05_ac.gif\',1)"><img src="/images/common/btn_mp05.gif" alt="注目の土地・売地" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	case "block2":
		document.getElementById("display02").style.display="";
		document.getElementById("display01").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_land(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt3\',\'\',\'/images/common/btn_mp03_ac.gif\',1)"><img src="/images/common/btn_mp03.gif" alt="土地・売地情報を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_land(\'block2\');"><img src="/images/common/btn_mp04_on.gif" alt="土地・売地情報を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_land(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt5\',\'\',\'/images/common/btn_mp05_ac.gif\',1)"><img src="/images/common/btn_mp05.gif" alt="注目の土地・売地" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	case "block3":
		document.getElementById("display03").style.display="";
		document.getElementById("display01").style.display="none";
		document.getElementById("display02").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_land(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt3\',\'\',\'/images/common/btn_mp03_ac.gif\',1)"><img src="/images/common/btn_mp03.gif" alt="土地・売地情報を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_land(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="土地・売地情報を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_land(\'block3\');"><img src="/images/common/btn_mp05_on.gif" alt="注目の土地・売地" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	default:
		document.getElementById("display01").style.display="";
		document.getElementById("display02").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05_land(\'block1\');"><img src="/images/common/btn_mp03_on.gif" alt="土地・売地情報を地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05_land(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="土地・売地情報を沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li><li class="last"><a href="javascript:tabs05_land(\'block3\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt5\',\'\',\'/images/common/btn_mp05_ac.gif\',1)"><img src="/images/common/btn_mp05.gif" alt="注目の土地・売地" name="tt5" width="164" height="30" border="0" id="tt5" /></a><br /></li></ul>';
	break;
	}
}


function tabs05(tb2){
	switch (tb2){
	case "block1":
		document.getElementById("display01").style.display="";
		document.getElementById("display02").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05(\'block1\');"><img src="/images/common/btn_mp03_on.gif" alt="地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li></ul>';
	break;
	case "block2":
		document.getElementById("display02").style.display="";
		document.getElementById("display01").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt3\',\'\',\'/images/common/btn_mp03_ac.gif\',1)"><img src="/images/common/btn_mp03.gif" alt="地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05(\'block2\');"><img src="/images/common/btn_mp04_on.gif" alt="沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li></ul>';
	break;
	case "block3":
		document.getElementById("display03").style.display="";
		document.getElementById("display01").style.display="none";
		document.getElementById("display02").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05(\'block1\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt3\',\'\',\'/images/common/btn_mp03_ac.gif\',1)"><img src="/images/common/btn_mp03.gif" alt="地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li></ul>';
	break;
	default:
		document.getElementById("display01").style.display="";
		document.getElementById("display02").style.display="none";
		document.getElementById("display03").style.display="none";
		document.getElementById("tbk").innerHTML ='<ul><li><a href="javascript:tabs05(\'block1\');"><img src="/images/common/btn_mp03_on.gif" alt="地域から探す" name="tt3" width="165" height="30" border="0" id="tt1" /></a><br /></li><li><a href="javascript:tabs05(\'block2\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tt4\',\'\',\'/images/common/btn_mp04_ac.gif\',1)"><img src="/images/common/btn_mp04.gif" alt="沿線から探す" name="tt4" width="165" height="30" border="0" id="tt4" /></a><br /></li></ul>';
	break;
	}
}


function openwin(page,wname,w,h){
win_set = 'toolbar=no,location=yes,directories=no,status=no,menubar=0,scrollbars=yes,resizable=no,width='+w+',height='+h;
swin = window.open(page,wname,win_set);
}
function openwin2(page,wname,w,h) {window.open(page, wname, "width="+w+", height="+h+", toolbar= no, menubar=no, scrollbars=yes, resizable=yes, location=yes, status=no")}

function deline(str){
	if (window.navigator.userAgent.indexOf("Firefox")>=1){
		str.close();
	}else{
		str.blur();
	}
}
function msv(str,str2){
	switch (str){
		case "tj":
			if(str2=="show"){
			document.getElementById("tjshow").innerHTML ='<a href="javascript:msv(\'tj\',\'hidden\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'exp2\',\'\',\'/images/mansion/btn_expressnai_on.gif\',1)"><img src="/images/mansion/btn_expressnai.gif" alt="こだわり条件を表示しない" name="exp2" width="178" height="23" border="0" /></a>';
			document.getElementById("tj").style.display="";
			}else{
			document.getElementById("tjshow").innerHTML ='<a href="javascript:msv(\'tj\',\'show\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'exp\',\'\',\'/images/mansion/btn_express_on.gif\',1)"><img src="/images/mansion/btn_express.gif" alt="こだわり条件を表示する" name="exp" width="164" height="23" border="0" /></a>';
			document.getElementById("tj").style.display="none";
			}
			break;
		case "stj":
			if(str2=="show"){
			document.getElementById("stjshow").innerHTML ='<a href="javascript:msv(\'stj\',\'hidden\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'btj2\',\'\',\'/images/common/btn_ltjnai_on.gif\',1)"><img src="/images/common/btn_ltjnai.gif" alt="こだわり条件を表示しない" name="btj2" width="182" height="23" border="0" /></a>';
			document.getElementById("stj").style.display="";
			}else{
			document.getElementById("stjshow").innerHTML ='<a href="javascript:msv(\'stj\',\'show\');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'btj\',\'\',\'/images/common/btn_ltj_on.gif\',1)"><img src="/images/common/btn_ltj.gif" alt="こだわり条件を表示する" name="btj" width="182" height="23" border="0" /></a>';
			document.getElementById("stj").style.display="none";
			}
		break;
	}
}
var swh01=true;
var swh02=true;
/*		↓ echina 20090106		*/
function ekshow(maxid,type){
	var colnum=20;
	var colnum2=40;
	var rownum=2;
	var ekhtml1=ekhtml2='';
	var i_tmp=1;
	var key1="#1#2#3#4#5#6#7#8#9#";
	var key1n=key1.split("#").length-2;
	//alert(key1n);
	var key2="#17#18#19#20#21#22#23#24#25#26#27#28#29#30#31#32#";
	var key2n=key2.split("#").length-2;
	//alert(key2n);
	var key3="#1#2#3#4#5#6#7#8#9#17#18#19#20#21#22#23#24#25#26#27#28#29#30#31#32#";
	var key3n=key3.split("#").length-2;
	switch (type){
		case "qy":
			if (swh01){
				if (swh02){
					for (i=1;i<=maxid;i++){
						if (i_tmp<=colnum){
							if((i==6)||(i==7)||(i==8)||(i==9)){
								ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
								i_tmp++;
							}
							if(key1.indexOf('#'+i+'#')==-1){
								ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if ((i_tmp<=colnum2)&&(i_tmp>colnum)){
							if (i_tmp==21) i++;
							if(key1.indexOf('#'+i+'#')==-1){
								ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
					}
					//alert("1");
					document.getElementById("line1").innerHTML=ekhtml1;
					if (((maxid-key1n)>0)&&((maxid-key1n+4)<=colnum)){
						document.getElementById("ekl2").style.display="none";
					}else {
						document.getElementById("ekl2").style.display="";
						var arry=document.getElementById("tbl2").rows[0].cells[0];
						var wth=(maxid-colnum-key1n+4)*40+28;
						arry.setAttribute("width",wth);
						if((maxid-key1n)==colnum2){
							//ekhtml2=ekhtml2+'<div class="chkbox" id="end1" style="display:none;"> </div>';
							document.getElementById("line2").innerHTML=ekhtml2;
						}else{
							document.getElementById("line2").innerHTML=ekhtml2;
						}
					}
					document.getElementById("btn01").innerHTML ='<a href="javascript:ekshow(\'32\',\'qy\');">埼玉県方面の駅を表示（9駅）</a>';
					swh01=false;
				}else{
					for (i=1;i<=maxid;i++){
						if (i_tmp<=colnum){
							if((i==6)||(i==7)||(i==8)||(i==9)){
								ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
								i_tmp++;
							}
							if(key3.indexOf('#'+i+'#')==-1){
								ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if ((i_tmp<=colnum2)&&(i_tmp>colnum)){
							if (i_tmp==21) i++;
							if(key3.indexOf('#'+i+'#')==-1){
								ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if((i==29)||(i==30)||(i==31)||(i==32)){
							ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
							i_tmp++;
						}
					}
					//alert("2");
					document.getElementById("line1").innerHTML=ekhtml1;
					if (((maxid-key3n)>0)&&((maxid-key3n+8)<=colnum)){
						document.getElementById("ekl2").style.display="none";
					}else {
						document.getElementById("ekl2").style.display="";
						if((maxid-key3n)==colnum2){
							//ekhtml2=ekhtml2+'<div class="chkbox" id="end1" style="display:none;"> </div>';
							document.getElementById("line2").innerHTML=ekhtml2;
						}else{
							document.getElementById("line2").innerHTML=ekhtml2;
						}
					}
					document.getElementById("btn01").innerHTML ='<a href="javascript:ekshow(\'32\',\'qy\');">埼玉県方面の駅を表示（9駅）</a>';
					swh01=false;
				}
			}else{
				if (swh02){
					for (i=1;i<=maxid;i++){
						if (i<=colnum){
							ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
						}
						if ((i<=colnum2)&&(i>colnum)){
							ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
						}
					}
					//alert("3");
					var arry=document.getElementById("tbl2").rows[0].cells[0];
					var wth=(maxid-colnum)*40+28;
					arry.setAttribute("width",wth);
					//alert(document.getElementById("tbl2").rows[0].cells[0].width);
					document.getElementById("line1").innerHTML=ekhtml1;
					document.getElementById("line2").innerHTML=ekhtml2;
					document.getElementById("btn01").innerHTML ='<a href="javascript:ekshow(\'32\',\'qy\');">埼玉県方面の駅を非表示（9駅）</a>';
					swh01=true;
				}else{
					for (i=1;i<=maxid;i++){
						if (i_tmp<=colnum){
							if(key2.indexOf('#'+i+'#')==-1){
								ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if ((i_tmp<=colnum2)&&(i_tmp>colnum)){
							if (i_tmp==21) i++;
							if(key2.indexOf('#'+i+'#')==-1){
								ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if((i==29)||(i==30)||(i==31)||(i==32)){
							ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
							i_tmp++;
						}
					}
					//alert("4");
					document.getElementById("line1").innerHTML=ekhtml1;
					if (((maxid-key2n)>0)&&((maxid-key2n+4)<=colnum)){
						document.getElementById("ekl2").style.display="none";
					}else{
						document.getElementById("ekl2").style.display="";
						var arry=document.getElementById("tbl2").rows[0].cells[0];
						var wth=(maxid-colnum-key1n+4)*40+28;
						arry.setAttribute("width",wth);
						if((maxid-key2n)==colnum2){
							//ekhtml2=ekhtml2+'<div class="chkbox" id="end1" style="display:none;"> </div>';
							document.getElementById("line2").innerHTML=ekhtml2;
						}else{
							document.getElementById("line2").innerHTML=ekhtml2;
						}
					}
					document.getElementById("btn01").innerHTML ='<a href="javascript:ekshow(\'32\',\'qy\');">埼玉県方面の駅を非表示（9駅）</a>';
					swh01=true;
				}
			}
			break;
		case "snc":
			if (swh02){
				if(swh01){
					for (i=1;i<=maxid;i++){
						if (i_tmp<=colnum){
							if(key2.indexOf('#'+i+'#')==-1){
								ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if ((i_tmp<=colnum2)&&(i_tmp>colnum)){
							if (i_tmp==21) i++;
							if(key2.indexOf('#'+i+'#')==-1){
								ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if((i==29)||(i==30)||(i==31)||(i==32)){
							ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
							i_tmp++;
						}
					}
					//alert("5");
					document.getElementById("line1").innerHTML=ekhtml1;
					if (((maxid-key2n)>0)&&((maxid-key2n+4)<=colnum)){
						document.getElementById("ekl2").style.display="none";
					}else{
						document.getElementById("ekl2").style.display="";
						var arry=document.getElementById("tbl2").rows[0].cells[0];
						var wth=(maxid-colnum-key2n+4)*40+28;
						arry.setAttribute("width",wth);
						if((maxid-key2n)==colnum2){
							ekhtml2=ekhtml2+'<div class="chkbox" id="end1" style="display:none;"> </div>';
							document.getElementById("line2").innerHTML=ekhtml2;
						}else{
							document.getElementById("line2").innerHTML=ekhtml2;
						}
					}
					document.getElementById("btn02").innerHTML ='<a href="javascript:ekshow(\'32\',\'snc\');">神奈川県方面の駅を表示（16駅）</a>';
					swh02=false;
				}else{
					for (i=1;i<=maxid;i++){
						if (i_tmp<=colnum){
							if((i==6)||(i==7)||(i==8)||(i==9)){
								ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
								i_tmp++;
							}
							if(key3.indexOf('#'+i+'#')==-1){
								ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if ((i_tmp<=colnum2)&&(i_tmp>colnum)){
							if (i_tmp==21) i++;
							if(key3.indexOf('#'+i+'#')==-1){
								ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if((i==29)||(i==30)||(i==31)||(i==32)){
							ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
							i_tmp++;
						}
					}
					//alert("6");
					document.getElementById("line1").innerHTML=ekhtml1;
					if (((maxid-key3n)>0)&&((maxid-key3n+8)<=colnum)){
						document.getElementById("ekl2").style.display="none";
					}else {
						document.getElementById("ekl2").style.display="";
						var arry=document.getElementById("tbl2").rows[0].cells[0];
						var wth=(maxid-colnum-key1n+4)*40+28;
						arry.setAttribute("width",wth);
						document.getElementById("ekl2").style.display="";
						if((maxid-key3n)==colnum2){
							ekhtml2=ekhtml2+'<div class="chkbox" id="end1" style="display:none;"> </div>';
							document.getElementById("line2").innerHTML=ekhtml2;
						}else{
							document.getElementById("line2").innerHTML=ekhtml2;
						}
					}
					document.getElementById("btn02").innerHTML ='<a href="javascript:ekshow(\'32\',\'snc\');">神奈川県方面の駅を（16駅）表示</a>';
					swh02=false;
				}
			}else{
				if(swh01){
					for (i=1;i<=maxid;i++){
						if (i<=colnum){
							ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
						}
						if ((i<=colnum2)&&(i>colnum)){
							ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
						}
					}
					//alert("7");
					document.getElementById("ekl2").style.display="";
					document.getElementById("ekl2").style.display="";
					var arry=document.getElementById("tbl2").rows[0].cells[0];
					var wth=(maxid-colnum)*40+28;
					arry.setAttribute("width",wth);
					document.getElementById("line1").innerHTML=ekhtml1;
					document.getElementById("line2").innerHTML=ekhtml2;
					document.getElementById("btn02").innerHTML ='<a href="javascript:ekshow(\'32\',\'snc\');">神奈川県方面の駅を（16駅）非表示</a>';
					swh02=true;
				}else{
					for (i=1;i<=maxid;i++){
						if (i_tmp<=colnum){
							if((i==6)||(i==7)||(i==8)||(i==9)){
								ekhtml1=ekhtml1+document.getElementById('station'+i+'-2').innerHTML;
								i_tmp++;
							}
							if(key1.indexOf('#'+i+'#')==-1){
								ekhtml1=ekhtml1+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
						if ((i_tmp<=colnum2)&&(i_tmp>colnum)){
							if (i_tmp==21) i++;
							if(key1.indexOf('#'+i+'#')==-1){
								ekhtml2=ekhtml2+document.getElementById('station'+i).innerHTML;
								i_tmp++;
							}
						}
					}
					//alert("8");
					document.getElementById("line1").innerHTML=ekhtml1;
					if (((maxid-key1n)>0)&&((maxid-key1n+4)<=colnum)){
						document.getElementById("ekl2").style.display="none";
					}else {
						document.getElementById("ekl2").style.display="";
						var arry=document.getElementById("tbl2").rows[0].cells[0];
						var wth=(maxid-colnum-key1n+4)*40+28;
						arry.setAttribute("width",wth);
						if((maxid-key1n)==colnum2){
							ekhtml2=ekhtml2+'<div class="chkbox" id="end1" style="display:none;"> </div>';
							document.getElementById("line2").innerHTML=ekhtml2;
						}else{
							document.getElementById("line2").innerHTML=ekhtml2;
						}
					}
					document.getElementById("btn02").innerHTML ='<a href="javascript:ekshow(\'32\',\'snc\');">神奈川県方面の駅を（16駅）非表示</a>';
					swh02=true;
				}
			}
		break;
	}
}
/*		↑ echina 20090106		*/
function photoc(str){
	switch (str){
		case "p1":
			document.getElementById("photochg").innerHTML ='<img src="/images/detail/ic_mansion_top01.gif" alt="" width="25" height="18" class="vm" /> 外観写真　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/img_d_rp01.gif\',1);photoc(\'p2\');">間取り図</a>';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/ph_mansion_top01.jpg" alt="" width="539" height="406" border="0" />';
			break;
		case "p2":
			document.getElementById("photochg").innerHTML ='<img src="/images/detail/ic_mansion_top01.gif" alt="" width="25" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/ph_mansion_top01.jpg\',1);photoc(\'p1\');">外観写真</a>　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> 間取り図';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/img_d_rp01.gif" alt="" width="539" height="406" border="0" />';
			break;
		case "p3":
			document.getElementById("photochg").innerHTML ='<img src="/images/detail/ic_mansion_top01.gif" alt="" width="25" height="18" class="vm" /> 外観写真　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/img_d_rp01.gif\',1);photoc(\'p4\');">間取り図・区画図</a>';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/ph_mansion_top01.jpg" alt="" width="539" height="406" border="0" />';
			break;
		case "p4":
			document.getElementById("photochg").innerHTML ='<img src="/images/detail/ic_mansion_top01.gif" alt="" width="25" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/ph_mansion_top01.jpg\',1);photoc(\'p3\');">外観写真</a>　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> 間取り図・区画図';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/img_d_rp01.gif" alt="" width="539" height="406" border="0" />';
		break;
	}
}


/* ↓2008/12/04 mihara wrote */
function photoc2(str){
	switch (str){
		case "p1":
			document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/detail/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> 外観写真　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/img_d_rp01.gif\',1);photoc2(\'p2\');">間取り図</a></td><td width="355" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</td></tr></table>';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/ph_mansion_top01.jpg" alt="" width="600" height="450" border="0" />';
			break;
		case "p2":
			document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/detail/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/ph_mansion_top01.jpg\',1);photoc2(\'p1\');">外観写真</a>　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> 間取り図</td><td width="355" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</td></tr></table>';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/img_d_rp01.gif" alt="" width="600" height="450" border="0" />';
			break;
		case "p3":
			document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/detail/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/ph_mansion_top01.jpg\',1);photoc2(\'p1\');">外観写真</a>　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/img_d_rp01.gif\',1);photoc2(\'p2\');">間取り図</a>　　<img src="/images/detail/ic_mansion_top03.gif" alt="" width="16" height="18" class="vm" /> 区画図</td><td width="355" align="right"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'slide\',\'\',\'/images/detail/btn_slide_on.gif\',1)"><img src="/images/detail/btn_slide.gif" alt="スライドショー" name="slide" width="222" height="32" border="0"></a></td></tr></table>';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/ph_mansion_top01.jpg" alt="" width="539" height="406" border="0" />';
			break;
		case "p4":
			document.getElementById("photochg").innerHTML ='<img src="/images/detail/ic_mansion_top01.gif" alt="" width="25" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/ph_mansion_top01.jpg\',1);photoc(\'p3\');">外観写真</a>　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> 間取り図・区画図';
			document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/img_d_rp01.gif" alt="" width="539" height="406" border="0" />';
		break;
	}
}

var rp=true;
function photoright(){
	if (rp){
		document.getElementById("rphoto").innerHTML ='<img src="/images/detail/img_m_rt1.gif" alt="外観画像" width="45" height="11" border="0" />';
		document.getElementById("rphoto2").innerHTML ='<a href="#"><img src="/images/detail/ph_mansion_top01.jpg" alt="" width="180" height="180" border="0" class="imgoff02" onmouseover="this.className=\'imgon\';" onmouseout="this.className=\'imgoff02\';" /></a>';
		document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/detail/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/ph_mansion_top01.jpg\',1);photoc2(\'p1\');">外観写真</a>　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> 間取り図</td><td width="355" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</td></tr></table>';
		document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/img_d_rp01.gif" alt="" width="539" height="406" border="0" />';
		rp=false;
	}else{
		document.getElementById("rphoto").innerHTML ='<img src="/images/detail/img_d_rt02.gif" alt="間取り図" width="45" height="10" border="0" />';
		document.getElementById("rphoto2").innerHTML ='<a href="#"><img src="/images/detail/img_d_rp01.gif" alt="" width="180" height="180" border="0" class="imgoff02" onmouseover="this.className=\'imgon\';" onmouseout="this.className=\'imgoff02\';" /></a>';
		document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/detail/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> 外観写真　　<img src="/images/detail/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/detail/img_d_rp01.gif\',1);photoc2(\'p2\');">間取り図</a></td><td width="355" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</a></td></tr></table>';
		document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/ph_mansion_top01.jpg" alt="" width="539" height="406" border="0" />';
		rp=true;
	}
}

/* ↑2008/12/04 mihara wrote */



var rp=true;
function photor(){
	if (rp){
		document.getElementById("rphoto").innerHTML ='<img src="/images/detail/img_m_rt1.gif" alt="外観画像" width="45" height="11" border="0" />';
		document.getElementById("rphoto2").innerHTML ='<a href="#"><img src="/images/mansion/ph_mansion_top01.jpg" alt="" width="180" height="180" border="0" class="imgoff02" onmouseover="this.className=\'imgon\';" onmouseout="this.className=\'imgoff02\';" /></a>';
		document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/mansion/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/mansion/ph_mansion_top01.jpg\',1);photoc2(\'p1\');">外観写真</a>　　<img src="/images/mansion/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> 間取り図</td><td width="355" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</td></tr></table>';
		document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/img_d_rp01.gif" alt="" width="539" height="406" border="0" />';
		rp=false;
	}else{
		document.getElementById("rphoto").innerHTML ='<img src="/images/detail/img_d_rt02.gif" alt="間取り図" width="45" height="10" border="0" />';
		document.getElementById("rphoto2").innerHTML ='<a href="#"><img src="/images/mansion/img_d_rp01.gif" alt="" width="180" height="180" border="0" class="imgoff02" onmouseover="this.className=\'imgon\';" onmouseout="this.className=\'imgoff02\';" /></a>';
		document.getElementById("photochg").innerHTML ='<table width="710" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="355"><img src="/images/mansion/ic_mansion_top01.gif" alt="" width="16" height="17" class="vm" /> 外観写真　　<img src="/images/mansion/ic_mansion_top02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:MM_swapImage(\'mainphoto\',\'\',\'/images/mansion/img_d_rp01.gif\',1);photoc2(\'p2\');">間取り図</a></td><td width="355" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</a></td></tr></table>';
		document.getElementById("mainphoto").innerHTML ='<img src="/images/detail/ph_mansion_top01.jpg" alt="" width="539" height="406" border="0" />';
		rp=true;
	}
}

var classname;
function stable(id){
	if (!document.getElementsByTagName || !document.createTextNode) return;
	var rows = document.getElementById(id).getElementsByTagName('tr');
	//alert(rows.length);
	var cols;
	for(var i = 1; i < rows.length; i++){
	
		var cols = rows[i].getElementsByTagName('td');
		for(var j = 1; j < cols.length; j++){
			cols[j].onmouseover = function()
			{
				//alert(cellIndexFn(this));
				classname=this.className;
				this.className=classname+' sslc9';
				if(this.getElementsByTagName("a")[0]){
				this.getElementsByTagName("a")[0].style.color='#ff0000';
				}
				//this.className="sslc7";
				//this.style.color='#ff0000';
				if(navigator.userAgent.indexOf("Safari")){
					var py=cellIndexFn(this);
					document.getElementById("c"+py).className="sslc8";
				}else{
					document.getElementById("c"+eval(this.cellIndex)).className="sslc8";
				}
				document.getElementById("r"+eval(this.parentNode.rowIndex)).className="sslc8-2";
			}
			cols[j].onmouseout = function()
			{
				this.className=classname;
				if(this.getElementsByTagName("a")[0]){
				this.getElementsByTagName("a")[0].style.color='#0c3575';
				}
				if(navigator.userAgent.indexOf("Safari")){
					var py=cellIndexFn(this);
					document.getElementById("c"+py).className="sslc2";
				}else{
					document.getElementById("c"+eval(this.cellIndex)).className="sslc2";
				}
				document.getElementById("r"+eval(this.parentNode.rowIndex)).className="sslc2-2";
			}
		}
	}
}
function cellIndexFn( obj )
{
	var isSafari = navigator.userAgent.indexOf("Safari") != -1;
	var ci = ( isSafari && obj.cellIndex == 0 ? -1 : obj.cellIndex );

	for ( var x = 0; ci == -1 && x < obj.parentElement.cells.length; x++ )
	{
		if ( obj === obj.parentElement.cells[x] ) {
		ci = x;
		}
	}
	return ci;
}

function photochk(id){
		document.getElementById(id).checked=true;
}
function tblist(id1,id2,btn,list){
	if (list){
		document.getElementById(id1).style.display="";
		document.getElementById(id2).style.display="";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist(\'ld1\',\'ld2\',\'tbb\',0)" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'btn01\',\'\',\'/images/seller/btn_ssl04_on.gif\',1)"><img src="/images/seller/btn_ssl04.gif" alt="絞り込み条件を閉じる" name="btn01" width="155" height="23" border="0" /></a>';
	}else{
		document.getElementById(id1).style.display="none";
		document.getElementById(id2).style.display="none";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist(\'ld1\',\'ld2\',\'tbb\',1)" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'btn01\',\'\',\'/images/seller/btn_ssl01_on.gif\',1)"><img src="/images/seller/btn_ssl01.gif" alt="駅距離や築年数で絞り込む" name="btn01" width="176" height="23" border="0" /></a>';
	}
}

/* ▼2008/12/16 by nakagawa*/
function tblist3(id1,id2,id3,id4,btn,list){
	if (list){
		document.getElementById(id1).style.display="";
		document.getElementById(id2).style.display="";
		document.getElementById(id3).style.display="";
		document.getElementById(id4).style.display="";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist3(\'ld1\',\'ld2\',\'ld3\',\'ld4\',\'tbb\',0)" ><img src="/images/members/btn_show.gif" alt="詳しい条件を表示しない" name="btn01" width="154" height="21" border="0" /></a>';
	}else{
		document.getElementById(id1).style.display="none";
		document.getElementById(id2).style.display="none";
		document.getElementById(id3).style.display="none";
		document.getElementById(id4).style.display="none";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist3(\'ld1\',\'ld2\',\'ld3\',\'ld4\',\'tbb\',1)" ><img src="/images/members/btn_show_on.gif" alt="詳しい条件を表示する" name="btn01" width="154" height="21" border="0" /></a>';
	}
}
function tblist4(id0,id1,id2,id3,id4,btn,list){
	if (list){
		document.getElementById(id0).style.display="";
		document.getElementById(id1).style.display="";
		document.getElementById(id2).style.display="";
		document.getElementById(id3).style.display="";
		document.getElementById(id4).style.display="";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist4(\'ld0\',\'ld1\',\'ld2\',\'ld3\',\'ld4\',\'tbb\',0)" ><img src="/images/members/btn_show.gif" alt="詳しい条件を表示しない" name="btn01" width="154" height="21" border="0" /></a>';
	}else{
		document.getElementById(id0).style.display="none";
		document.getElementById(id1).style.display="none";
		document.getElementById(id2).style.display="none";
		document.getElementById(id3).style.display="none";
		document.getElementById(id4).style.display="none";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist4(\'ld0\',\'ld1\',\'ld2\',\'ld3\',\'ld4\',\'tbb\',1)" ><img src="/images/members/btn_show_on.gif" alt="詳しい条件を表示する" name="btn01" width="154" height="21" border="0" /></a>';
	}
}
function tblist5(id5,btn,list){
	if (list){
		document.getElementById(id5).style.display="";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist5(\'ld5\',\'tbb2\',0)" ><img src="/images/members/btn_*.gif" alt="こだわり条件を表示しない" name="btn02" width="154" height="21" border="0" /></a>';
	}else{
		document.getElementById(id5).style.display="none";
		document.getElementById(btn).innerHTML ='<a href="javascript:tblist5(\'ld5\',\'tbb2\',1)" ><img src="/images/members/btn_*_on.gif" alt="こだわり条件を表示する" name="btn02" width="154" height="21" border="0" /></a>';
	}
}
/* ▲2008/12/16 by nakagawa*/

function photor2(str1,str2){
	if (str2){
		document.getElementById("rphoto").innerHTML ='<img src="/images/detail/img_m_rt1.gif" alt="外観画像" width="45" height="11" border="0" />';
		document.getElementById("rphoto2").innerHTML ='<img src="/images/premium/ph_detail_p01.jpg" alt="" width="180" height="180" border="0" class="imgoff04" onmouseover="this.className=\'imgon02\';" onmouseout="this.className=\'imgoff04\';" />';
		document.getElementById("rphoto3").innerHTML ='<img src="/images/premium/ic_listmore.gif" alt="" width="11" height="11" border="0" class="vm" /> <a href="javascript:photor2(\'p2\',false);" class="pre9">拡大する</a>';
		document.getElementById("photochg").innerHTML ='<table width="742" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="371"><img src="/images/premium/ic_pdo03.gif" alt="" width="16" height="17" class="vm" /> <a href="javascript:photor2(\'p1\',false);" class="pre9">外観写真</a>　　<img src="/images/premium/ic_pdo02.gif" alt="" width="15" height="18" class="vm" /> 間取り図</td><td width="371" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</td></tr></table>';
		document.getElementById("mainphoto").innerHTML ='<img src="/images/premium/img_detail01.jpg" alt="" width="350" height="544" border="0" />';
	}else{
		document.getElementById("rphoto").innerHTML ='<img src="/images/premium/txt_detail_05.gif" alt="間取り図" width="63" height="12" border="0" />';
		document.getElementById("rphoto2").innerHTML ='<img src="/images/premium/img_detail02.gif" alt="" width="180" height="180" border="0" class="imgoff04" onmouseover="this.className=\'imgon02\';" onmouseout="this.className=\'imgoff04\';" />';
		document.getElementById("rphoto3").innerHTML ='<img src="/images/premium/ic_listmore.gif" alt="" width="11" height="11" border="0" class="vm" /> <a href="javascript:photor2(\'p2\',true);" class="pre9">拡大する</a>';
		document.getElementById("photochg").innerHTML ='<table width="742" cellpadding="0" cellspacing="0" border="0" summary=" "><tr><td width="371"><img src="/images/premium/ic_pdo03.gif" alt="" width="16" height="17" class="vm" /> 外観写真　　<img src="/images/premium/ic_pdo02.gif" alt="" width="15" height="18" class="vm" /> <a href="javascript:photor2(\'p2\',true);" class="pre9">間取り図</a></td><td width="371" align="right">1/15枚　　＜<a href="#">前の写真</a>　　<a href="#">次の写真</a>＞</td></tr></table>';
		document.getElementById("mainphoto").innerHTML ='<img src="/images/premium/ph_detail_p01.jpg" alt="" width="533" height="398" border="0" />';
	}
}
function mpinit(){
	document.getElementById("pml01").style.display="none";
	document.getElementById("pml02").style.display="none";
	document.getElementById("pml03").style.display="none";
	document.getElementById("pml04").style.display="none";
	document.getElementById("pml05").style.display="none";
	document.getElementById("pml06").style.display="none";
	document.getElementById("pml07").style.display="none";
	document.getElementById("pml08").style.display="none";
	document.getElementById("pml09").style.display="none";
	document.getElementById("pml10").style.display="none";
	document.getElementById("pml11").style.display="none";
	document.getElementById("pml12").style.display="none";
	document.getElementById("pml13").style.display="none";
	document.getElementById("pml14").style.display="none";
	document.getElementById("pml15").style.display="none";
	document.getElementById("pml16").style.display="none";
	document.getElementById("pml17").style.display="none";

}
function mpshow(str,id){
	if (str){
		document.getElementById(id).style.display="";
	}else{
		document.getElementById(id).style.display="none";
	}
}
function shopimg(str){
	switch (str){
	case "1":
		document.getElementById("shops01").className="imgb4";
		document.getElementById("shops02").className="imgb2";
		document.getElementById("shops03").className="imgb2";
	break;
	case "2":
		document.getElementById("shops01").className="imgb2";
		document.getElementById("shops02").className="imgb4";
		document.getElementById("shops03").className="imgb2";
	break;
	case "3":
		document.getElementById("shops01").className="imgb2";
		document.getElementById("shops02").className="imgb2";
		document.getElementById("shops03").className="imgb4";
	break;
	default:
		document.getElementById("shops01").className="imgb4";
		document.getElementById("shops02").className="imgb2";
		document.getElementById("shops03").className="imgb2";
	break;
	}
}
function opltable(str,id1,id2,id3){
	if (str=='1'){
		document.getElementById(id1).style.display="";
		document.getElementById(id2).style.display="";
		document.getElementById(id3).style.display="none";
		//document.getElementById(id2).innerHTML ='<img src="/images/common/arr_up.gif" alt="" width="5" height="5" class="vm" /> <a href="javascript:opltable(\'0\',\'tb1\',\'tb2\')">物件条件を閉じる</a>';
	}else{
		document.getElementById(id1).style.display="none";
		document.getElementById(id2).style.display="none";
		document.getElementById(id3).style.display="";
		//document.getElementById(id2).innerHTML ='<img src="/images/common/arr_btm.gif" alt="" width="5" height="5" class="vm" /> <a href="javascript:opltable(\'1\',\'tb1\',\'tb2\')">物件条件で絞り込む</a>';
	}
}

function tblist2(id1,id2,id3,id4,list){
	if (list){
		document.getElementById(id1).style.display="";
		document.getElementById(id2).style.display="";
		document.getElementById(id3).style.display="none";
		document.getElementById(id4).style.display="";
		//document.getElementById(btn).innerHTML ='<a href="javascript:tblist2(\'ld1\',\'ld2\',\'tbb\',0)" class="listcol"><img src="/images/mansion/library/ic_arr04.gif" alt="" width="10" height="10" class="vm" /> 駅距離や築年数など詳しい条件を閉じる</a>';
	}else{
		document.getElementById(id1).style.display="none";
		document.getElementById(id2).style.display="none";
		document.getElementById(id3).style.display="";
		document.getElementById(id4).style.display="none";
		//document.getElementById(btn).innerHTML ='<a href="javascript:tblist2(\'ld1\',\'ld2\',\'tbb\',1)" class="listcol"><img src="/images/mansion/library/ic_arr04.gif" alt="" width="10" height="10" class="vm" /> 駅距離や築年数など詳しい条件で絞り込む</a>';
	}
}

function photochk2(id){
	var userAgent=window.navigator.userAgent.toLowerCase();
	if (userAgent.indexOf("firefox")<0)
	{
		if(document.getElementById(id).checked){
			document.getElementById(id).checked=false;
		}else{
			document.getElementById(id).checked=true;
		}
		
	}else{
		return;
	}
}
function tblist3(){
	switch(arguments.length){
		/* ▼2009/03/11 by echina*/
		case 2:
			if (arguments[0]){
				document.getElementById("chkopen").style.display="";
				document.getElementById("chkdown").style.display="none";
				document.getElementById(arguments[1]).innerHTML ='<img src="/images/common/arr_t_head.gif" alt="" width="5" height="5" class="vm" /> <a href="javascript:tblist3(0,\'open\')">駅名を閉じる</a>';
			}else{
				document.getElementById("chkopen").style.display="none";
				document.getElementById("chkdown").style.display="";
				document.getElementById(arguments[1]).innerHTML ='<img src="/images/common/arr_t_head.gif" alt="" width="5" height="5" class="vm" /> <a href="javascript:tblist3(1,\'open\')">駅で絞込みをする</a>';
			}
		break;
		/* ▲2009/03/11 by echina*/
		case 3:
			if (arguments[2]){
				document.getElementById("ld1").style.display="";
				document.getElementById("ld2").style.display="";
				document.getElementById("ld3").style.display="";
				document.getElementById("ld4").style.display="";
				document.getElementById(arguments[0]).style.display="none";
				document.getElementById(arguments[1]).style.display="";
			}else{
				document.getElementById("ld1").style.display="none";
				document.getElementById("ld2").style.display="none";
				document.getElementById("ld3").style.display="none";
				document.getElementById("ld4").style.display="none";
				document.getElementById(arguments[0]).style.display="";
				document.getElementById(arguments[1]).style.display="none";
			}
		break;
		case 4:
			if (arguments[3]){
				document.getElementById(arguments[0]).style.display="";
				document.getElementById(arguments[1]).style.display="none";
				document.getElementById(arguments[2]).style.display="";
			}else{
				document.getElementById(arguments[0]).style.display="none";
				document.getElementById(arguments[1]).style.display="";
				document.getElementById(arguments[2]).style.display="none";
			}
		break;
		default:
			return;
	}
}
function fcon(str1){
	document.getElementById(str1).style.color="#ffffff";
}
function fcout(str1){
	document.getElementById(str1).style.color="#333333";
}

function openwin(p, w, h) { 
	window.open (p, "newwindow", "height="+h+", width="+w+", toolbar =no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no")
} 
function premiumlist(str){
	if (str){
		document.getElementById("stjshow").style.display="none";
		document.getElementById("stjnone").style.display="";
		document.getElementById("kodawari").style.display="none";
		
		
	}else{
		document.getElementById("stjshow").style.display="";
		document.getElementById("stjnone").style.display="none";
		document.getElementById("kodawari").style.display="";
	}
}
function menu(a){
	if(a==2){
		document.getElementById("map01").style.display="none";
		document.getElementById("map02").style.display="";
		document.getElementById("swap1").style.backgroundImage="url(/images/detail/btn_normal.gif)";
		document.getElementById("swap2").style.backgroundImage="url(/images/detail/btn_add_on.gif)";
	}else{
		document.getElementById("map01").style.display="";
		document.getElementById("map02").style.display="none";
		document.getElementById("swap1").style.backgroundImage="url(/images/detail/btn_normal_on.gif)";
		document.getElementById("swap2").style.backgroundImage="url(/images/detail/btn_add.gif)";
	}
}



//add fukasawa 2010.4.15
function displaytext(triger, target){
	if(triger.checked){
		target.disabled=false;
		target.style.backgroundColor='#ffffff';
	}
	else{
		target.disabled=true;
		target.style.backgroundColor='#CCCCCC';
	}
}

function displaytext_selectbox(triger, target){
	if(triger.options[triger.selectedIndex].value=='99'){
	   	target.disabled=false;
		target.style.backgroundColor='#ffffff';
	}
	else{
		target.disabled=true;
		target.style.backgroundColor='#CCCCCC';
	}
}

function displaytext_btype(target){

	var errstyle = ("td2"==document.getElementById("bychk1").getAttribute('className'));
	switch(target){
		case "1" :
	    	document.getElementById("bmantext").disabled=false;
			document.getElementById("bmantext").style.backgroundColor='#ffffff';
			document.getElementById("bothertext").disabled=true;
			document.getElementById("bothertext").style.backgroundColor='#a9a9a9';
			document.getElementById("jwmj1").disabled=false;
            document.getElementById('jwmj1').style.backgroundColor = '#ffffff';
			document.getElementById("jwmj2").disabled=false;
            document.getElementById('jwmj2').style.backgroundColor = '#ffffff';
			document.getElementById("tdmj1").disabled=true;
			document.getElementById('tdmj1').style.backgroundColor = '#a9a9a9';
			document.getElementById("tdmj2").disabled=true;
			document.getElementById('tdmj2').style.backgroundColor = '#a9a9a9';
			if(errstyle){
				document.getElementById("bychk2").setAttribute('className','td2_important');
			}
			
		break;
		case "3" :
			document.getElementById("bmantext").disabled=true;
			document.getElementById("bmantext").style.backgroundColor='#a9a9a9';
			document.getElementById("bothertext").disabled=true;
			document.getElementById("bothertext").style.backgroundColor='#a9a9a9';
			document.getElementById("jwmj1").disabled=true;
			document.getElementById('jwmj1').style.backgroundColor = '#a9a9a9';
			document.getElementById("jwmj2").disabled=true;
			document.getElementById('jwmj2').style.backgroundColor = '#a9a9a9';
			document.getElementById("tdmj1").disabled=false;
            document.getElementById('tdmj1').style.backgroundColor = '#ffffff';
			document.getElementById("tdmj2").disabled=false;
            document.getElementById('tdmj2').style.backgroundColor = '#ffffff';
			document.getElementById("bychk2").setAttribute('className','');
		break;
		case "4" :
			document.getElementById("bmantext").disabled=true;
			document.getElementById("bmantext").style.backgroundColor='#a9a9a9';
			document.getElementById("bothertext").disabled=false;
			document.getElementById("bothertext").style.backgroundColor='#ffffff';
			document.getElementById("jwmj1").disabled=false;
            document.getElementById('jwmj1').style.backgroundColor = '#ffffff';
			document.getElementById("jwmj2").disabled=false;
            document.getElementById('jwmj2').style.backgroundColor = '#ffffff';
			document.getElementById("tdmj1").disabled=false;
            document.getElementById('tdmj1').style.backgroundColor = '#ffffff';
			document.getElementById("tdmj2").disabled=false;
            document.getElementById('tdmj2').style.backgroundColor = '#ffffff';
			if(errstyle){
				document.getElementById("bychk2").setAttribute('className','td2_important');
			}
		break;
		default :
			document.getElementById("bmantext").disabled=true;
			document.getElementById("bmantext").style.backgroundColor='#a9a9a9';
			document.getElementById("bothertext").disabled=true;
			document.getElementById("bothertext").style.backgroundColor='#a9a9a9';
			document.getElementById("jwmj1").disabled=false;
            document.getElementById('jwmj1').style.backgroundColor = '#ffffff';
			document.getElementById("jwmj2").disabled=false;
            document.getElementById('jwmj2').style.backgroundColor = '#ffffff';
			document.getElementById("tdmj1").disabled=false;
            document.getElementById('tdmj1').style.backgroundColor = '#ffffff';
			document.getElementById("tdmj2").disabled=false;
            document.getElementById('tdmj2').style.backgroundColor = '#ffffff';
			if(errstyle){
				document.getElementById("bychk2").setAttribute('className','td2_important');
			}
		break;
	}
}

function displaytext_btype_biz(target){

	switch(target){
		case "2" :
	    	document.getElementById("bta2text").disabled=false;
			document.getElementById("bta2text").style.backgroundColor='#ffffff';
	    	document.getElementById("bta3text").disabled=true;
			document.getElementById("bta3text").style.backgroundColor='#CCCCCC';
	    	document.getElementById("bta4text").disabled=true;
			document.getElementById("bta4text").style.backgroundColor='#CCCCCC';
		break;
		case "3" :
	    	document.getElementById("bta2text").disabled=true;
			document.getElementById("bta2text").style.backgroundColor='#CCCCCC';
	    	document.getElementById("bta3text").disabled=false;
			document.getElementById("bta3text").style.backgroundColor='#ffffff';
	    	document.getElementById("bta4text").disabled=true;
			document.getElementById("bta4text").style.backgroundColor='#CCCCCC';
		break;
		case "4" :
	    	document.getElementById("bta2text").disabled=true;
			document.getElementById("bta2text").style.backgroundColor='#CCCCCC';
	    	document.getElementById("bta3text").disabled=true;
			document.getElementById("bta3text").style.backgroundColor='#CCCCCC';
	    	document.getElementById("bta4text").disabled=false;
			document.getElementById("bta4text").style.backgroundColor='#ffffff';
		break;
		default :
	    	document.getElementById("bta2text").disabled=true;
			document.getElementById("bta2text").style.backgroundColor='#CCCCCC';
	    	document.getElementById("bta3text").disabled=true;
			document.getElementById("bta3text").style.backgroundColor='#CCCCCC';
	    	document.getElementById("bta4text").disabled=true;
			document.getElementById("bta4text").style.backgroundColor='#CCCCCC';
		break;
	}
}


function displayradio_evt(target){

	var triger = document.getElementsByName("province")[target-1];
	if(triger){
		if(!triger.options[triger.selectedIndex].value==''){
			document.getElementById("zone"+target+"-1").disabled=false;
			document.getElementById("zone"+target+"-2").disabled=false;
			document.getElementById("zone"+target+"-3").disabled=false;
			document.getElementById("zone"+target+"-4").disabled=false;	
		}
		else{
			document.getElementById("zone"+target+"-1").disabled=true;
			document.getElementById("zone"+target+"-2").disabled=true;
			document.getElementById("zone"+target+"-3").disabled=true;
			document.getElementById("zone"+target+"-4").disabled=true;
		}
	}
}

function displaytext_evt(target){
	switch(target){
		case "0" :
			document.getElementById("ft1text").disabled=true;
			document.getElementById("ft1text").style.backgroundColor='#CCCCCC';
			document.getElementById("ft2text").disabled=true;
			document.getElementById("ft2text").style.backgroundColor='#CCCCCC';
			document.getElementById("ft3text").disabled=true;
			document.getElementById("ft3text").style.backgroundColor='#CCCCCC';
		break;
		default :
			var triger = document.getElementsByName("f"+target)[0];
			if(!triger.options[triger.selectedIndex].value==''){
		    	document.getElementById("ft"+target+"text").disabled=false;
				document.getElementById("ft"+target+"text").style.backgroundColor='#ffffff';
			}
			else{
				document.getElementById("ft"+target+"text").disabled=true;
				document.getElementById("ft"+target+"text").style.backgroundColor='#CCCCCC';
			}
		break;
	}
}

//end fukasawa 2010.4.15
