	<!--
	window.name = "SiteWindow";
	self.focus()
	
	function side_banner(){
	 var maxWidth = 180;
	 var imgNum = document.side_banner.length;
	 for(i=0;i<imgNum;i++){
		if(document.side_banner[i].width > maxWidth) {
		 document.side_banner[i].width = maxWidth;
		}
	 }
	}
	
	function top_banner(){
	 var maxWidth = 740;
	 var imgNum = document.top_banner.length;
	 for(i=0;i<imgNum;i++){
		if(document.top_banner[i].width > maxWidth) {
		 document.top_banner[i].width = maxWidth;
		}
	 }
	}
	
	function gallery1(rsize){
	 var maxWidth = rsize;
	 var imgNum = document.gallery1.length;
	 for(i=0;i<imgNum;i++){
		if(document.gallery1[i].width > maxWidth) {
		 document.gallery1[i].width = maxWidth;
		}
	 }
	}
	
	function pgcontent(rsize){
	 var maxWidth = rsize;
	 var imgNum = document.pgcontent.length;
	 for(i=0;i<imgNum;i++){
		if(document.pgcontent[i].width > maxWidth) {
		 document.pgcontent[i].width = maxWidth;
		}
	 }
	}
	
	function gallery2(){
	 var maxWidth = 120;
	 var maxHeight = 120;
	 var newWidth = 0;
	 var newHeight = 0;
	 var imgw, imgh;
	 var imgNum = document.gallery2.length;
	 for(i=0;i<imgNum;i++){
		imgw = document.gallery2[i].width;
	 	imgh = document.gallery2[i].height;
		
		if(imgw > maxWidth) {		 
		 newWidth = maxWidth;
		 newHeight = Math.round((imgh*newWidth)/imgw);
		 document.gallery2[i].width = newWidth;
		 document.gallery2[i].height = newHeight;
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}
		if (newHeight > maxHeight) {
			document.gallery2[i].height = maxHeight;
			document.gallery2[i].width = Math.round((imgw*maxHeight)/imgh);
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}	
	 }
	}
	
	function product_thumb(){
	 var maxWidth = 130;
	 var maxHeight = 130;
	 var newWidth = 0;
	 var newHeight = 0;
	 var imgw, imgh;
	 var imgNum = document.product_thumb.length;
	 for(i=0;i<imgNum;i++){
		imgw = document.product_thumb[i].width;
	 	imgh = document.product_thumb[i].height;
		
		if(imgw > maxWidth) {		 
		 newWidth = maxWidth;
		 newHeight = Math.round((imgh*newWidth)/imgw);
		 document.product_thumb[i].width = newWidth;
		 document.product_thumb[i].height = newHeight;
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}
		if (newHeight > maxHeight) {
			document.product_thumb[i].height = maxHeight;
			document.product_thumb[i].width = Math.round((imgw*maxHeight)/imgh);
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}			
	 }
	}		
		
	function product_thumb2(){
	 var maxWidth = 130;
	 var maxHeight = 130;
	 var newWidth = 0;
	 var newHeight = 0;
	 var imgw, imgh;
	 var imgNum = document.product_thumb2.length;
	 for(i=0;i<imgNum;i++){
		imgw = document.product_thumb2[i].width;
	 	imgh = document.product_thumb2[i].height;
		
		if(imgw > maxWidth) {		 
		 newWidth = maxWidth;
		 newHeight = Math.round((imgh*newWidth)/imgw);
		 document.product_thumb2[i].width = newWidth;
		 document.product_thumb2[i].height = newHeight;
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}
		if (newHeight > maxHeight) {
			document.product_thumb2[i].height = maxHeight;
			document.product_thumb2[i].width = Math.round((imgw*maxHeight)/imgh);
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}	
	 }
	}
	
	function news_thumb(){
	 var maxWidth = 80;
	 var maxHeight = 80;
	 var newWidth = 0;
	 var newHeight = 0;
	 var imgw, imgh;
	 var imgNum = document.news_thumb.length;
	 for(i=0;i<imgNum;i++){
		imgw = document.news_thumb[i].width;
	 	imgh = document.news_thumb[i].height;		
		if(imgw > maxWidth) {		 
		 newWidth = maxWidth;
		 newHeight = Math.round((imgh*newWidth)/imgw);
		 document.news_thumb[i].width = newWidth;
		 document.news_thumb[i].height = newHeight;
		} else {
			newWidth = imgw;
			newHeight = imgh;
		}
		if (newHeight > maxHeight) {
			document.news_thumb[i].height = maxHeight;
			document.news_thumb[i].width = Math.round((imgw*maxHeight)/imgh);
		}	else {
			newWidth = imgw;
			newHeight = imgh;
		}
	 }
	}
	
	function galleryZoom(imgname) {
		
		document.all.galleryZoomTable.style.display = '';	
		
		document.all.galleryZoomImg.src = imgname;
		
		nImg = new Image();
		nImg.src = imgname;
		
		var wid = nImg.width; //Original Width
		var hit = nImg.height; //Original Height
		
		if(wid > hit) //너비가 높이보다 클경우
		{
			if(wid > 500 ) // 정해진 너비보다 클경우
			{ 
				x = (hit * 500) / wid
				document.all.galleryZoomImg.width=500;
				document.all.galleryZoomImg.height=x; //이미지에 적용
			}
			else
			{
				document.all.galleryZoomImg.width=wid;
				document.all.galleryZoomImg.height=hit; //이미지에 적용
			}
		}
		else
		{		
			if(hit > 500 ) //정해진 높이보다 클경우
			{ 
				x = (wid * 500) / hit
				document.all.galleryZoomImg.width=x;
				document.all.galleryZoomImg.height=500; //이미지에 적용
			}
			else
			{
				document.all.galleryZoomImg.width=wid;
				document.all.galleryZoomImg.height=hit; //이미지에 적용
			}
		}
	}
	
	function resizebannerRight(){
	 var maxWidth = 200;
	 var imgNum = document.resizebannerRight.length;
	 for(i=0;i<imgNum;i++){
		if(document.resizebannerRight[i].width > maxWidth) {
		 document.resizebannerRight[i].width = maxWidth;
		}
	 }
	}
	
	function OnClickImage(target_img)
	{
		var newImg;
		var newOnclickImgSrc;
	
		newImg = target_img;
		imgw = target_img.width;
				
		newOnclickImgSrc = newImg.src;
		window.open(newOnclickImgSrc,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800');
		
	}
	
	function newWindow_viewImage()
	{
		newwins = window.open("","viewImage","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=50,height=50");
		newwins.focus();
	}
	
	function newWindow_login()
	{
		newwins = window.open("","login","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=50,height=50");
		newwins.focus();
	}
	
	function newWindow_invoice()
	{
		newwins = window.open("","invoice","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=50,height=50");
		newwins.focus();
	}
	function form_check() 
	{																	
		
		if (document.board_reply.reauthor.value == "") {
			alert("Enter Name");
			document.board_reply.reauthor.focus();
			return;
		}
		
		if (document.board_reply.reemail.value == "") {
			alert("Enter E-mail");
			document.board_reply.reemail.focus();
			return;
		}
		
		if (document.board_reply.recontent.value == "") {
			alert("Enter Content");
			document.board_reply.recontent.focus();
			return;
		}
		document.board_reply.method = "post";
		document.board_reply.target = "_self";
		document.board_reply.action = "/theme2/pages_board_reply2.asp";
		document.board_reply.submit(); 
	}
	//-->