<!--

function fn_home() {
   self.location = "./index.php";
}

function fn_search_2() {
   self.location = "./list_search2.php";
}


function fn_bookmark(sUrl,sTitle) { 

   if(sUrl != "") { 
	  if (document.all)  window.external.AddFavorite("http://"+sUrl,sTitle);
   }
} 

function fn_img_over(obj) {
   var ix = obj.src.lastIndexOf(".");
   var sF = obj.src.slice(0,ix);
   var sE = '_'+obj.src.substr(ix,4);
   obj.src=sF.concat(sE);
}

function fn_img_out(obj) {

   var ix = obj.src.lastIndexOf(".");
   var sF = obj.src.slice(0,ix-1);
   var sE = obj.src.substr(ix,4);
   obj.src=sF.concat(sE);

}


function fn_exit_alpha(obj) {
	var exit_1 = "&";
	var exit_2 = "\"";
	var exit_3 = "$";
	var exit_4 = "?";
	var exit_5 = "'";
	var exit_Str = obj.value;

	i = exit_Str.indexOf(exit_1);
	if(i >= 0) {
		alert('Æ¯¼ö¹®ÀÚ '+exit_1+' Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');
		return false;
	}

	i = exit_Str.indexOf(exit_2);
	if(i >= 0) {
		alert('Æ¯¼ö¹®ÀÚ '+exit_2+' Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');
		return false;
	}
	i = exit_Str.indexOf(exit_3);
	if(i >= 0) {
		alert('Æ¯¼ö¹®ÀÚ '+exit_3+' Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');
		return false;
	}
	i = exit_Str.indexOf(exit_4);
	if(i >= 0) {
		alert('Æ¯¼ö¹®ÀÚ '+exit_4+' Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');
		return false;
	}

	i = exit_Str.indexOf(exit_5);
	if(i >= 0) {
		alert('Æ¯¼ö¹®ÀÚ '+exit_5+' Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');
		return false;
	}

	return true;
}

function fn_main_search(frm) {

   if(frm.txtItem.value.length < 2) {

      alert(' °Ë»ö¾î´Â µÎÀÚ ÀÌ»ó ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ');
      frm.txtItem.focus();
      frm.txtItem.select();
      return false;

   } else if(fn_exit_alpha(frm.txtItem) == false) { 

      frm.txtItem.focus();
      frm.txtItem.select();
      return false;

   }

}


function fn_mini_win(theURL,winName,features) { 
  winName = window.open(theURL,winName,features);
  if(winName) winName.focus();
}

function fn_no_email() {
   fn_mini_win('./pop_no_email.php','nomail','width=460,height=485');
}

function fn_must_login(bl_u,loc) {
   if(loc == "") loc = "./index.php";
   if(bl_u == "Y") self.location = loc;
   else {
     alert(' ·Î±×ÀÎÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù. ');
	 if(bl_u == "T") self.location = loc;
   }
}


function fnc_bbs(i) {
   self.location="./bbs.php?bix="+i;
}

function fnc_cate(i) {
   self.location="./list_big.php?BC="+i;

}

function fnc_group(i) {
   self.location="./list_group.php?GC="+i;

}

function fnc_top_menu(surl) {
  self.location=surl;
}
function fnc_poll(fSerial) {
   var frm = document.frmPoll;
   var f_cnt = frm.radVote.length;
   var ix = false;
   for(i=0;i<f_cnt;i++) {
      if(frm.radVote[i].checked == true) {
          ix = frm.radVote[i].value;
		  break;
	  }
   }

   if(ix == false) {
      alert(' ÅõÇ¥ÇÒ ³»¿ëÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä. ');
	  frm.radVote[0].focus();
	  return;
   } else {
     fn_mini_win("./poll_view.php?fSerial="+fSerial+"&ix="+ix,'spv','scrollbars=yes,width=470,height=390');
   }

}

function fnc_poll_view(fSerial) {
    fn_mini_win("./poll_view.php?fSerial="+fSerial,'spv','scrollbars=yes,width=470,height=390');
}


function fnc_item_view(fSerial) {
   self.location="./item_view.php?fSerial="+fSerial;
}

function fnc_group(GC) {

   self.location="./list_group.php?GC="+GC;

}


function fnc_notice(fSerial) {
   fn_mini_win('./notice.php?fSerial='+fSerial,'pNotice','scrollbars=yes,width=600,height=500');
}


function fn_index_notice(dtNow) {
   
   if((document.getElementById("div_main_notice")) && (arrMainNotice1.length > 0)) {

      if(nType == "1") {
         str  = '<table width="'+nTable_w+'" border="0" cellspacing="0" cellpadding="0" class="main_412_body">';
         str += '<tr valign="top"><td onClick="fnc_notice(\'\')" class="td_hand">'+sTiImg+'</td></tr>';
         str += '<tr><td><table width="'+nTable_w+'" border="0" cellspacing="0" cellpadding="3">';

         for(i=0;i<arrMainNotice1.length;i++) {
	        str += '<tr><td onClick="fnc_notice(\''+arrMainNotice1[i]+'\')" class="td_notice">'+sStImg+arrMainNotice2[i];
	        if(arrMainNotice3[i] >= dtNow)  str += ' '+sNeImg;
	        str += ' </td></tr><tr><td height="1" width="100%" background="./img/notice_line.gif"> </td></tr>';
	     }
      
	     str += '</table></td></tr></table>';
      } else if (nType == "2") {

         str  = '<table width="'+nTable_w+'" border="0" cellspacing="0" cellpadding="0" class="main_412_body">';
         str += '<tr valign="top"><td onClick="fnc_notice(\'\')" class="td_hand">'+sTiImg+'</td></tr>';

         for(i=0;i<arrMainNotice1.length;i++) {
	        str += '<tr><td onClick="fnc_notice(\''+arrMainNotice1[i]+'\')" class="td_notice" height="25"><b>'+arrMainNotice4[i]+'</b> '+arrMainNotice2[i];
	        if(arrMainNotice3[i] >= dtNow)  str += ' '+sNeImg;
	        str += ' </td></tr><tr><td height="1" bgcolor="#EFEFEF"> </td></tr>';
	     }
      
	     str += '</table></td></tr></table>';

	  }
   
	  div_main_notice.innerHTML = str;

   }
}
 
function fnc_cate_gmore(GC) {

   self.location="./list_group_more.php?GC="+GC+BC_MC_SC;

}

function fna_OnFont(obj,cls) {
   obj.className = cls;
}
//// 2006.03.16ÀÏ ºÎÅÍ Ãß°¡ /////////
function fun_lgout(opt,mess) {
   if(opt == "Y") {
      if(mess == "") mess = " ·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î? ";
      if(confirm(mess)) {
         self.location = "./user_login.php?HPRO=OUT"; 
      }
   } else self.location = "./user_login.php?HPRO=OUT"; 
}

function fun_lgin(frm) {
  if(fn_must_text_input(frm.txt_id,' ¾ÆÀÌµð¸¦ ') == false) return false;
  if(fn_must_text_input(frm.txt_pwd,' ÆÐ½º¿öµå¸¦ ') == false) return false;

}


<!--- 2007.05.16 Ãß°¡µÈ ³»¿ë //-->
function fn_viewflash(URL,sSize,mode) {
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'"+sSize+">");
document.write("<param name='movie' value='"+URL+"'>");
document.write("<param name='quality' value='high'>");
document.write("<param name='WMODE' value='"+mode+"'>");
document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'"+sSize+"></embed>");
document.write("</object>");
}
//-->