/*
-----------------------------------------------------------
Mitsui Fudosan Co., Ltd.

http://www.31sumai.com/

JavaScript Settingfile
-----------------------------------------------------------
*/
//お部屋詳細情報表示
function jsRoomDetail(url) {
	var winRoom = "";
	winRoom = window.open(url,"winRoom","scrollbars=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,top=0,left=0");
	winRoom.opener = self;
	winRoom.focus();
}

//資料請E
function jsRequestDocument(obj) {
	window.open('',obj.target,"scrollbars=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,top=0,left=0");
	return true;
}

//お気に入Eｱd媛E
function jsMyBukkenAdd(obj) {
	window.open('',obj.target,"height=500,width=720,scrollbars=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,top=0,left=0");
	return true;
}

//お気に入りお部屋に追加
function jsMyJyutoAdd(obj) {
	window.open('',obj.target,"height=500,width=720,scrollbars=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,top=0,left=0");
	return true;
}

//路線検項E
function jsRosenSearch(obj){
window.open('',obj.target,"toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=770,height=650");
return true;
}

// ########## Delete Error Message
window.onerror = null;

// ########## Random Images
	ranimg = new Array(); 
	ranimg[0]="http://sumai.31sumai.com/hiroshima/image/hrs001_main_001.jpg"; 
	ranimg[1]="http://sumai.31sumai.com/hiroshima/image/hrs001_main_001.jpg";
	xx = Math.floor(ranimg.length*Math.random()); 
	ranimg = ranimg[Math.floor(xx)]; 
	document.write ('<style type="text/css"><!-- .mainImg {background: url('+ ranimg +') no-repeat;}--></style>'); 
	
// ########## Sub Window Open
var newwin;
function WinOpen(URL,WN,F){
	if(newwin){
		if(!newwin.closed){
			newwin = window.open(URL,WN,F);
			newwin.focus();
		}else{
			newwin = window.open(URL,WN,F);
		}
	}else{
		newwin = window.open(URL,WN,F);
	}
}
//20071004ADD

function OpenWindow(obj){
window.open('',obj.target,'');
return true;
}
// E N D
