<!--
	function frm_search(frm) {
		if(frm.word.value == '') {
			alert('°Ë»öÇÏ½Ç ´Ü¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
			frm.word.focus();
			return false;
		}
	}

	function WriteCheck(str)	{

		var theForm = document.frmReg;
		
		if (theForm.Subject.value == "")  {
			alert("\n±Û Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.");
			theForm.Subject.focus();
			return;
		}

		if (theForm.Writer.value == "")  {
			alert("\nÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.");
			theForm.Subject.focus();
			return;
		}

		if (theForm.pwd.value == "")  {
			alert("\nºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.");
			theForm.pwd.focus();
			return;
		}
	  
		
		if (theForm.Content.value == "")  {
			alert("\n±Û ³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.");
			theForm.Content.focus();
			return;
		}

		if(theForm.filelist != null) {
			ln = theForm.filelist.length;
			theForm.filelist.options[0].selected = false;
			for(i=1;i<ln;i++) {
				theForm.filelist.options[i].selected = true;
			}
		}
		if(	theForm.SessionCode != null) {
			theForm.SessionCode.value = str;
		}
		theForm.submit();

	}

	function ResetData(){
		document.frmReg.reset();
	} 

	function img_display(form, ddd){
	 var con=form.Content.value;
	 form.Content.value=con + ddd;
	}

	function img_display1(form, ddd){
	 var con=form.Content.value;
	 form.Content.value=con + ddd;
	}

	function frm_del(code,pid){

		PopDel = window.open('/Module/_board/del_chk.asp?boardcode='+code+'&PID='+pid , 'PopDel', 'width=550,height=320,left=50,top=0,resizable=no,scrollbars=no');
		PopDel.focus();
		//var pass = prompt('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.','');
		//if(pass != '' && pass != null) {
		//	document.form_del.mode.value = 'del';
		//	document.form_del.strPwd.value = pass;
		//	document.form_del.action = '/Module/_board/board_del.asp';
		//	document.form_del.submit();
		//}
	}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		if(document.frmReg.pwd.value == '') {
			alert('»èÁ¦½Ã ºñ¹Ð¹øÈ£°¡ ÇÊ¿äÇÕ´Ï´Ù.');
			document.frmReg.pwd.focus();
		}else{
			if (confirm("Á¤¸»·Î »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")) {
				window.open(theURL+'&deletenumber='+document.frmReg.pwd.value,winName,features);
			}else{
				return;
			}
		}
	}

	function OpenView(code,pid) {
		openFind = window.open('/Module/_board/gallery_zoom.asp?boardcode='+code+'&PID='+pid , 'openFind', 'width=600,height=650,left=50,top=0,resizable=no,scrollbars=yes');
		openFind.focus();
	}

	function OpenViewPop(pagename,nString) {
		var features = 'width=600,height=400,left=100,top=50,resizable=no,scrollbars=yes'
		if(pagename == '') {
			alert('ÆäÀÌÁö¸íÀÌ Àß¸øµÇ¾ú½À´Ï´Ù.');
			return;
		}else{
			if(nString == '') {
				alert('ÇÊ¿äÇÑ °ªÀÌ Àü¼ÛµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
				return;
			}else{
				window.open(pagename+'?' + nString,'OpenViewPop',features);
			}
		}
	}

	function ShowSlide(boardcode,page,stpage) {
		PopSlide = window.open('/Module/_board/Pop_Slide.asp?boardcode='+boardcode+'&page='+page+'&stpage='+stpage , 'PopSlide', 'width=600,height=650,left=50,top=0,resizable=no,scrollbars=yes');
		PopSlide.focus();
	}

	function OpenFView(code,pid,page,stpage,key,word,etc1) {
		openFind = window.open('/Module/_board/F_pop.asp?boardcode='+code+'&PID='+pid+'&page='+page+'&startpage='+stpage+'&key='+key+'&word='+word+'&etc1='+etc1 , 'openFind', 'width=720,height=630,left=50,top=0,resizable=no,scrollbars=no,status=no');
		openFind.focus();
	}

	function SubCon(boardcode,pid,sYear,sMonth,sDay) {
		PopUrl = '/Module/_board/Board_Con.asp?boardcode='+boardcode+'&PID='+pid+'&sYear='+sYear+'&sMonth='+sMonth+'&sDay='+sDay
		PopCon = window.open(PopUrl,"PopCon",'width=660,height=600,top=50,left=50,scrollbars=yes');
	}

	function BrdImg(Img) {

		foto1= new Image();
		foto1.src=('/IMGUpload/'+Img);
		var NewImgHeight,NewImgWidth;
		NewImgWidth = foto1.width;
		NewImgHeight = foto1.height;

		openImg = window.open('', 'openImg','width=100,height=100,left=0,top=0,resizable=no,scrollbars=no');
		openImg.focus();
		openImg.document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
		openImg.document.write('<img src="'+foto1.src+'" style="cursor:hand" alt="Close" OnClick="self.close()" ID="img">');
		openImg.document.write('</body>');
		openImg.window.resizeTo(openImg.document.body.scrollWidth+10,openImg.document.body.scrollHeight+25);
		openImg.document.close();

	}

	function SizeImg(Img,W,H,al,thisid) {

		foto1= new Image();
		foto1.src=(Img);
		var NewImgHeight,NewImgWidth;
		NewImgWidth = foto1.width;
		NewImgHeight = foto1.height;
		if(W > 0) {
			if(NewImgWidth > W) {
				NewImgHeight = (W*NewImgHeight) / NewImgWidth;
				NewImgWidth = W;
			}
		}
		if(H > 0) {
			if(NewImgHeight > H) {
				NewImgWidth = (H*NewImgWidth) / NewImgHeight;
				NewImgHeight = H;
			}
		}

		thisid.width = NewImgWidth;//ÀÌ¹ÌÁö °¡·Î
		thisid.height = NewImgHeight;//ÀÌ¹ÌÁö ¼¼·Î  
	}
//-->


