<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">	$(document).ready(function() { 
	
          //input�� datepicker濡� �좎뼵
          $(".Txt_date").datepicker({
              dateFormat: 'yy-mm-dd' //Input Display Format 蹂�寃�
              ,showOtherMonths: true //鍮� 怨듦컙�� �꾩옱�붿쓽 �욌뮘�붿쓽 �좎쭨瑜� �쒖떆
              ,showMonthAfterYear:true //�꾨룄 癒쇱� �섏삤怨�, �ㅼ뿉 �� �쒖떆
              ,changeYear: true //肄ㅻ낫諛뺤뒪�먯꽌 �� �좏깮 媛���
              ,changeMonth: true //肄ㅻ낫諛뺤뒪�먯꽌 �� �좏깮 媛���                
              ,showOn: "both" //button:踰꾪듉�� �쒖떆�섍퀬,踰꾪듉�� �뚮윭�쇰쭔 �щ젰 �쒖떆 ^ both:踰꾪듉�� �쒖떆�섍퀬,踰꾪듉�� �꾨Ⅴ嫄곕굹 input�� �대┃�섎㈃ �щ젰 �쒖떆  
              ,buttonImage: "/pub/img/icons/calendar_add.gif" //踰꾪듉 �대�吏� 寃쎈줈
              ,buttonImageOnly: true //湲곕낯 踰꾪듉�� �뚯깋 遺�遺꾩쓣 �놁븷怨�, �대�吏�留� 蹂댁씠寃� ��
              ,buttonText: "�좏깮" //踰꾪듉�� 留덉슦�� 媛뽯떎 �붿쓣 �� �쒖떆�섎뒗 �띿뒪��                
              ,yearSuffix: "��" //�щ젰�� �꾨룄 遺�遺� �ㅼ뿉 遺숇뒗 �띿뒪��
              ,monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'] //�щ젰�� �� 遺�遺� �띿뒪��
              ,monthNames: ['1��','2��','3��','4��','5��','6��','7��','8��','9��','10��','11��','12��'] //�щ젰�� �� 遺�遺� Tooltip �띿뒪��
              ,dayNamesMin: ['��','��','��','��','紐�','湲�','��'] //�щ젰�� �붿씪 遺�遺� �띿뒪��
              ,dayNames: ['�쇱슂��','�붿슂��','�붿슂��','�섏슂��','紐⑹슂��','湲덉슂��','�좎슂��'] //�щ젰�� �붿씪 遺�遺� Tooltip �띿뒪��
				,nextText: '�ㅼ쓬 ��' // next �꾩씠肄섏쓽 �댄똻.
				,prevText: '�댁쟾 ��' // prev �꾩씠肄섏쓽 �댄똻.
				,showButtonPanel:true // 罹섎┛�� �섎떒�� 踰꾪듉 �⑤꼸�� �쒖떆�쒕떎(�ㅻ뒛�좎쭨濡쒖씠�숇쾭��, �リ린踰꾪듉).
		    ,currentText: '�ㅻ뒛' // �ㅻ뒛�좎쭨濡쒖씠�숇릺�� 踰꾪듉�� �띿뒪�� 蹂�寃� 
		    ,showAnim: "slideDown" //�좊땲硫붿씠�섏쓣 �곸슜�쒕떎.
		    ,closeText: '�リ린'  // �リ린踰꾪듉�� �띿뒪�� 蹂�寃�
          });                    
          
          	//珥덇린媛믪쓣 �ㅻ뒛 �좎쭨濡� �ㅼ젙
          	$('#datepicker').datepicker('setDate', 'today'); //(-1D:�섎（��, -1M:�쒕떖��, -1Y:�쇰뀈��), (+1D:�섎（��, -1M:�쒕떖��, -1Y:�쇰뀈��)            
			$("img.ui-datepicker-trigger").attr("style", "margin-left:2px; vertical-align:middle; padding-bottom:3px; cursor: Pointer;");  

	    $.fn.cal_clean = function(obj) {
	        $("#"+obj).val("");
	    };
	    
	    $.fn.cal_set = function(obj1,obj2,sdate,edate) {
	    	$("#"+obj1).val(sdate);
	    	$("#"+obj2).val(edate);
		};
		
		fnc_menu = function(str_menu,str_path) {
			$(location).attr("href", "/admincenter/comm/comm_return_url.asp?str_menu="+str_menu+"&amp;str_path="+escape(str_path));
		};
		fnc_menu2 = function(str_menu,str_path) {
			$(location).attr("href", "/gdawards/judge/comm/comm_return_url.asp?str_menu="+str_menu+"&amp;str_path="+escape(str_path));
		};
		
		$(".class_img").change(function(){
		    if($(this).val() != ""){
		    	if($(this).attr("val1") == "1"){	
	            	var ext = $(this).val().split(".").pop().toLowerCase();
		            if($.inArray(ext, ["gif","jpg","jpeg",,"png"]) == -1){
		                alert("gif, jpg, jpeg, png �뚯씪留� �낅줈�� �댁＜�몄슂.");
		                $(this).val("");
		                return;
		            }
		       	} else if($(this).attr("val1") == "2"){	
	            	var ext = $(this).val().split(".").pop().toLowerCase();
		            if($.inArray(ext, ["asp","php","jsp",,"cig"]) != -1){
		                alert("asp, php, jsp, cgi �뚯씪�� �낅줈�� �좎닔 �놁뒿�덈떎.");
		                $(this).val("");
		                return;
		            }		       	
		       	} else if($(this).attr("val1") == "3"){	
	            	var ext = $(this).val().split(".").pop().toLowerCase();
		            if($.inArray(ext, ["jpg", "jpeg", "gif", "png", "bmp", "doc", "docx", "hwp", "xls", "xlsx", "zip", "pdf", "ppt", "pptx"]) == -1){
		                alert("jpg, jpeg, gif, png, bmp, doc, docx, hwp, xls, xlsx, zip, pdf, ppt, pptx �뚯씪留� �낅줈�� �좎닔 �덉뒿�덈떎.");
		                $(this).val("");
		                return;
		            }	
		       	}
		       	if($(this).attr("val2") != ""){	
		            var fileSize = this.files[0].size;
		            var maxSize = 1024 * 1024 * parseInt($(this).attr("val2"));
		            if(fileSize &gt; maxSize){
		                alert("�뚯씪�⑸웾 "+$(this).attr("val2")+"MB�� 珥덇낵�덉뒿�덈떎.");
		                $(this).val("");
		            }
		    	}
		    }
		});
		$.comma = function(str){
    		str = String(str);
    		return str.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,');
		}
		$(document).on("click", ".intprice", function(){
			$('.intprice').number( true, 0 );
		});
		$('.intprice').number( true,0);
		$(document).on("change", ".intprice", function(){
			console.log('Change event.');
			var val = $(this).val();
		});
		$(document).on("click", ".decprice", function(){
			$('.decprice').number( true, 2 );
		});
		$(document).on("change", ".decprice", function(){
			console.log('Change event.');
			var val = $(this).val();
		});
		$('.intnum').number( true,0,',','' );

		$(document).on("keypress", ".sintnum", function(event){
			if (event.which &amp;&amp; (event.which &lt;= 47 || event.which &gt;= 58) &amp;&amp; event.which != 8) {event.preventDefault();}
		});
		//$(document).on("change paste keyup", ".def", function(event){
