function openNewWindow(URL,winName,w,h,e) {
	/*return false; がきかないIE7のために。aタグにreturn false; を書かなくてもよい*/
	if(e.preventDefault){
		e.preventDefault();
		e.stopPropagation();
	}
	e.returnValue=false;
	e.cancelBubble=true;
	/*****************************/
	
	URL = encodeURI(URL);
	
	host = "http://www.apart.co.jp/"+URL;
	
	/*var option = "scrollbars=yes,resizable=yes,width="+width+",height="+height;*/
	
	
	var newwin = window.open(host,winName,"width="+w+",height="+h+",scrollbars=yes,resizable=yes,location=no");
	
	
	if(document.all){
		newwin.resizeTo(w,h);
		/*
		cw = newwin.document.body.clientWidth;
		ch = newwin.document.body.clientHeight;
		ow = newwin.document.body.clientWidth+20;
		oh = newwin.document.body.clientHeight+20;
		*/
		width = w+40;
		height = h+100;
		newwin.resizeTo(width,height);
	}else if(document.layers || document.getElementById){
		cw = newwin.innerWidth;
		ch = newwin.innerHeight;
		newwin.resizeTo(cw,ch);
		ow = newwin.window.outerWidth;
		oh = newwin.window.outerHeight;
		sw = ow - cw;
		sh = oh - ch;
		
		width = w+sw+40;
		height = h+sh+100;
		newwin.resizeTo(width,height);
	}
	
	
	
	
	/*var ww = newwin.window.outerWidth;
	var wh = newwin.window.outerHeight;*/
	
	newwin.focus();
	
	
}



function openGoogleMap(URL,winName,e) {
	
	/*return false; がきかないIE7のために。aタグにreturn false; を書かなくてもよい*/
	if(e.preventDefault){
		e.preventDefault();
		e.stopPropagation();
	}
	e.returnValue=false;
	e.cancelBubble=true;
	/*****************************/

	URL = encodeURI(URL);
	
	
	host = "http://www.apart.co.jp/googlemap?map="+URL;
	h = 500;
	w = 500;
	/*var option = "scrollbars=yes,resizable=yes,width="+width+",height="+height;*/
	
	
	var newwin = window.open(host,winName,"width="+w+",height="+h+",scrollbars=yes,resizable=yes,location=no");
	
	
	if(document.all){
		newwin.resizeTo(w,h);
		/*
		cw = newwin.document.body.clientWidth;
		ch = newwin.document.body.clientHeight;
		ow = newwin.document.body.clientWidth+20;
		oh = newwin.document.body.clientHeight+20;
		*/
		width = w+40;
		height = h+100;
		newwin.resizeTo(width,height);
	}else if(document.layers || document.getElementById){
		cw = newwin.innerWidth;
		ch = newwin.innerHeight;
		newwin.resizeTo(cw,ch);
		ow = newwin.window.outerWidth;
		oh = newwin.window.outerHeight;
		sw = ow - cw;
		sh = oh - ch;
		
		width = w+sw+40;
		height = h+sh+100;
		newwin.resizeTo(width,height);
	}
	
	
	
	
	/*var ww = newwin.window.outerWidth;
	var wh = newwin.window.outerHeight;*/
	
	newwin.focus();
	
	
}

