// ·Ôµ¥ ¸é¼¼Á¡ ºä¾î 01

function lotte_viewer(page) {

	var screenX = screen.width;
	var screenY = screen.height;
	var winl	= 0; 
	var wint	= 0;
	var mode	= "M";
	var endp;

	if(!endp) {endp="-1";}

	if(screenX<1024 && screenY<768) {
		iWidth	= 800;
		iHeight	= 579;
		mode	= "S";
	} else if(screenX>=1024 && screenX<1280 && screenY>=768 && screenY<1024) {
		iWidth	= 1024;
		iHeight	= 768;
		mode	= "M";
	} else if(screenX==1280 && screenY==1024) {
		iWidth	= 1280;
		iHeight	= 1024;
		mode = "L";
	} else {
		iWidth	= 1280;
		iHeight	= 1024;
		winl = (screen.width - iWidth) / 2; 
		wint = (screen.height - iHeight) / 2;
		mode = "L";
	}

	winl = (screen.width - iWidth) / 2; 
	wint = (screen.height - iHeight) / 2;

	theForms = "http://www.casa.co.kr/catalog/newpopviewer/lotte_catalogviewer.jsp";
	theFeats = "width="+iWidth+",height="+iHeight+",left="+winl+",top="+wint+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";

	viewerWin=window.open("about:blank","MVIEW",theFeats)
	viewerWin.document.writeln("<body>")
	viewerWin.document.writeln("<form name=sendForm method=post action="+theForms+">")	
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=mode VALUE=" + mode + ">")
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=sPage VALUE=" + page + ">")
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=ePage VALUE=" + endp + ">")
	viewerWin.document.writeln("<\/form>")
	viewerWin.document.writeln("<\/body>")
	viewerWin.document.sendForm.submit();
	viewerWin.focus();
} 



// ·Ôµ¥ ¸é¼¼Á¡ ºä¾î 02

function lotte_viewer2(catalogCd, page, endp) {

	var screenX = screen.width;
	var screenY = screen.height;
	var winl	= 0; 
	var wint	= 0;
	var mode	= "M";

	if(!endp) {endp="-1";}

	if(screenX<1024 && screenY<768) {
		iWidth	= 800;
		iHeight	= 579;
		mode	= "S";
	} else if(screenX>=1024 && screenX<1280 && screenY>=768 && screenY<1024) {
		iWidth	= 1024;
		iHeight	= 768;
		mode	= "M";
	} else if(screenX==1280 && screenY==1024) {
		iWidth	= 1280;
		iHeight	= 1024;
		mode = "L";
	} else {
		iWidth	= 1280;
		iHeight	= 1024;
		winl = (screen.width - iWidth) / 2; 
		wint = (screen.height - iHeight) / 2;
		mode = "L";
	}

	winl = (screen.width - iWidth) / 2; 
	wint = (screen.height - iHeight) / 2;

	theForms = "http://www.casa.co.kr/catalog/newpopviewer/lotte_catalogviewer.jsp";
	theFeats = "width="+iWidth+",height="+iHeight+",left="+winl+",top="+wint+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";

	viewerWin=window.open("about:blank","MVIEW",theFeats)
	viewerWin.document.writeln("<body>")
	viewerWin.document.writeln("<form name=sendForm method=post action="+theForms+">")
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=catalogCd VALUE=" + catalogCd + ">")
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=mode VALUE=" + mode + ">")
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=sPage VALUE=" + page + ">")
	viewerWin.document.writeln("<\INPUT TYPE=HIDDEN NAME=ePage VALUE=" + endp + ">")
	viewerWin.document.writeln("<\/form>")
	viewerWin.document.writeln("<\/body>")
	viewerWin.document.sendForm.submit();
	viewerWin.focus();
}

