
//+++++++++++++++++++//
//■ 確認 ダイアログ //
//+++++++++++++++++++//
function common_check(msg){
	if(msg){ msg += "\n"; }
	else{ var msg = ""; }
	msg += "良ければＯＫを押してください。";
	if(confirm(msg)){ return true; }
	else{ return false; }
}


//+++++++++++++++++++++++++//
//■ クーポンチケット 開く //
//+++++++++++++++++++++++++//
function CouponTicket(root_path, shop_id){

	if(!root_path){ return false; }
	else if(!shop_id){ return false; }

	var ww = 750;
	var hh = 500;

	// 画面サイズの調整
	if(!ww){
		if(ww = screen.width){ ww = ww <= 1000 ? ww -= 100 : ww *= 0.9; }
	}
	if(!hh){
		if(hh = screen.height){ hh = hh <= 800 ? hh -= 100 : hh *= 0.9; }
	}
	win = window.open(root_path+'coupon_ticket/id='+shop_id+'/', "coupon_ticket", "width="+ww+", height="+hh+", left=0, top=0, screenX=0, screenY=0, location=no, menubar=no, directories=no, status=no, resizable=no, scrollbars=yes");
	win.focus();
}


//+++++++++++++++++++++++++++//
//■ コンパニオン ページ開く //
//+++++++++++++++++++++++++++//
function Lady(lady_id, shop_id){
	var form = document.base_info;

	var root_path = form.root_path.value ? form.root_path.value : false;
	if(form.shop_id && form.shop_id.value){ var shop_id = form.shop_id.value; }

	if(!root_path) return false;
	if(!shop_id) return false;
	if(!lady_id) return false;

	var ww = 800;
	var hh = 800;

	// 画面サイズの調整
	if(!ww){
		if(ww = screen.width){ ww = ww <= 1000 ? ww -= 100 : ww *= 0.9; }
	}
	if(!hh){
		if(hh = screen.height){ hh = hh <= 800 ? hh -= 100 : hh *= 0.9; }
	}
	win = window.open(root_path+'lady/'+shop_id+'/'+lady_id+'/', "lady", "width="+ww+", height="+hh+", left=0, top=0, screenX=0, screenY=0, location=no, menubar=no, directories=no, status=no, resizable=no, scrollbars=no");
	win.focus();
}


//++++++++++++++++++++++++++++++++++++//
//■ オススメ コンパニオン ページ開く //
//++++++++++++++++++++++++++++++++++++//
function PickupLady(url){

	if(!url){ return false; }

	var ww = 800;
	var hh = 800;

	// 画面サイズの調整
	if(!ww){
		if(ww = screen.width){ ww = ww <= 1000 ? ww -= 100 : ww *= 0.9; }
	}
	if(!hh){
		if(hh = screen.height){ hh = hh <= 800 ? hh -= 100 : hh *= 0.9; }
	}
	win = window.open(url, "lady", "width="+ww+", height="+hh+", left=0, top=0, screenX=0, screenY=0, location=no, menubar=no, directories=no, status=no, resizable=no, scrollbars=no");
	win.focus();
}



/*
*/
//++++++++++++//
//■ 地図表示 //
//++++++++++++//
function openMap(sname, url){
	var win = new Window({className: "alphacube", width:500, height:330, zIndex: 100, title: sname, url: url})
	//win.getContent().update("<h1>aa"+sname+"</h1>");
	win.showCenter();
	//if(win) win.setURL(url);
}


//++++++++++++++++//
// 右クリック禁止 //
//++++++++++++++++//
function ContextMenu(){

	// getElementsByTagName( '禁止するタグ要素' )
	var html_elements = document.getElementsByTagName( 'html' );
	for( var i in html_elements ){
		html_elements[i].oncontextmenu = function(){
			return false;
		}
	}
}




