/**************************************************************************
    Function Name   : func_pageCount
    Description     : ÆäÀÌÁö Ä«¿îÆ®ÇÏ±â
    parameters      : key(Ä«¿îÆ®µÇ´Â ÆäÀÌÁö °ª)
    return          : 
    usage           : 
**************************************************************************/
function func_pageCount(key){
	if(typeof(key)=="undefined") key="";
		document.getElementById("ifrm").src = "/gallery/ifrm_pagecount.asp?iPageID=" + key;
}

/**************************************************************************
    Function Name   : func_galleryCount
    Description     : »çÁøÆÄÀÏ Ä«¿îÆ® ÇÏ±â
    parameters      : category(Ä«Å×°í¸®), idx(»çÁø¹øÈ£), flg(V:ºä / D:´Ù¿î·Îµå)
    return          : 
    usage           : 
**************************************************************************/
function func_galleryCount(category, idx, flg){
	if(typeof(idx)=="undefined") idx="";
	if(typeof(category)=="undefined") category="";
	if(typeof(flg)=="undefined") flg="";
	if(typeof(file)=="undefined") file="";

	document.getElementById("ifrm").src = "/gallery/ifrm_gallerycount.asp?idx=" + idx + "&cat_key=" + category + "&flg=" + flg;
}

// Flash publish
function swfprint(furl,fwidth,fheight,transoption) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="id" value="index"/>');
	document.write('<param name="movie" value="'+ furl +'"/>');
	if (transoption == "t") {
		document.write('<param name="wmode" value="transparent"/>');
	} else if (transoption == "o") {
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]> <-->');
	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');
	if (transoption == "t") {
		document.write(' wmode="transparent"');
	} else if (transoption == "o") {
		document.write(' wmode="opaque"');
	}
	document.write('></object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');
}


//////////////////// ÄµÀ¯ ¸ÞÀÎÆäÀÌÁö¿¡ Ãß°¡ÇÏ½Ç ÇÔ¼öÀÔ´Ï´Ù /////////////////////

//ÁÖ¼Ò°Ë»ö ÆË¾÷Ã¢À» ¶ç¿ì´Â ÇÔ¼ö.  ÆÄÀÏ¸í ¹× °æ·Î´Â ¼öÁ¤ °¡´ÉÇÕ´Ï´Ù. top, left ¹× width, height´Â µðÀÚÀÎ¿¡ ¸ÂÃç¼­ ¼öÁ¤ÇÏ½Ã¸é µË´Ï´Ù
function popupWin(){
	window.open('/canu801ex/zip-code.asp','zipcode','top=10,left=10,width=542,height=180');
}
//°Ë»öµÈ zipCode¸¦ flash·Î Àü¼ÛÇÏ´Â ÇÔ¼ö
function inputZipCode(zipCode) {
    index.inItCode(zipCode);
}
// »ç¿ëÀÚ ÀÌ¹ÌÁö µî·Ï
function popupUserImageReg(){
	window.open('/event/fileupload.asp?boardtype=4','userimg','width=500,height=540');
}
// »ç¿ëÀÚ ÀÌ¹ÌÁö ¼öÁ¤(ÄÁÅÙÃ÷ Å°¹øÈ£)
function popupUserImageMod(icnt_key) {
	window.open('/event/fileupload.asp?boardtype=16&contentkey='+icnt_key+'','userimg','top=10,left=10,width=500,height=540');
}
// »ç¿ëÀÚ ÀÌ¹ÌÁö »èÁ¦(ÄÁÅÙÃ÷ Å°¹øÈ£)
function popupUserImageDel(icnt_key) {
	window.open('/event/mboardctrprocess.asp?boardkey=1&boardtype=32&ficnt_key='+icnt_key+'','userimg','top=10,left=10,width=500,height=500');
}
//ÇÃ·¡½Ã·Î ¸®·Îµå ÇÔ¼ö
function reLoad() {
    opener.index.fnReLoad();
}
//·Î±×ÀÎ ÆË¾÷
function popupLogin(){
	//alert("·Î±×ÀÎÀ» ÇÏ¼¼¿ä.");
	window.open('/member/login.asp','login','top=10,left=10,width=450,height=450');
}

function popupLogin_param(strparam){
	//alert("·Î±×ÀÎÀ» ÇÏ¼¼¿ä.");
	window.open('/member/login.asp?'+strparam,'login','top=10,left=10,width=450,height=450');
}

//º°Á¡ÆË¾÷
function winPopReview(url){
	window.open(url,'review','top=10,left=10,width=830,height=670');
}
function reLoadReview(){
	opener.index.fnReviewReload(); 
	self.close();
}
//´ãÃ»ÀÚ ÆË¾÷
function fnWinner(){
	window.open('/Paparazzi/sub05_promotion02_event02_1.html','winner','top=0,left=0,width=800,height=550');
}

//´Ü¸»±â ÅõÇ¥ ¸®·Îµå
function fncRanking(){
	opener.index.fnSetRanking();
	self.close();
}

//¸®ºä¹èÆ² ´çÃ·ÀÚÆË¾÷
function fnWinner2(){
	window.open('/pop/winner_view.html','winner2','top=0,left=0,width=750,height=600');
}

//ÀÌº¥Æ® ´çÃ·ÀÚÆË¾÷
function fnWinner3(){
	window.open('/eventpopup/sub05_promotion02_event02_2.html','winner3','top=0,left=0,width=800,height=550');
}