//--------------------------------------------------------------------------------
//　ウインドウオープン

var view = null;

function openView(url,h,s) {
	if(navigator.userAgent.indexOf("Mac") >= 0) h += 16;
	view = window.open(url,'view','width=600,height=' + h + ',scrollbars=' + (s ? 'yes':'no'));
	view.focus();
}

function closeView() {
	if(view == null) return;
	if(view.closed) return;
	view.close();
}

//--------------------------------------------------------------------------------
