<!--
function ResizeImgSub(imgObj, imgSize)
{
	var intWidth = imgObj.width;
	var intHeight = imgObj.height;
	var intPercent;

	if (intWidth > imgSize || intHeight > imgSize) {
		if (intWidth > intHeight) {
			intPercent = imgSize / intWidth * 100;
			intHeight = Math.round (intHeight * intPercent / 100);
			intWidth = imgSize;
		}
		else {
			intPercent = imgSize / intHeight * 100;
			intWidth = Math.round (intWidth * intPercent / 100);
			intHeight = imgSize;
		}
	}
	imgObj.visibleImgObj.width = intWidth;
	imgObj.visibleImgObj.height = intHeight;
}

function ResizeImg(imgObj, imgSize)
{
	var imgOriginal = new Image();
	imgOriginal.visibleImgObj = imgObj;
	imgOriginal.onload = function() { ResizeImgSub(this, imgSize); }  
	imgOriginal.src = imgObj.src;
}

//widthÁ¶Àý¿ëÀ¸·Î ResizeImg_widthÇÔ¼ö2°³Ãß°¡ 2011.4.22
function ResizeImg_width_Sub(imgObj, imgSize)
{
	var intWidth = imgObj.width;
	var intHeight = imgObj.height;
	var intPercent;

	if (intWidth > imgSize || intHeight > imgSize) {
		if (intHeight > 400) {
			intPercent = 249 / intHeight * 100;
			intWidth = Math.round (intWidth * intPercent / 100);
			intHeight = 249;
		}
		else {
			intPercent = imgSize / intWidth * 100;
			intHeight = Math.round (intHeight * intPercent / 100);
			intWidth = imgSize;
		}
	}
	imgObj.visibleImgObj.width = intWidth;
	imgObj.visibleImgObj.height = intHeight;
}

function ResizeImg_width(imgObj, imgSize)
{
	var imgOriginal = new Image();
	imgOriginal.visibleImgObj = imgObj;
	imgOriginal.onload = function() { ResizeImg_width_Sub(this, imgSize); }  
	imgOriginal.src = imgObj.src;
}

function OpenImage(imgRef)
{
	var intWidth = 100;
	var intHeight = 100;
	var intX = Math.floor((screen.availWidth-(intWidth+12))/2);
	var intY = Math.floor((screen.availHeight-(intHeight+60))/2);

	var loadingMsg = "<table width='100%' height='100%'>";
	loadingMsg += "<tr><td valign='center' align='center'><font color='#FF6600' face='Verdana' style='font-size:8pt'>Now Loading...</font></td></tr>";
	loadingMsg += "</table>";

	with(window.open("","",'height=' + intHeight + ',width=' + intWidth + ',top=' + intY + ',left=' + intX + ',scrollbars=no,resizable=yes'))
	{
		document.write(
			"<html>",
			"<head>",
			"<title>::: BIDBUY - ³²´Ù¸¥ ³ª¸¦ À§ÇÑ Global Agency :::</title>",
			"<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>",
			"<body topmargin=0 rightmargin=0 bottommargin=0 leftmargin=0>",
			"</head>",
			loadingMsg,
			"<img src=\""+imgRef+"\" hspace='0' vspace='0' border='0' OnMouseDown=\"window.close();\" OnLoad=\"document.body.removeChild(document.body.children[0]);window.resizeTo(this.width+12,this.height+60);window.moveTo(Math.floor((screen.availWidth-(this.width+12))/2),Math.floor((screen.availHeight-(this.height+60))/2));\" alt='ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.' style='cursor:hand;'>",
			"<table width='100%' border='0' cellpadding='0' celspacing='0' height='30'><tr><td style='font-family:µ¸¿ò; font-size:8pt;' align='center'>ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.</td></tr></table>",
			"</body>",
			"</html>");
		focus();
	}
}


//-->
