<!--
//var message="¿À¸¥ÂÊ ¹öÆ°À» »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù."; // °æ°í ¸Þ¼¼Áö¸¦ ³ÖÀ¸·Á¸é ¿©±â¿¡ ÀÔ·ÂÇÕ´Ï´Ù
//function clickIE() {if (document.all) {(alert(message));return false;}}
//function clickNS(e) {if 
//(document.layers||(document.getElementById&&!document.all)) {
//if (e.which==2||e.which==3) {(alert(message));return false;}}}
//if (document.layers) 
//{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
//else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

//document.oncontextmenu=new Function("return false") //ÀÌºÎºÐÀÖÀ½ ¿À¸¥ÂÊ ¹öÆ° Å¬¸¯½Ã message ÀÛµ¿ ¾ÈµÊ


//ÆË¾÷Ã¢ °øÅë ÇÔ¼ö 
function pop(url, width_size, height_size, top_size, left_size, scroll_chk) {
	window.open(url,'pop_up',"width="+width_size+", height="+height_size+", top="+top_size+", left="+left_size+", scrollbars="+scroll_chk);
}
function popuppage(url, pname, width_size, height_size, top_size, left_size, scroll_chk) {
	window.open(url, pname,"width="+width_size+", height="+height_size+", top="+top_size+", left="+left_size+", scrollbars="+scroll_chk);
}

//´Þ·ÂÃ¢ °øÅë ÇÔ¼ö
function calendar_new(url,wid,hei,scr) 	{
	xCoord = event.clientX;
	yCoord = event.clientY;
	void window.open(url,'','width='+wid+', height='+hei+', top='+yCoord+', left='+xCoord+', scrollbars='+scr+' ');
}

//ÀÌ¹ÌÁö ÆÄÀÏ ¿ÀÇÂ
function PopImage(fp, iw, ih) {
	var url = "/Common/ImageView.asp?fpath="+ fp +"&imgW="+ iw +"&imgH="+ih;
	pop(url, iw, ih,'10','10','no');
}

//ÆÄÀÏ ´Ù¿î·Îµå
function DownFile(fp, fn) {
	var url = "/Common/FileDownWIn.asp?fpath="+ fp +"&file="+ fn;
	var cw = screen.availWidth; //È­¸é ³Êºñ
	var ch=screen.availHeight; //È­¸é ³ôÀÌ
	var sw=400;//¶ç¿ï Ã¢ÀÇ ³Êºñ
	var sh=200;//¶ç¿ï Ã¢ÀÇ ³ôÀÌ
	var ml=(cw-sw)/2;//°¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ xÀ§Ä¡
	var mt=(ch-sh)/2;//°¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ yÀ§Ä¡
	//window.open(url,'tst','width='+sw+',height='+sh+',top='+mt+',left='+ml+',resizable=no,scrollbars=no');
	location.href = url;
}

//ÆÄÀÏ ´Ù¿î·Îµå
function DownFileM(fp, fn,code,idx) {
	//var url = "/Common/pdfview.asp?fpath="+ fp +"&file="+ fn;
	var cw = screen.availWidth; //È­¸é ³Êºñ
	var ch=screen.availHeight; //È­¸é ³ôÀÌ
	var sw=400;//¶ç¿ï Ã¢ÀÇ ³Êºñ
	var sh=200;//¶ç¿ï Ã¢ÀÇ ³ôÀÌ
	var ml=(cw-sw)/2;//°¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ xÀ§Ä¡
	var mt=(ch-sh)/2;//°¡¿îµ¥ ¶ç¿ì±âÀ§ÇÑ Ã¢ÀÇ yÀ§Ä¡
	//window.open(url,'tst','width='+sw+',height='+sh+',top='+mt+',left='+ml+',resizable=no,scrollbars=no');
	window.open("/Common/PdfView.asp?fpath="+ fp +"&file="+ fn +"&code="+code+"&idx="+idx+"", "PDFView", "fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
}

// ÇÃ·¡½¬ ¿¬°á °í¸®
function INflash(src,width,height) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="'+width+'" height="'+height+'"> ');
	document.write('<param name=movie value="'+src+'">');
	document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
	document.write('<param name=wmode Value=Transparent>');
	document.write('<param name=quality value=high>');
	document.write('<embed src="'+src+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}

// µ¿¿µ»ó ¿¬°á °í¸®
function INmovie(src, width, height) {
	document.write('<embed src="' + src + '" width="' + width + '" height="' + height + '"></embed>');
}

//ºÐ·ù ¸®½ºÆ® ¼±ÅÃ ÇÔ¼ö
function goCateList(url,TableName,mode,cateL,cateM,cateS) {
	var goVal;

	goVal=url+".asp?TableName="+TableName
	goVal=goVal+"&mode="+mode
	goVal=goVal+"&cateL="+cateL
	goVal=goVal+"&cateM="+cateM
	goVal=goVal+"&cateS="+cateS

	window.location=goVal;
}

//ÆäÀÌÁöÀÌµ¿
function gotopage(url) {
	var goVal;

	goVal=url+".asp"

	window.location=goVal;
}

//ºÐ·ù µî·Ï,¼öÁ¤½Ã Ã¼Å©ÇÔ¼ö
function cateInsert(sel) {
	var form=window.frmCate;

	if (sel=="L") {
		if (CheckStr(form.name1.value, " ", "")==0) {
				alert("1Â÷ ºÐ·ù¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
				form.name1.value=""
				form.name1.focus();
				return;
		}
	} else if (sel=="M") {
		if (form.cateL.value=="")	{
			alert("1Â÷ ºÐ·ù¸¦ ¸ÕÀú ¼±ÅÃÇÏ¼¼¿ä");
			form.name2.value=""
			return;
		}

		if (CheckStr(form.name2.value, " ", "")==0) {
			alert("2Â÷ ºÐ·ù¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			form.name2.value=""
			form.name2.focus();
			return;
		}
	}else if (sel=="S") {
		if (form.cateL.value=="")	{
			alert("1Â÷ ºÐ·ù¸¦ ¸ÕÀú ¼±ÅÃÇÏ¼¼¿ä");
			form.name2.value=""
			return;
		}

		if (form.cateM.value=="") {
			alert("2Â÷ ºÐ·ù¸¦ ¸ÕÀú ¼±ÅÃÇÏ¼¼¿ä");
			form.name2.value=""
			return;
		}

		if (CheckStr(form.name3.value, " ", "")==0) {
			alert("3Â÷ ºÐ·ù¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			form.name3.value=""
			form.name3.focus();
			return;
		}
	} 

	form.code.value=sel;
	form.submit();
}

//°ø¹éÃ¼Å© ÇÔ¼ö
function CheckStr(strOriginal, strFind, strChange)
{
	var position, strOri_Length;
	position = strOriginal.indexOf(strFind); 
    
	while (position != -1){
		strOriginal = strOriginal.replace(strFind, strChange);
		position = strOriginal.indexOf(strFind);
	}

	strOri_Length = strOriginal.length;
	return strOri_Length;
}
//-->

function Zippop(pageUrl,idx){		
		window.open("/Common/Zipcode.asp", 'IntraNet','width=500,height=400,top=50,left=50,toolbar=no,scrollbars=auto');
	}
function facZippop(pageUrl,idx){		
		window.open("/Common/Zipcode.asp?ch=fac", 'IntraNet','width=500,height=400,top=50,left=50,toolbar=no,scrollbars=auto');
	}