//		$(document).on("propertychange change keyup paste input", ".def", function(event){
//   			if ($(this).val()=="") {$(this).val('1')} 
//		});
		$(document).on("keyup", ".sintstrnum", function(event){
			if (event.which &amp;&amp; (event.which  &gt; 47 &amp;&amp; event.which  &lt; 58 || event.which == 8)) {
  			} else {
    			event.preventDefault();
  			}
		});
		$(document).on("click change", ".btn_dp", function(e){
			if (e.type=="change") {
				if ($.cookie($(this).attr("val1"))=="1") {
					$("#"+$(this).attr("val1")).hide();
					$("#"+$(this).attr("val2")).attr("src", "/admincenter/img/ic_add_circle_black_18dp.png");				
				} else {
					$("#"+$(this).attr("val1")).show();
					$("#"+$(this).attr("val2")).attr("src", "/admincenter/img/ic_remove_circle_black_18dp.png");				
				}
			} else {
				if ($("#"+$(this).attr("val1")).css('display')=="none") {
					$("#"+$(this).attr("val1")).show();
					$("#"+$(this).attr("val2")).attr("src", "/admincenter/img/ic_remove_circle_black_18dp.png");
	                $.cookie($(this).attr("val1"), "0", {
	                    "expires" : 365                
	                }); 
				}else{
					$("#"+$(this).attr("val1")).hide();
					$("#"+$(this).attr("val2")).attr("src", "/admincenter/img/ic_add_circle_black_18dp.png");
	                $.cookie($(this).attr("val1"), "1", {
	                    "expires" : 365                
	                }); 
				}
			}
		});
		
		$(".btn_ndn").click(function(){
		
			var int_wnumber=$(this).attr("val");
			$.ajax({
				url:"/comm/Scrap_proc.asp",
				data:'RetrieveFlag=Auth',
				type:'POST',  
				dataType:'html',
				cache:false,
				success:function(result){
					if (result=="1") {
						$(location).attr("href", '/sub/filedata.asp?str_no='+int_wnumber+'&amp;sgbn=1');
					} else if (result=="0") {
						alert("濡쒓렇�몄씠 �꾩슂�⑸땲��.");
					} else {
						alert("�ㅻ쪟媛� 諛쒖깮�덉뒿�덈떎. \n愿�由ъ옄�먭쾶 臾몄쓽諛붾엻�덈떎.");
					}
					$('.wrap-loading').addClass('display-none'); 
				},
	    		beforeSend:function(){ 
	        		$('.wrap-loading').removeClass('display-none'); 
	    		},
				error:function(request,status,error) { 
					console.log("Error!",error);
				}, 
				complete : function() {
					console.log("complete!");    
				} 
			});	
		});
		
		
		$(document).on("click", ".btn_scrap", function(e){
			
			var int_wnumber=$(this).attr("val");
			$.ajax({
				url:"/comm/Scrap_proc.asp",
				data:'RetrieveFlag=Auth',
				type:'POST',  
				dataType:'html',
				cache:false,
				success:function(result){
					//console.log(result);
					$('.wrap-loading').addClass('display-none'); 
					if (result=="1") {
					
						$.scrap_pop(int_wnumber);
						
					} else if (result=="0") {
						alert("濡쒓렇�몄씠 �꾩슂�⑸땲��.");
					} else {
						alert("�ㅻ쪟媛� 諛쒖깮�덉뒿�덈떎. \n愿�由ъ옄�먭쾶 臾몄쓽諛붾엻�덈떎.");
					}
				},
	    		beforeSend:function(){ 
	        		$('.wrap-loading').removeClass('display-none'); 
	    		},
				error:function(request,status,error) { 
					console.log("Error!",error);
				}, 
				complete : function() {
					console.log("complete!");    
				} 
			});	
		
		});

		$.scrap_pop = function(int_wnumber){

			$.ajax({
				url:"/comm/Scrap_proc.asp",
				data:'RetrieveFlag=POP&amp;str_no='+int_wnumber,
				type:'POST',  
				dataType:'html',
				cache:false,
				success:function(result){
					console.log(result);
					
					if (result=="1") {
						alert("�대� 李쒖씠 �섏뼱�덉뒿�덈떎.");
					} else {
					
						var win_w = $(window).width();	
						var win_h = $(window).height();
						if(win_w &lt; 1024){ 
							win_w = 1024;
							win_h = ($(window).height() * 1024) / $(window).width();
						}
					
						var left = (win_w - $(".scrap-pop").outerWidth()) / 2 + $(window).scrollLeft();
						var top = (win_h - $(".scrap-pop").outerHeight()) / 2 + $(window).scrollTop();
					
						$(".scrap-pop").css({"left" : left+"px", "top" : top+"px", "display" : "block"});
						
						$("#scrap_info").empty().append(result);
						
					}
					$('.wrap-loading').addClass('display-none'); 
				},
	    		beforeSend:function(){ 
	        		$('.wrap-loading').removeClass('display-none'); 
	    		},
				error:function(request,status,error) { 
					console.log("Error!",request);
				}, 
				complete : function() {
					console.log("complete!");    
				} 
			});	

		}
		
		$(document).on("click", "#btn_scrap_save", function(e){
			
			obj = $("#str_tag");
			if(obj.val().trim()==""){  
				alert("�쒓렇媛� �낅젰�섏� �딆븯�듬땲��.");
				obj.focus();
				return false;	
			}
			if(obj.val().indexOf("#") == -1) {
				alert("#�� �⑥뼱�� �ы븿�섏� �딆븯�듬땲��.");
				obj.focus();
				return false;	
			}
			
			$.ajax({
				url:"/comm/Scrap_proc.asp",
				data:'RetrieveFlag=TAGINSERT&amp;int_wnumber='+$(this).attr("val")+'&amp;str_tag='+$("#str_tag").val(),
				type:'POST',  
				dataType:'html',
				cache:false,
				success:function(result){
					//console.log(result);
					if (result=="1") {
						//alert("�깅줉�섏뿀�듬땲��.");
						$(".scrap-pop").css({"display" : "none"});
						if(!confirm("�깅줉�섏뿀�듬땲��. \n留덉씠�섏씠吏� 李쒕ぉ濡앹쑝濡� �대룞�섏떆寃좎뒿�덇퉴?")) return;		
						$(location).attr("href","/mypage/general_bookmark.asp");

					} else {
						alert("�ㅻ쪟媛� 諛쒖깮�덉뒿�덈떎. \n愿�由ъ옄�먭쾶 臾몄쓽諛붾엻�덈떎.");
					}
					$('.wrap-loading').addClass('display-none'); 
				},
	    		beforeSend:function(){ 
	        		$('.wrap-loading').removeClass('display-none'); 
	    		},
				error:function(request,status,error) { 
					console.log("Error!",error);
				}, 
				complete : function() {
					console.log("complete!");    
				} 
			});	
			
		});
	
		$(document).on("click", ".btn_link", function(e){
			
			var int_number=$(this).attr("val");
			$.ajax({
				url:"/comm/Om_Url_Chk.asp",
				data:'RetrieveFlag=sUrl&amp;str_no='+int_number,
				type:'POST',  
				dataType:'html',
				cache:false,
				success:function(result){
					//console.log(result);
					$('.wrap-loading').addClass('display-none'); 
					if (result=="0") {
						alert("留곹겕二쇱냼媛� �깅줉�섏뼱 �덉� �딆뒿�덈떎.");
					} else if (result=="-1") {
						alert("�ㅻ쪟媛� 諛쒖깮�덉뒿�덈떎. \n愿�由ъ옄�먭쾶 臾몄쓽諛붾엻�덈떎.");
					} else {
						window.open(result);
						return false;
					}
				},
	    		beforeSend:function(){ 
	        		$('.wrap-loading').removeClass('display-none'); 
	    		},
				error:function(request,status,error) { 
					console.log("Error!",error);
				}, 
				complete : function() {
					console.log("complete!");    
				} 
			});	
		
		});
		
		$(document).on("click", ".btn_slink", function(e){
			
			var int_number=$(this).attr("val");
			var int_agnumber=$(this).attr("val2");
			$.ajax({
				url:"/comm/Om_Url_Chk.asp",
				data:'RetrieveFlag=sUrl&amp;str_no='+int_number,
				type:'POST',  
				dataType:'html',
				cache:false,
				success:function(result){
					//console.log(result);
					$('.wrap-loading').addClass('display-none'); 
					if (result=="-1") {
						alert("�ㅻ쪟媛� 諛쒖깮�덉뒿�덈떎. \n愿�由ъ옄�먭쾶 臾몄쓽諛붾엻�덈떎.");
					} else {
						$(location).attr("href", "/sub/portfolio.asp?Txt_agnumber="+int_agnumber);
					}
				},
	    		beforeSend:function(){ 
	        		$('.wrap-loading').removeClass('display-none'); 
	    		},
				error:function(request,status,error) { 
					console.log("Error!",error);
				}, 
				complete : function() {
					console.log("complete!");    
				} 
			});	
		
		});
	
		
	});
	
</pre></body></html>