<!--
//店舗を検索
function tenpolink(){

	if(document.tenpo.prf.value==''){
		alert("都道府県を選択して下さい。");
    }else{
		document.tenpo.submit();
	}
}

//駅名から検索
function ekilink(){

	if(document.eki.ekinam.value==''){
		alert("駅名を入力して下さい。");
	}else if(document.eki.ekinam.value=='駅名を入力'){
		document.eki.ekinam.value='';
		document.eki.ekinam.focus();
    }else{
		document.eki.submit();
	}
}

//物件タイプ別検索
function bkntypelink(ptl){

	var vlue = document.getElementById("searchtype_select").value;
	var surl = "/rent/bkntype/" + vlue + "/index.asp"
	if(ptl != ""){
		surl += "?ptl=" + ptl;
	}

	window.location.href = surl;
}

//家賃相場Window
function openYachinWindow(url, w, h){

	var win;

	win = window.open(url, 'YachinWin', 'toolbar=yes,location=no,directoryies=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h);
    win.focus();
}

//人気ランキングWindow
function openRankingWindow(url, w, h){

	var win;

	win = window.open(url, 'RankingWin', 'toolbar=yes,location=no,directoryies=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h);
    win.focus();
}

//ｸﾞﾛｰﾊﾞﾙﾅﾋﾞｹﾞｰｼｮﾝからの都道府県初期設定
function SetPref()
{
	//変数宣言
	var tmp = "";
	var prm = "";
	var val = "";
	var jiscd = "";
	var prfcd = "";

	//クッキー値取得
	tmp = GetJknCookie();
	tmp = decodeURIComponent(tmp);
	tmp = tmp.replace("?", "");

	//パラメータの配列化
	prm = tmp.split("&");

	//必要パラメータの選定
	for(var i=0; i<prm.length; i++)
	{
		val = prm[i].split("=");
		if (val.length == 2)
		{
			//JIS住所CD取得
			if (val[0] == 'jiscd')
			{
				jiscd = val[1];
			}
			//都道府県CD取得
			if (val[0] == 'prf')
			{
				prfcd = val[1];
			}
		}
	}

	if(prfcd == '')
	{
		//都道府県CD取得
		if(jiscd != '')
		{
			prfcd = jiscd.substr(0,2);
		}
		else
		{
			prfcd = '13';
		}
	}

	//HTML出力
	document.getElementById('navi_area').innerHTML = '<a href="/rent/pref.asp?kt=01&amp;kh=1&amp;prf=' + prfcd + '">地域から検索</a>';
	document.getElementById('navi_rail').innerHTML = '<a href="/rent/pref.asp?kt=01&amp;kh=2&amp;prf=' + prfcd + '">駅・路線から検索</a>';
	document.getElementById('navi_school').innerHTML = '<a href="/rent/pref.asp?kt=01&amp;kh=4&amp;prf=' + prfcd + '">学校・施設から検索</a>';
	document.getElementById('navi_shop').innerHTML = '<a href="/rent/tenposrch/index.asp?prf=' + prfcd + '">店舗を検索</a>';
}
-->


