//画像表示子ウィンドウ
function openImage(subHtml,bigImage){
	var subWin = window.open(subHtml + "?" + bigImage,"subWin","width=770,height=500,scrollbars=yes,resizable=yes,location=no,menubar=yes,left=10,top=30");
	subWin.focus();
}

//【ウインドウサイズ指定】画像表示子ウインドウ
function openImageBySetSize(subHtml,bigImage,width,height){
	var subWin = window.open(subHtml + "?" + bigImage,"subWin","width=" + width + ",height=" + height + ",scrollbars=yes,resizable=yes,location=no,menubar=yes,left=10,top=30");
	
	subWin.focus();

	if(width >= window.screen.availWidth-18 || height >= window.screen.availHeight-104){
	subWin.moveTo(0,0);
	subWin.resizeTo(window.screen.availWidth,window.screen.availHeight);
	}else{
	subWin.resizeTo(width+20, height+65);
	}
}

//Flash用画像表示子ウィンドウ
function openFlash(subHtml,bigImage){
	var subWin = window.open(subHtml + "?" + bigImage,"subWin","width=770,height=500,scrollbars=yes,resizable=yes,location=no,menubar=yes,left=10,top=30");
	subWin.focus();
}

//普通の子ウィンドウ
function openWin(subHtml){
	var subWin = window.open(subHtml,"subWin","width=770,height=500,scrollbars=yes,resizable=yes,location=no,menubar=yes,left=10,top=30");
	subWin.focus();
}

//マーケアプリケーション
function newopenWin(fileName){
	result = fileName.substring(0,fileName.length-5);
	URLStr ="/market/agreement/agreement.html"+"?"+result;
	var subWin = window.open(URLStr,"subWin","scrollbars=yes,menubar=no,screenX=70,screenY=30,left=70,top=30,width=800,height=650");
	subWin.focus();
}

//ランディング用サイズ指定ウインドウ
function openwinLanding(url, width, height) {
	var subWin = parent.window.open(url, "","width=" + width + ",height=" + height + ",scrollbars=yes,resizable=yes,location=no,menubar=no,left=10,top=30");
	subWin.focus();
}
