function openLivePicHTML(theURL) {
    // window.open(theURL);
    // actcubeと既存でサブウィンドウサイズを変更させます
    if (theURL.indexOf("actcube",0) == -1) {
        window.open(theURL,'VOH','resizable=1,scrollbars=0,menubar=0,directories=0,status=0,location=0,width=740,height=640');
    } else {
        window.open(theURL,'VOH','resizable=1,scrollbars=0,menubar=0,directories=0,status=0,location=0,width=487,height=620');
    }
}

function openLivePicHTML2(theURL) {
    window.open(theURL,'VOH','resizable=1,scrollbars=0,menubar=0,directories=0,status=0,location=0,width=690,height=525');
}

function clickmail(){
// 2009.03.16 T.Tsuihiji add
// 選択された物件コードをURLに付与する
  var sBukkenCode = "";
  if( document.MailForm.sInquire.value != null || document.MailForm.sInquire.value != "" ){
    sBukkenCode = "&bkcd=" + document.MailForm.sInquire.value;
  }
  
  if(document.MailForm.sUserType.value != "00"){
    // 2009.03.05 T.Tsuihiji add
    document.MailForm.action = "https://www.realplan.jp/bkdetail/anyfile.jsp?login=TRUE" + sBukkenCode;
    document.MailForm.submit();
    return false;
  }
  else{
    // 2009.03.05 T.Tsuihiji repair
    // document.MailForm.action = "https://www.realplan.jp/MsgDispatch/anyfile.jsp?sKind=email&ssl=true";
    document.MailForm.action = "https://www.realplan.jp/bkdetail/anyfile.jsp?login=FALSE" + sBukkenCode;
    document.MailForm.submit();
    return false;
  }
}

function clickbukken(){
  if(document.BukkenForm.sUserType.value != "00"){
    document.BukkenForm.submit();
    return false;
  }
  else{
    //clickwin = window.open("https://www.realplan.jp/client/CLT209.jsp?sKind=bukken&ssl=true", "clickwin", "width=560,height=430,toolber=no,directories=no,menubar=no,scrollbars=yes,resizable=yes");
    //clickwin.focus();
    location.href="https://www.realplan.jp/userlogin/ULN111.jsp?rpmenu=30004&realplan=true"
    return false;
  }
}

function clickAddKouho(){
	clickbukken();
//	document.BukkenForm.submit();
}

function clickSyoukai(){
	document.SyoukaiForm.submit();
}
function moveNext(no){
    if(no == 1){
		document.mvBeforeForm.submit();
	}else if(no == 2){
		document.mvNextForm.submit();
	}
}

// 3D間取り
function open3DMadori(theURL) { //v2.0
  window.open(theURL,'sub','width=750,height=550');
}

// ComInfo用別Window
function openComInfo(theURL) { 
  window.open(theURL,'sub','width=1024,height=600,toolbar=no,location=no,status=no,menubar=no,resizable=yes');
}

