function dodetail(a) {
document.details.bukken_cd.value = a;
document.details.submit();
}

function domail() {
 chk = 0;
 for(i = 0; i < document.list.elements.length; i++) {
if((document.list.elements[i].name == "bukken_cd") && (document.list.elements[i].checked)) { chk = 1; }
 }
 if(chk) {
document.list.target = "_blank";
document.list.submit();
} else {
 alert("お問い合わせ物件が選択されていません");
 }
 }

function subwin(url){
window.open(url,"window1","width=360,height=500");
}

function viewimage(estate ,img, w, h) {
subwin2("view_img.asp?estate_comp="+ estate +"&disp_image="+ escape(img) +"&w="+ w +"&h="+ h, w, h);
}
function subwin2(url, w, h){
w = w + 40
h = h + 110
window.open(url,"window2","width=" + w + ",height=" + h);
}

//検索条件選択チェック後検索結果を画像で表示するかしないかを判断しSubmitする
function check_re(dispkbn) {

document.r_search.dispkbn.value=dispkbn;
document.r_search.action='result.asp?v='+dispkbn+'#tab'
document.r_search.submit();
}
//地図表示用ウィンドウをオープン
function newwin(url) {
var nWindow;
nWindow = window.open("", "Map", "width=600,height=620,toolbar=no,location=no,statusbar=no,menubar=no,resizable=yes,scrollbars=yes");
nWindow.location.href = url;
nWindow.focus();

}

function openestate(f_name,c_tel,md){
//document.detail.url.value = url;
//document.forms[0].name.value=f_name;
document.forms[f_name].action = "result.asp?c_tel=" + c_tel+ "&md=" + md+ "&dispkbn=1";
document.forms[f_name].submit();
}