function FuncCheckSelect(p_frm){

			if(p_frm.txtsearchword.value == ""){
				alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				p_frm.txtsearchword.focus(); 
				return false;
			}

	}

	function FuncGoPage(p_num){
		frmtype.page.value = p_num;
		frmtype.submit();
	}

	function FuncView(p_num, p_str){
		frmtype.boardnum.value = p_num;
		//frmtype.viewchk.value = "0";
		frmtype.action= p_str;
		frmtype.submit();
		return true;
	}

	function FuncGoList(p_num){
		frmList.page.value = p_num;
		frmList.submit();
	}

	function FuncWrite(p_obj, p_action){
		p_obj.action= p_action;
		p_obj.submit();
	}

	//¼öÁ¤
	function FuncEdit(p_frm){
		if (p_frm.boardtype.value == "34"){
			p_frm.action = "FontNameEdit.asp";
		}else{
			p_frm.action = "FontGalleryEdit.asp";
		}
		p_frm.submit();
	}

	//»èÁ¦

	function FuncDel(p_frm){
		if (confirm("±ÛÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n±ÛÀ» »èÁ¦ ÇÏ½Ã¸é ±Ûµî·ÏÀ¸·Î ¾òÀº È°µ¿Áö¼ö°¡ »èÁ¦µË´Ï´Ù.")){
			if (p_frm.boardtype.value == "34"){
				p_frm.actiontype.value="FontNameDel";
			}else{
				p_frm.actiontype.value="GallDEL";
			}
			p_frm.txttype.value="3";
			p_frm.action = "iframeBizFontKnowInInput.asp";
			p_frm.target="iframework";
			p_frm.submit();
		}
	}

	function FuncGoPageRepl(p_num){
		frmtype.subpage.value = p_num;
		frmtype.submit();
	}


	//µî·Ï ÆÄÀÏ º¸±â/´Ù¿î ------------------------------------------------------------------
	function FucnViewFile(p_file,p_type,p_num){
		frmdown.filename.value = p_file;
		frmdown.type.value = p_type;
		frmdown.boardnum.value = p_num;
		frmdown.submit();
	}
	
	function FucnFileDown(p_file,p_type,p_num){
		frmdown.filename.value = p_file;
		frmdown.type.value = p_type;
		frmdown.boardnum.value = p_num;
		frmdown.submit();
		
		window.location.href="http://www.fontclub.co.kr/image/downfile/Image/WebZinetype_"+ p_type +"/"+p_file;
	}

	function Funclogin(p_boardname){
		
		if(p_boardname){
			if (confirm("ÆùÆ®Å¬·´ " + p_boardname + " Àº ·Î±×ÀÎÈÄ ÀÌ¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?"))
			{
				document.location="/join/Login.asp";
			}
		}else{
			if (confirm("·Î±×ÀÎÈÄ ÀÌ¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?"))
			{
				document.location="/join/Login.asp";
			}
		}
	}

	function FuncRepl(p_obj){
		if (p_obj.replytype.value=="G")
		{
			if (p_obj.userid.value=="" || p_obj.userid.value=="ÀÌ¸§")
			{
				alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
				return false;
			}
			if (p_obj.userpw.value=="" || p_obj.userpw.value=="ºñ¹Ð¹øÈ£")
			{
				alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
				return false;
			}
		}

		if (p_obj.contents.value=="" || p_obj.contents.value==p_obj.contents.defaultValue)
		{
			alert("ÄÚ¸àÆ®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			return false;
		}
				
		p_obj.txttype.value="01";
		//alert(p_obj.actiontype.value);
		p_obj.submit();
	}
	
	// ÇÖÅå ¸®ÇÃ ¼öÁ¤
	function FuncRepl_update(p_obj){
		var contents=p_obj.contents.value;
		
		if (p_obj.contents.value=="" || p_obj.contents.value==p_obj.contents.defaultValue)
		{
			alert("ÄÚ¸àÆ®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			return false;
		}
		p_obj.contents.value = contents;
		p_obj.txttype.value="05";
		p_obj.submit();
	}
	
	// ÇÖÅå ¸®ÇÃ »èÁ¦
	function funcrepldel(p_obj, p_num){
		p_obj.txttype.value="02";
		p_obj.actiontype.value = "HottalkDel";
		p_obj.itemnum.value=p_num;
		p_obj.submit();
	}

	// ¸®ÇÃ »èÁ¦
	function FuncReplDel(p_num){
		frmrepl.txttype.value="02";
		frmrepl.idxnum.value=p_num;
		frmrepl.submit();
	}
	
	// Ä¿¹Â´ÏÆ¼ ¸®ÇÃ »èÁ¦
	function FuncComReplDel(p_obj,p_num){
		if (p_obj.boardtype.value == "34"){
			p_obj.actiontype.value = "FontNameReplDel";
		}
		p_obj.txttype.value="02";
		p_obj.idxnum.value=p_num;
		p_obj.submit();
	}

	function FuncReplDelWin(p_num){
		ChkIDWindow = window.open('/include/popup/reply.asp?idx='+p_num,'DlgWinow','width=420,height=185');
	}

	function FuncDicDataSet(p_str1, p_str2){
		frmtype.range1.value=p_str1;
		frmtype.range2.value=p_str2;
		frmtype.page.value=1;
		frmtype.submit();
	}

	function Funcorderby(p_str){

		frmtype.orderby.value = p_str;

		frmtype.submit();
	}

	function Funcmaxdisp(p_str){
		if (p_str !="00")
		{
			frmtype.maxdisp.value = p_str;

			frmtype.submit();
		}
		
	}

	function Funcsubcat(p_frm, p_sub){

		p_frm.subtype.value = p_sub;

		p_frm.submit();
	}

	function check_focus(obj){
		if (obj.defaultValue==obj.value)
		{
			obj.value="";
		}
	}


	var xmlHttp;
	function createXMLHttpRequest() {
		if (window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else if (window.XMLHttpRequest) {
			xmlHttp = new XMLHttpRequest();
		}

	}

	// ´º½º·¹ÅÍ½ÅÃ»
	function FuncFindId()
	{
		ChkIDWindow = window.open('/include/popup/letter.asp','DlgWinow','width=420,height=220');
	}

	function FuncLetter()
	{
		iframeletter.location.href="/include/popup/letter.asp";
	}

	//³»¿ë ÀÎ¼â
	function FuncPrint(p_frm){
		 
			p_str= "MagazineView.asp";
		 
		window.open('about:blank','PrintWin','top=100,left=100,width=740,height=620,scrollbars=yes');

		p_frm.action= "/include/popup/ContentPrinter.asp";
		p_frm.target = "PrintWin";
		p_frm.submit();
	}

	function FuncRecomm(p_frm){
		p_frm.action="iframebizRecomm.asp";
		p_frm.target="iframework";
		p_frm.submit();
	}
	
	//ÃßÃµ
	function funcrecomm_sy(p_num){
		frmrepl_sy.txttype.value = "03";
		frmrepl_sy.itemnum.value = p_num;
		frmrepl_sy.submit();
	}

	//Æ¯Á¤ DIV ¾È¿¡ À§Ä¡ÇÑ ÀÌ¹ÌÁö ¸®»çÀÌÁî    
	function divImgResize(id, size) {
		var divId = document.getElementById(id);
		var contStr = divId.innerHTML.toLowerCase();

		if( contStr.indexOf( "<img" ) != -1 ){
			contStr = contStr.replace(/<img /g,"<img id=\"changeImg\" ");  
			divId.innerHTML = contStr;  
 
			for( i=0; i<document.images.length; i++){   
				if(document.images[i].id == "changeImg" &&  document.images[i].width > size){    
					document.images[i].width = size
				}
			}
		}
	}

	// Å¬¸³º¸µå¿¡ º¹»ç
	function copyClipboard(inElement) 
	{ 
	    var IE=(document.all)?true:false; 
        if (IE) { 
            window.clipboardData.setData('Text', inElement); 
            alert("Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù.\n\nCtrl+v·Î ºÙ¾î³Ö±â ÇÏ¼¼¿ä"); 
        }else{ 
            temp = prompt("ÀÌ ±ÛÀÇ Æ®·¢¹éÁÖ¼ÒÀÔ´Ï´Ù. Ctrl+C¸¦ ´­·¯ Å¬¸³º¸µå·Î º¹»çÇÏ½Ã°í,\n\nCtrl+v·Î ºÙ¾î³Ö±â ÇÏ¼¼¿ä ", inElement); 
        } 
	} 

    //³ôÀÌÁ¶Á¤
    function resizeIfr(obj, minHeight) {
        minHeight = minHeight || 10;
        try {
            var getHeightByElement = function(body) {
                var last = body.lastChild;
                try {
                    while (last && last.nodeType != 1 || !last.offsetTop) last = last.previousSibling;
                    return last.offsetTop+last.offsetHeight;
                } catch(e) {
                    return 0;
                }
        }
        var doc = obj.contentDocument || obj.contentWindow.document;
        if (doc.location.href == 'about:blank') {
            obj.style.height = minHeight+'px';
            return;
        }
        
        if (/MSIE/.test(navigator.userAgent)) {
            var h = doc.body.scrollHeight;
        // ie8¿¡¼± ie7°ú ºñ±³½Ã ¾à 15px ´õ Àû°Ô °ªÀÌ Àû¿ëµÊ. if(window.JSON) h+=15;
        } else {
            var s = doc.body.appendChild(document.createElement('DIV'))
            s.style.clear = 'both';

            var h = s.offsetTop;
            s.parentNode.removeChild(s);
        }
        
        if (h < minHeight) h = minHeight;
        obj.style.height = h + 'px';
        if (typeof resizeIfr.check == 'undefined') resizeIfr.check = 0;
        if (typeof obj._check == 'undefined') obj._check = 0;
        
        setTimeout(function(){ resizeIfr(obj,minHeight) }, 200); // check 5 times for IE bug
        } catch (e) { 
            //alert(e);
        }
    }

