function openWin(URL,winName,myWidth,myHeight){
switch(winName) {
case 'CenterL':
newWin1 = window.open(URL,winName,'fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width='+myWidth+',height='+myHeight+',scrollbars=1');
	var xpos = (newWin1.screen.width-myWidth)/2;
	var ypos = (newWin1.screen.height-myHeight)/2;
	newWin1.moveTo(xpos,ypos);
	newWin1.focus();
	break;
case 'CenterS':
newWin2 = window.open(URL,winName,'fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width='+myWidth+',height='+myHeight+',scrollbars=1');
	var xpos = (newWin2.screen.width-myWidth)/2;
	var ypos = (newWin2.screen.height-myHeight)/2;
	newWin2.moveTo(xpos,ypos);
	newWin2.focus();
	break;
case 'Left':
newWin3 = window.open(URL,winName,'fullscreen=0,location=0,resizable=1,status=1,toolbar=1,menubar=1,width='+myWidth+',height='+myHeight+',scrollbars=1');
	newWin3.moveTo(0,0);
	newWin3.focus();
	break;
case 'PrintFile':
yourHeight = screen.height-230;
newWin4 = window.open(URL,winName,'fullscreen=0,location=1,resizable=1,status=1,toolbar=1,menubar=1,width='+myWidth+',height='+yourHeight+',scrollbars=1');
	newWin4.moveTo(0,0);
	newWin4.focus();
	break;
default:
newWin = window.open(URL,winName,'fullscreen=0,location=1,resizable=1,status=1,toolbar=1,menubar=1,width='+myWidth+',height='+myHeight+',scrollbars=1');
newWin.focus();
	}
}

function shopOpen1(URL){
shopWin1 = window.open(URL,'shop1','fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width=350,height=650,scrollbars=1');
	shopWin1.moveTo(0,0);
	shopWin1.focus();
}

function shopOpen2(URL){
shopWin2 = window.open(URL,'shop2','fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width=480,height=700,scrollbars=1');
	shopWin2.moveTo(0,0);
	shopWin2.focus();
}

function shopOpen3(URL){
shopWin3 = window.open(URL,'shop3','fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width=550,height=700,scrollbars=1');
	shopWin3.moveTo(0,0);
	shopWin3.focus();
}

function shopOpenMisaki(URL){
shopWin3 = window.open(URL,'misaki','fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width=450,height=280,scrollbars=0');
	shopWin3.moveTo(0,0);
	shopWin3.focus();
}

function subwindow(URL){
sub = window.open(URL,'comment','fullscreen=0,location=0,resizable=1,status=1,toolbar=0,menubar=0,width=600,height=500,scrollbars=0');
	sub.moveTo(0,0);
	sub.focus();
}

function openCart() {
   hCartWindow = window.open("https://www.ken-on.co.jp/k-shop/register/index.php?mode=cart", "cartwindow", "width=800,height=600,scrollbars=yes,resizable=yes,status=yes");
}
