// 清和綜合建物
// 共通Java Script

////////// SHOW & HIDE ELEMENTS //////////

function showsubmenu(showid,showbtnid){
	if(document.getElementById){
		document.getElementById(showid).style.display = "block";
		document.getElementById(showbtnid).style.visibility = "hidden";
	}
}

function hidesubmenu(hideid,hidebtnid){
	if(document.getElementById){
		document.getElementById(hideid).style.display = "none";
		document.getElementById(hidebtnid).style.visibility = "visible";
	}
}


////////// POPUP WINDOW //////////

// 最小構成
function openwin(url,name,width,height) {
	subWin=window.open(url,name,"width="+width+",height="+height+",location=no,directories=no,scrollbars=no,resizable=no");
	subWin.focus();
	return false;
	}

// 要素指定有
function openwinfts(url,name,width,height,scroll,resize,menu,location,tool) {
	subWin=window.open(url,name,"width="+width+",height="+height+",scrollbars="+scroll+",resizable="+resize+",menubar="+menu+",location="+location+",toolbar="+tool);
	subWin.focus();
	return false;
	}

// 親ウィンドウ制御
function openerwin(url) {
	prntWin=window.opener;
	prntWin.location.href=url;
	prntWin.focus();
	return false;
	}

// 物件紹介：空室情報参照専用
function openvacroom(url,name) {
	subWin=window.open(url,name,"width=500,height=550,location=no,directories=no,scrollbars=yes,resizable=yes,menubar=yes");
	subWin.focus();
	return false;
	}


////////// OPEN PRINT WINDOW //////////

function openPrintWin() {
	window.open(window.location.href, "printEpiWindow");
}


////////// CLOSE WINDOW //////////

function closewin() {
	window.close();
	return false;
	}


////////// HISTORY BACK //////////

function historyback() {
	history.back();
	return false;
	}


