
function rtrvsubmit(fm) {
	var host= location.hostname;                  // host_name
//	alert(host);
	var keywd=  document.getElementById('keywd').value;
	var price1= document.getElementById('price1').value;
	var price2= document.getElementById('price2').value;

//エリア
	var area= "";
	var oElements=document.getElementsByName("rarea[]");
	for(i=0; i<oElements.length; i++) {
		if( oElements[i].checked ) {
			data= oElements[i].value;             // 1R
			if( data != "" ) {
				if( area != "" )  area+= ":";     // xxx:yyy:zzz
				area+= data;
	}	}	}
	var rarea= area;


	var param= "";
	param= binds(param, "");                      // エリア
	param= binds(param, rarea);                   // 検索エリア
	param= binds(param, "");                      // 駅
	if(  price1=="0万" && price2=="9999999万" )  price= "";
	else
		price= price1 + ":" + price2;
	param= binds(param, price);                   // 賃金
	param= binds(param, "");                      // 間取り
	param= binds(param, "");                      // 条件
	param= binds(param, keywd);                   // キーワード


// urls=ジャンプ先URL
	param= encodeURI(param);                      // エンコード（UTF-8に変換）
	urls= 'http://' + host + '/chintai/' + param + ".html";
//alert( urls + "##");

	location.href= urls;
	return false;
}
function binds(param, data) {                     // パラメータ結合
	return param + data +"-";
}

