//###################################################################################################
//Æò°¡ÇÏ±â
//###################################################################################################
function PointOK()
{	
		var f = document.PointForm;
		if (f.Point.value == "points"){
		alert('Æò°¡ÇÒ º°Á¡À» ¼±ÅÃÇÏ¼¼¿ä');
		return false;
	}
	else f.submit();	
}

function Point_Com()
{
	var f = document.PointComm_Form;

	
	if (f.UserID.value == "")
	{
		alert('·Î±×ÀÎÈÄ ÀÌ¿ë°¡´É ÇÕ´Ï´Ù.');
		f.comment.focus();
		return false;
	}
	if (f.Point.value == "")
	{
		alert('º°Á¡À» ¼±ÅÃÇØÁÖ¼¼¿ä');
		f.Point.focus();
		return false;
	}


	if (f.comment.value == "")
	{
		alert('ÄÚ¸àÆ®¸¦ ½áÁÖ¼¼¿ä');
		f.comment.focus();
		return false;
	}

	f.submit();
}

function Search()
{
	var f = document.SearchForm;
	if (f.SearchTitle.value == '')
	{
		alert('°Ë»öÇÒ ´Ü¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		f.SearchTitle.focus();
		return false;
	}
	f.submit();
}

//#################################################################
// µ¿¿µ»ó ¹× ÇÃ·¡½Ã
//#################################################################
function GetMediaObject(SelectObject,Media,Width,Height)
{
	if(SelectObject == 'P')				//¹Ìµð¾î ÇÃ·¹ÀÌ¾î ÀÏ °æ¿ì
	{
		document.write("<object id='AniPlayer' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' type='application/x-oleobject' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' width='" + Width + "' height='" + Height + "' style='FILTER:gray();z-index:-1;'>");
		document.write("<param name='URL' value='" + Media + "'>");
		document.write("<param name='AutoStart' value='true'>");
		document.write("<param name='Balence' value='0'>");
		document.write("<param name='Volume' VALUE='100'>");
		document.write("<param name='PlayCount' value='1'>");
		document.write("<param name='uiMode' value='full'>");
		document.write("<param name='BaseURL'>");
		document.write("<param name='EnableContextMenu' value='false'>");
		document.write("<param name='InvokeURLs' value='false'>");
		document.write("<param name='stretchToFit' value='true'>");		
		document.write("</object>");
	}
	else if(SelectObject == 'F')		//ÇÃ·¡½Ã ÀÏ °æ¿ì
	{
		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' width='" + Width + "' height='" + Height + "'>");
		document.write("<param name='movie' value='" + Media + "'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("<param name='menu' value='false'>");
		document.write("</object>");
	}
	else if(SelectObject == 'S')
	{
		document.write("<embed src='" + Media + "' width='" + Width + "' height='" +  Height + "'></embed>");
	}
}


function Ready(ContentID,Quality)
{
	window.open('/Pay/Ready.asp?ContentID='+ContentID+'&Quality='+Quality,'Pay','top=100,left=100,width=800,height=600');
}

function ReadyM(ContentID,Quality,Returnurl)
{
	window.open('/Pay/Ready.asp?ContentID='+ContentID+'&Quality='+Quality+'&Returnurl='+Returnurl,'Pay','top=100,left=100,width=400,height=471');
}

function Ready2(ContentID,ProductNo)
{
	window.open('/Pay/ReadyOK.asp?ContentID='+ContentID+'&ProductNo='+ProductNo,'Pay','top=100,left=100,width=400,height=471');
}

function AutoReady(ContentID)
{
	window.open('/Pay/SelAutoReady.asp?ContentID='+ContentID,'Pay','top=100,left=100,width=400,height=471');
}

function AutoReadyE(ContentID)
{
	window.open('/Pay/ReadyE.asp?ContentID='+ContentID,'Pay','top=100,left=100,width=400,height=471');
}

function AutoReadyM(ContentID,Quality)
{
	window.open('/Pay/SelAutoReady.asp?ContentID='+ContentID+'&Quality='+Quality,'Pay','top=100,left=100,width=400,height=471');
}

function CommentDel(Num,ReturnURL)
{
	location.href="/Comment/Delete.asp?Num="+Num+"&ReturnURL="+ReturnURL
}

//###################################################################################################
//·Î±× ÇÁ·¹ÀÓ »çÀÌÁî Á¶Àý
//###################################################################################################
function reSize()
{
	var objBody = EventFrame.document.body;
	var objFrame = document.all["EventFrame"];

	objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
}

//###################################################################################################
//¾ÆÀÌµð ÆÐ½º¿öµå Ã£±â
//###################################################################################################
function PassWizard()
{
	window.open('http://register.freechal.com/PwdWizard/NwPwdWizMain.asp?originalURL=http%3A//www.freechal.com','Pay','top=100,left=100,width=400,height=471');
}


function NoticePop(Num)
{
	window.open('http://vod.freechal.com/Notice/Synop.asp?num='+Num,'Pay','top=100,left=100,width=520,height=471,scrollbars=yes');
}

function PayPop(Num)
{
	window.open('http://vod.freechal.com/inc/Freechal_My.asp?num='+Num,'Pay','top=100,left=100,width=480,height=471,scrollbars=No');
}

function NoticeListPop()
{
	window.open('http://vod.freechal.com/Notice/List.asp','Pay','top=100,left=100,width=520,height=471,scrollbars=yes');
}

function Search()
{
	var f = document.SearchForm;

	if (f.SearchContents.value == '')
	{
		alert('°Ë»öÇÒ ´Ü¾î¸¦ Àû¾îÁÖ¼¼¿ä');
		f.SearchContents.focus();
		return false;
	}
	f.submit();
}

function clearText(thefield)
{
	var f = document.SearchForm;
	
	if (thefield.defaultValue==thefield.value)
		thefield.value = ""

} 


function PayOK()
{
	var f = document.AutoPay;

		if (document.AutoChk.subm.checked==true)
		{
			f.submit();
		}
		else
		{
			alert('ÀÚµ¿°áÁ¦ µ¿ÀÇ¸¦ Ã¼Å©ÇØ ÁÖ¼¼¿ä.');
		}

}

//###################################################################################################
//°Ö·¯¸® Æ÷Åäº¸±â
//###################################################################################################
function PhotoSelect(ContentID,Count)
{
	document.SelectForm.ContentID.value = ContentID;
	document.SelectForm.Count.value = Count;
	document.SelectForm.target = 'Photo';
	document.SelectForm.submit();
}


//###################################################################################################
//½ºÆ¿ÄÆ ¼±ÅÃ
//###################################################################################################
function StillCutSelect(Img,Num)
{
	document.ListForm.Img.value = Img;
	document.ListForm.Num.value = Num;
	document.ListForm.target = 'View';
	document.ListForm.submit();
}
//###################################################################################################
//¿µÈ­ Á¤º¸ ½ºÆ¿ÄÆ ¼±ÅÃ
//###################################################################################################
function MIStillCutSelect(ContentID,Num)
{
	document.ListForm.ContentID.value = ContentID;
	document.ListForm.Num.value = Num;
	document.ListForm.target = 'View';
	document.ListForm.submit();
}



 function openPopup() 
{ 
var noticeCookie=getCookie("Popup");  // ÄíÅ°³×ÀÓ ÁöÁ¤
if (noticeCookie != "no") 
window.open('/Inc/popup/popup/pop_sample.asp','AdultX','width=520,height=305,top=100,left=100'); 
// window.open('ÆË¾÷Ã¢ À¥ÆäÀÌÁö','À©µµ¿ì¸í','width=350,height=400,top=50,left=150'); 
}












//###################################################################################################
//ÇÁ·¹ÀÓ »çÀÌÁî Á¶Àý(¼¼·Î°ª¸¸ Á¶Àý)
//###################################################################################################
function resize()
{
	var objBody = list.document.body;
	var objFrame = document.all["list"];

	objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
}

//###################################################################################################
//¿µÈ­Á¤º¸ ½ºÆ¿ÄÆ ÇÁ·¹ÀÓ »çÀÌÁî Á¶Àý(¼¼·Î°ª¸¸ Á¶Àý)
//###################################################################################################

function clearText(y) {
    if (y.defaultValue == y.value)
    y.value = ""
}

function bluring(){ 
    if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;


//#################################################################
// µ¿¿µ»ó ¹× ÇÃ·¡½Ã
//#################################################################
function GetMediaObject(SelectObject,Media,Width,Height)
{
	if(SelectObject == 'P')				//¹Ìµð¾î ÇÃ·¹ÀÌ¾î ÀÏ °æ¿ì
	{
		document.write("<object id='MoviePlayer' classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' codeBase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' width='" + Width + "' height='" + Height + "' style='FILTER:gray();left:0px;top:0px;' background='./images/logo.gif'>");
		document.write("<param name='FileName' value='" + Media + "'>");
		document.write("<PARAM NAME='CurrentPosition' VALUE='0'>");
		document.write("<PARAM NAME='SetCurrentEntry' VALUE='1'>");
		document.write("<PARAM NAME='ClickToPlay' VALUE='1'>");
		document.write("<PARAM NAME='AutoSize' VALUE='1'>");
		document.write("<PARAM NAME='AutoResize' VALUE='1'>");
		document.write("<PARAM NAME='AnimationAtStart' VALUE='0'>");
		document.write("<PARAM NAME='AutoStart' VALUE='1'>");
		document.write("<PARAM NAME='AutoRewind' VALUE='0'>");
		document.write("<PARAM NAME='Balance' VALUE='0'>");
		document.write("<PARAM NAME='BufferingTime' VALUE='5'>");
		document.write("<PARAM NAME='ShowControls' VALUE='0'>");
		document.write("<PARAM NAME='ShowAudioControls' VALUE='0'>");
		document.write("<PARAM NAME='ShowDisplay' VALUE='0'>");
		document.write("<PARAM NAME='CursorType' VALUE='0'>");
		document.write("<PARAM NAME='CurrentMarker' VALUE='0'>");
		document.write("<PARAM NAME='DisplayBackColor' VALUE='0'>");
		document.write("<PARAM NAME='ShowTracker' VALUE='0'>");
		document.write("<PARAM NAME='ShowStatusBar' VALUE='0'>");
		document.write("<PARAM NAME='DisplayForeColor' VALUE='16777215'>");
		//document.write("<PARAM NAME='DisplayMode' VALUE='0'>");
		document.write("<PARAM NAME='EnableContextMenu' VALUE='0'>");
		document.write("<PARAM NAME='ShowPositionControls' VALUE='0'>");
		document.write("<PARAM NAME='PreviewMode' VALUE='0'>");
		document.write("<PARAM NAME='Rate' VALUE='1'>");
		document.write("<PARAM NAME='SAMILang' VALUE=''>");
		document.write("<PARAM NAME='SAMIStyle' VALUE=''>");
		document.write("<PARAM NAME='SAMIFileName' VALUE=''>");
		document.write("<PARAM NAME='SelectionStart' VALUE='-1'>");
		document.write("<PARAM NAME='SelectionEnd' VALUE='-1'>");
		document.write("<PARAM NAME='SendWarningEvents' VALUE='-1'>");
		document.write("<PARAM NAME='SendErrorEvents' VALUE='-1'>");
		document.write("<PARAM NAME='SendKeyboardEvents' VALUE='0'>");
		document.write("<PARAM NAME='SendMouseClickEvents' VALUE='0'>");
		document.write("<PARAM NAME='SendMouseMoveEvents' VALUE='0'>");
		document.write("<PARAM NAME='SendPlayStateChangeEvents' VALUE='-1'>");
		document.write("<PARAM NAME='ShowCaptioning' VALUE='0'>");
		document.write("<PARAM NAME='ShowGotoBar' VALUE='0'>");
		document.write("<PARAM NAME='TransparentAtStart' VALUE='-1'>");
		document.write("<PARAM NAME='VideoBorderWidth' VALUE='0'>");
		document.write("<PARAM NAME='VideoBorderColor' VALUE='0'>");
		document.write("<PARAM NAME='VideoBorder3D' VALUE='0'>");
		document.write("<PARAM NAME='WindowlessVideo' VALUE='0'>");
		document.write("<PARAM NAME='volume' VALUE='100'>");
		document.write("<param name='uiMode' value='none'>");
		document.write("</object>");
	}
	else if(SelectObject == 'F')		//ÇÃ·¡½Ã ÀÏ °æ¿ì
	{
		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' width='" + Width + "' height='" + Height + "'>");
		document.write("<param name='movie' value='" + Media + "'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("</object>");
	}
	else if(SelectObject == 'S')
	{
		document.write("<embed src='" + Media + "' width='" + Width + "' height='" +  Height + "'></embed>");
	}
}
//#################################################################


function pop4(){
alert("´çÃ·ÀÚ ¹ßÇ¥ ÁØºñÁßÀÔ´Ï´Ù.");
}


function pop3(){
alert(" ÇØ´ç ÀÌº¥Æ® ÀÀ¸ð°¡ ¸¶°¨µÇ¾ú½À´Ï´Ù.     ");
}


function pop2(){
alert("3¿ù25ÀÏ 'ÄÚÄ¡Ä«ÅÍ' ½Ã»çÈ¸ ÁØºñÁßÀÔ´Ï´Ù.");
}


function pop(){
alert("¼­ºñ½º Á¡°ËÁß ÀÔ´Ï´Ù.");
}


//À¯·áÈ¸¿ø ¹«·á ¿µÈ­ º¸±â

function Free(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill/FreeBill.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=400,height=200,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill/FreeBill.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=400,height=200,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


function BugsFree(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill/BugsFreeBill.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=400,height=200,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill/BugsFreeBill.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=400,height=200,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}

function BugsFreeP(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill/BugsFreeBill_P.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=400,height=200,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill/BugsFreeBill_P.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=400,height=200,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


//¿µÈ­ º¸±â

function movie(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill/session.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}

//¾Ö´Ïº¸±â
function movieAni(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill_A/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, opt1 + opt2 ,'width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill_A/session.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, opt1 + opt2,'width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


function FDdown(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{



    if( typeof Open.document == 'object' )
    {
        alert( '´Ù¿î·Îµå Ã¢ÀÌ ¿­·ÁÀÖ½À´Ï´Ù. ¿Ï·áÈÄ ±¸¸ÅÇØ ÁÖ¼¼¿ä');
    }
    else
    {
		Open = window.open("/bugsbill/sessionD.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, opt1 + opt2,'width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=0');
    }


		

}



function FDdownback(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill/downtest.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


function FDdowndel(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
		window.open("/bugsbill/sessionD.asp?MovieID=" + opt2 + "&MemberID=" + bill_code + "&SiteID=bugs&TimeKey=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
}


function Dmovie(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill/Dhycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill/Dsession.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


function movie_prA2(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill_pr/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill_pr/session.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}



function movie_prAuto(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill_pr/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill_pr/Asession.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}

function movie_prA(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill_pr/pay.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill_pr/session.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


function movie_pr(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/bugsbill_pr/pay_pre.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/bugsbill_pr/pay_pre.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}


function fmovie(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/MPbugsbill/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/MPbugsbill/session.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}




//¸¸È­º¸±â
function comic(msg_type,price,opt1,opt2,opt3,ReturnUrl,CPContentID,SubNum)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/Mbugsbill/hycare.asp?request_type=" + msg_type + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl+ "&CPContentID=" + CPContentID + "&SubNum=" + SubNum, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/Mbugsbill/session.asp?request_type=" + msg_type + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl+ "&CPContentID=" + CPContentID + "&SubNum=" + SubNum, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}




//µ¿»ó ÀÌ¸ù ÆÐÅ°Áö
function pmovie(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{
//	document.location="/bugsbill_NT/process.asp?request_type=" + msg_type + "&cp_code=" + cp_id + "&bill_code=" + bill_code + "&price=" + price;
	if(msg_type == '11'){		
		window.open("/Pbugsbill/hycare.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}else{
		window.open("/Pbugsbill/session.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 +"&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');
	}
}

//´Ù¿î Å×½ºÆ®
function prem(msg_type,bill_code,price,opt1,opt2,opt3,ReturnUrl)
{

		window.open("/bugsbill/downtest.asp?request_type=" + msg_type + "&bill_code=" + bill_code + "&price=" + price + "&opt1=" + opt1 + "&opt2=" + opt2 + "&opt3=" + opt3 + "&ReturnUrl=" + ReturnUrl, 'Open','width=640,height=210,statusbar=0,scrollbars=0,top=0,left=0,resizable=1');

}






//ÆäÀÌÁö ·Îµù ÀÌ¹ÌÁö
n  = document.layers 
ie = document.all 
function hide() { 
  if (ie || n) { 
    if (n) document.Load.visibility = "hidden" 
    else   Load.style.visibility    = "hidden" 
  } 
} 

//¾¾³×ÀÎÆ÷½Ã³ô
function go_synop(IFContentid) {
	document.go_synop.IFContentid.value=IFContentid
	document.go_synop.submit();
}

function go_synop1(IFContentid) {
	document.go_synop1.IFContentid.value=IFContentid
	document.go_synop1.submit();
}

function go_synop2(IFContentid) {
	document.go_synop2.IFContentid.value=IFContentid
	document.go_synop2.submit();
}

//¾¾³×Àú³Î½Ã³ô

function go_infosynop(INANum) {
	document.go_infosynop.INANum.value=INANum
	document.go_infosynop.submit();
}

function go_infosynopC(INANum) {
	document.go_infosynopC.INANum.value=INANum
	document.go_infosynopC.submit();
}


function go_infosynopH(INANum) {
	document.go_infosynopH.INANum.value=INANum
	document.go_infosynopH.submit();
}


function go_infosynopR(INANum) {
	document.go_infosynopR.INANum.value=INANum
	document.go_infosynopR.submit();
}


function go_infosynopF(INANum) {
	document.go_infosynopF.INANum.value=INANum
	document.go_infosynopF.submit();
}


function go_infosynopD(INANum) {
	document.go_infosynopD.INANum.value=INANum
	document.go_infosynopD.submit();
}


function go_infosynopI(INANum) {
	document.go_infosynopI.INANum.value=INANum
	document.go_infosynopI.submit();
}



//¿µÈ­Á¤º¸¸®½ºÆ®
function go_list1() {
	document.go_list1.submit();
}


//¿µÈ­Á¤º¸¸®½ºÆ®
function go_list2() {
	document.go_list2.submit();
}

//°øÁö»çÇ×
function go_Notice(BNum) {
	document.go_Notice.BNum.value=BNum
	document.go_Notice.submit();
}




//°øÁö»çÇ×
function go_Notice2(BNum) {
	document.go_Notice2.BNum.value=BNum
	document.go_Notice2.submit();
}


//°øÁö»çÇ×
function go_Notice3(BNum) {
	document.go_Notice3.BNum.value=BNum
	document.go_Notice3.submit();
}

//¿µÈ­½Ã³ô
function SynopG(ContentID,Page,Category) {
	document.SynopGE.ContentID.value=ContentID;
	document.SynopGE.Page.value=Page;
	document.SynopGE.Category.value=Category;
	document.SynopGE.submit();
}

//Å×¸¶
function SynopT(ContentID,Page,Category) {
	document.SynopTE.ContentID.value=ContentID;
	document.SynopTE.Page.value=Page;
	document.SynopTE.Category.value=Category;
	document.SynopTE.submit();
}

//¾Ö´Ï½Ã³ô
function SynopN(ContentID,Page,Category) {
	document.SynopNI.ContentID.value=ContentID;
	document.SynopNI.Page.value=Page;
	document.SynopNI.Category.value=Category;
	document.SynopNI.submit();
}

//°Ô½Ã¹° ÀÔ·Â
function BoardInsertSubmit() {
	var f=document.BoardInsertOK; 
		
		if (f.BTitle.value=="") {
		alert("±Û Á¦¸ñÀ» ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ");
		f.BTitle.focus();
		return false;
		}
		
		if (f.BMemo.value=="") {
		alert("±Û ³»¿ëÀ» ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ");
		f.BMemo.focus();
		return false;
		}

		document.BoardInsertOK.submit();
}


//°Ô½ÃÆÇ ¸ñ·Ï ÆäÀÌÂ¡
function BoardPaging(Page) { 
	document.BoardListPaging.Page.value = Page	
    document.BoardListPaging.submit() ;
}


//°øÁö»çÇ× ¸ñ·Ï ÆäÀÌÂ¡
function NoticePaging(Page) { 
	document.NoticeListPaging.Page.value = Page	
    document.NoticeListPaging.submit() ;
}


//°Ô½ÃÆÇ ´äº¯ÆäÀÌÁö
function BoardReplyGO(BIdx) { 
	document.BoardReply.BoardReply.value = BIdx	
    document.BoardReply.submit();
}

//°Ô½ÃÆÇ »ó¼¼ÆäÀÌÁö
function BoardReadGO(BNum) { 
	document.BoardRead.BoardRead.value = BNum;	
    document.BoardRead.submit();
}

//°Ô½Ã¹° ¼öÁ¤(Primary Key RtnBIdx)
function BoardEditing(RtnBNum) { 
	document.BoardEdit.BNum.value = RtnBNum	
    document.BoardEdit.submit() ;
}

//°Ô½Ã¹°»èÁ¦ ¹× ÆÄÀÏ »èÁ¦
function	BoardDel(BNum,BCode){
	if(confirm("°Ô½Ã¹°À» »èÁ¦ ÇÏ½Ã¸é\n\n±Û°ú ÀÌ¹ÌÁö°¡ ÇÔ²² »èÁ¦ µË´Ï´Ù.\n\n°Ô½Ã¹°À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
		location.href = "/Board/BoardDeleteOK.asp?BNum="+BNum+"&BCode="+BCode
	}
}


//°Ô½ÃÆÇ ÄÚµå ¸®ÅÏ
function BoardCode(BCode) { 
	document.BoardManagement.BoardCode.value = BCode	
    document.BoardManagement.submit();
}

//·Î±×ÀÎ Ã¼Å©
function LoginChk(){
	var F01 = document.LoginForm
	if(F01.CNRID01.value == ""){
		alert('¾ÆÀÌµð¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.CNRID01.focus();
		return false;
	}

	if(F01.CNRPass01.value == ""){
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.CNRPass01.focus();
		return false;
	}
	F01.submit();
}

function EnterKey(){
	var F01 = document.LoginForm
	if(F01.CNRID01.value == "" && event.keyCode ==13){
		alert('¾ÆÀÌµð¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.CNRID01.focus();
		return false;
	}

	if(F01.CNRPass01.value == "" && event.keyCode ==13){
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.CNRPass01.focus();
		return false;
	}
	if(event.keyCode ==13) { 
		F01.submit(); 
	} 
}


function EnterKey2(){

	if(event.keyCode ==13) { 
		document.SearchForm2.submit(); 
	} 
}

//¿µÈ­Á¤º¸ ÇÃ·¹ÀÌ¾îÃ¢
function preview(file) { pounm=window.open('/player/info_player.asp?c=128&IFID='+file,'pewplayer','width=520 height=400')}

//ÅëÇÕ °Ë»ö
function SROK(){
	var F01 = document.SearchForm
	if(F01.SSearch.value == ""){
		alert('°Ë»ö ´ë»óÀ» ¼±ÅÃ ÇØ ÁÖ¼¼¿ä.   ');
		F01.KeyWord.focus();
		return false;
	}
	if(F01.KeyWord.value == ""){
		alert('°Ë»ö¾î¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.KeyWord.focus();
		return false;
	}
	F01.submit();
}



function SROK2(){
	var F01 = document.SearchForm2
	if(F01.SSearch.value == ""){
		alert('°Ë»ö ´ë»óÀ» ¼±ÅÃ ÇØ ÁÖ¼¼¿ä.   ');
		F01.KeyWord.focus();
		return false;
	}
	if(F01.KeyWord.value == ""){
		alert('°Ë»ö¾î¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.KeyWord.focus();
		return false;
	}
	F01.submit();
}



//ÅëÇÕ °Ë»ö
function SRKeyOK(){
	var F01 = document.SearchForm
	F01.KeyWord.style.backgroundImage="";
	if(F01.SSearch.value == "" && event.keyCode ==13){
		alert('°Ë»ö ´ë»óÀ» ¼±ÅÃ ÇØ ÁÖ¼¼¿ä.   ');
		F01.KeyWord.focus();
		return false;
	}
	if(F01.KeyWord.value == "" && event.keyCode ==13){
		alert('°Ë»ö¾î¸¦ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.KeyWord.focus();
		return false;
	}
	if (event.keyCode ==13)
	{
		F01.submit();
	}
}

function IDFindChk()
{
	var F01 = document.find
	if(F01.Name.value == ""){
		alert('ÀÌ¸§À» ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.Name.focus();
		return false;
	}
	if(F01.Num1.value == "" || F01.Num2.value == ""){
		alert('ÁÖ¹Î¹øÈ£¸¦ Á¤È®È÷ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.Num1.focus();
		return false;
	}
	F01.submit();
}

function IDFindKeyChk()
{
	var F01 = document.find
	if(F01.Name.value == "" && event.keyCode ==13){
		alert('ÀÌ¸§À» ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.Name.focus();
		return false;
	}
	if((F01.Num1.value == "" || F01.Num2.value == "") && event.keyCode ==13){
		alert('ÁÖ¹Î¹øÈ£¸¦ Á¤È®È÷ ÀÔ·Â ÇØ ÁÖ¼¼¿ä.   ');
		F01.Num1.focus();
		return false;
	}
	if(event.keyCode ==13)
	{
		F01.submit();
	}
}

function InputChk()
{
	var F01 = document.ZipFind
	if(F01.Addr.value == ""){
		alert('°Ë»ö ´ë»óÀ» ¼±ÅÃ ÇØ ÁÖ¼¼¿ä.   ');
		F01.Addr.focus();
		return false;
	}
	F01.submit();
}


function InputKeyChk()
{
	var F01 = document.ZipFind
	if(F01.Addr.value == "" && event.keyCode ==13){
		alert('°Ë»ö ´ë»óÀ» ¼±ÅÃ ÇØ ÁÖ¼¼¿ä.   ');
		F01.Addr.focus();
		return false;
	}
	if (event.keyCode ==13)
	{
		F01.submit();
	}
}

//·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ÆäÀÌÁöÀÏ °æ¿ì ¾Ë·µÃ¢À» ¶ç¿ì°í ·Î±×ÀÎÃ¢À¸·Î ÀÌµ¿(Æ÷Ä¿½º)
function loginchk01(RtnUrl){
	var F01 = document.LoginForm
	alert('·Î±×ÀÎÀ» ÇØ ÁÖ¼¼¿ä.   ');
	window.location.href = "/Member/LoginPage.asp?RtnUrl=" + RtnUrl;
}

function loginchkdown01(RtnUrl){
	var F01 = document.LoginForm
	if (event.keyCode ==13)
	{
		alert('·Î±×ÀÎÀ» ÇØ ÁÖ¼¼¿ä.   ');
		window.location.href = "/Member/LoginPage.asp?RtnUrl=" + RtnUrl;
	}
}


//½Ã»çÈ¸½ÅÃ»
function sisa2()
{
	
	if(document.sisa.etc3.value=="")
	{
		alert("ÀÀ¿ø¸Þ½ÃÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä ");
		document.sisa.etc3.focus();
		return false;
	}
	document.sisa.submit();
	
}



function sisa(){ 
	document.sisa.submit();
}



//´ÞÄÞÇÑ ÀÎ»ý ½Ã»çÈ¸½ÅÃ»
function check_log(){ 
	document.sisa.submit();
}



//Äü¸Þ´º....
function select(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != null) {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'remote');
     } else {
       var frameobj = eval(targetstr);
       frameobj.location = sel.options[index].value;
     }
  }
}




//½ºÆ¿ ÀÌ¹ÌÁö ÆË¾÷ ½ºÅ©¸³Æ®
function viewPic(img){
  foto1= new Image();
  foto1.src=(img);
  contImg(img);
}
function contImg(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewImg(img);
  }
  else{
    funzione="contImg('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewImg(img){
  largh=foto1.width;
  altez=foto1.height;
  stringa="width="+largh+",height="+altez;
  finestra=window.open('/Inc/StillImgPopup.asp?Img='+img,"",stringa);
}

//ÆË¾÷ °¡¿îµ¥ ¶ç¿ì±â
function Open(url, n, w, h, s) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+s+',resizable=no'
win = window.open(url, n, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//»ó¿µÀÛ,¿¹Á¤ÀÛ º¯È¯
function oncaps() { 
	var img = new Array(2);
	img[0] = "sangse_but.gif";
	img[1] = "sangse_but.gif";

	var objimg = document.all.item('imgcap');
	var imgsrc = objimg.src;

	if (imgsrc.search(img[0]) != -1 && document.all.nocap.style.display == "none") { // Control Bar On
		objimg.src = "/img/" + img[1];
		document.all.cap.style.display = "none";
		document.all.nocap.style.display = "";
	}else{ // Control Bar Off
		objimg.src = "/img/" + img[0];
		document.all.cap.style.display = "";
		document.all.nocap.style.display = "none";
	}
}




//½ºÆ¿ÀÌ¹ÌÁö ÆË¾÷
function stillpop(contentid,still_num) { 
	window.open('stillpop.asp?contentid='+contentid+'&still_num='+still_num,'stillpop','width=610 height=440 scrollbars=no');
}



//ÇÃ·¹ÀÌ(°íÈ­Áú/ÀÏ¹ÝÈ­Áú), °áÁ¦ ±¸ºÐ
function Ready(ContentID,Quality) {Open('/Pay/PayReady.asp?ContentID='+ContentID+'&Quality='+Quality,'Ready','350','350','0');}

//ÇÃ·¹ÀÌ(°íÈ­Áú/ÀÏ¹ÝÈ­Áú), °áÁ¦ ±¸ºÐ
function ReadyEvent(ContentID,Quality) {Open('/Player/Player.asp?ContentID='+ContentID+'&Quality='+Quality,'Ready','350','350','0');}

//°áÁ¦ ¼ö´Ü ¼±ÅÃ
function PaySend(){
	var p = document.PaySelect;
	if (p.PayPart.value=="")
	{
		alert('°áÁ¦ Á¾·ù¸¦ ¼±ÅÃÇÏÁö ¾Ê¾Ò½À´Ï´Ù.');
		p.PayPart.focus();
		return false;
	}
	if (p.PayWay.value=="")
	{
		alert('°áÁ¦ ¼ö´ÜÀ» ¼±ÅÃÇÏÁö ¾Ê¾Ò½À´Ï´Ù.');
		p.PayWay.focus();
		return false;
	}
	p.submit();
}

function clearText(thefield){//¸¶¿ì½º¸¦ Å¬¸¯ÇÏ¸é ÅØ½ºÆ®°¡ »ç¶óÁý´Ï´Ù
if (thefield.defaultValue==thefield.value)
        thefield.value = ""
} 

function RedirectURL(){	
	var url="http://www.dramaclub.com/help/login.asp?return_url=http://www.dramaclub.com/refresh/refresh_frame.asp?cpframe=ci_1"
	window.location=url
}







function CommentChk()
{		
	if(!CommentForm.UserID.value)
	{
		login();	
		return false;
	}
	if(CommentForm.Point.value=="")
	{
		alert("º°Á¡À» ¼±ÅÃÇØÁÖ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	if(!CommentForm.Comment.value||CommentForm.Comment.value=="ÇÑÁÙÆòÀ»ÀÔ·ÂÇÏ¼¼¿ä")
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" ")
		{
			j=j+1;
		}
	}
	if (j <=0 )
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	document.CommentForm.submit();
}



function CommentChk2()
{		
	if(!CommentForm.UserID.value)
	{
		login2();	
		return false;
	}
	if(CommentForm.Point.value=="")
	{
		alert("º°Á¡À» ¼±ÅÃÇØÁÖ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	if(!CommentForm.Comment.value||CommentForm.Comment.value=="ÇÑÁÙÆòÀ»ÀÔ·ÂÇÏ¼¼¿ä")
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" ")
		{
			j=j+1;
		}
	}
	if (j <=0 )
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	document.CommentForm.submit();
}




function CommentDown()
{		
	if(!CommentForm.UserID.value && event.keyCode ==13)
	{
		alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.    ");
//		login();	
		return false;
	}
	if(CommentForm.Point.value=="" && event.keyCode ==13)
	{
		alert("º°Á¡À» ¼±ÅÃÇØÁÖ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	if((!CommentForm.Comment.value||CommentForm.Comment.value=="ÇÑÁÙÆòÀ»ÀÔ·ÂÇÏ¼¼¿ä") && event.keyCode ==13)
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" " && event.keyCode ==13)
		{
			j=j+1;
		}
	}
	if (j <=0 && event.keyCode ==13)
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	if(event.keyCode ==13)
	{
		document.CommentForm.submit();
	}
	return false;
}




function BCommentChk()
{		
	if(!CommentForm.UserID.value)
	{
		alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.    ");
		//RedirectURL(){	
		return false;
	}
	if(!CommentForm.Comment.value||CommentForm.Comment.value=="¸®ÇÃÀ»ÀÔ·ÂÇÏ¼¼¿ä")
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" ")
		{
			j=j+1;
		}
	}
	if (j <=0 )
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	document.CommentForm.submit();
}

function BCommentDown()
{		
	if(!CommentForm.UserID.value && event.keyCode ==13)
	{
		alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.    ");
		//RedirectURL(){	
		return false;
	}
	if((!CommentForm.Comment.value||CommentForm.Comment.value=="¸®ÇÃÀ»ÀÔ·ÂÇÏ¼¼¿ä") && event.keyCode ==13)
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" " && event.keyCode ==13)
		{
			j=j+1;
		}
	}
	if (j <=0 && event.keyCode ==13)
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	if(event.keyCode ==13)
	{
		document.CommentForm.submit();
	}
	return false;
}









function NCommentChk()
{		
	if(!CommentForm.UserID.value)
	{
		alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.    ");
		//RedirectURL(){	
		return false;
	}
	if(!CommentForm.Comment.value||CommentForm.Comment.value=="¸®ÇÃÀ»ÀÔ·ÂÇÏ¼¼¿ä")
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" ")
		{
			j=j+1;
		}
	}
	if (j <=0 )
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	document.CommentForm.submit();
}

function NCommentDown()
{		
	if(!CommentForm.UserID.value && event.keyCode ==13)
	{
		alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.    ");
		//RedirectURL(){	
		return false;
	}
	if((!CommentForm.Comment.value||CommentForm.Comment.value=="¸®ÇÃÀ»ÀÔ·ÂÇÏ¼¼¿ä") && event.keyCode ==13)
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.    ");
		CommentForm.Comment.focus();
		return false;
	}
	var j=0;
	for(i=0;i<CommentForm.Comment.value.length;i++)
	{
		if(CommentForm.Comment.value.charAt(i)!=" " && event.keyCode ==13)
		{
			j=j+1;
		}
	}
	if (j <=0 && event.keyCode ==13)
	{ 	
		alert("°ø¹é¸¸Àº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.    ");
		CommentForm.Comment.focus();
		return false;
	}
	if(event.keyCode ==13)
	{
		document.CommentForm.submit();
	}
	return false;
}









//°Ô½Ã¹° ÀÔ·Â
function CustomChk() {
	var f=document.custom; 
		
	if (f.Category.value=="") {
	alert("ÁÖÁ¦¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.   ");
	return false;
	}
	
	if (f.Email1.value=="" || f.Email2.value=="" ) {
	alert("E-MailÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.   ");
	f.Email1.focus();
	return false;
	}

	if (f.Title.value=="") {
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.   ");
	f.Title.focus();
	return false;
	}

	if (f.Content.value=="") {
	alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.   ");
	f.Content.focus();
	return false;
	}

	f.submit();
}

//°Ô½Ã¹° ÀÔ·Â
function CustomDownChk() {
	var f=document.custom; 
		
	if (f.Category.value=="" && event.keyCode ==13) {
	alert("ÁÖÁ¦¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.   ");
	return false;
	}
	
	if ((f.Email1.value=="" || f.Email2.value=="") && event.keyCode ==13) {
	alert("E-MailÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.   ");
	f.Email1.focus();
	return false;
	}

	if (f.Title.value=="" && event.keyCode ==13) {
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.   ");
	f.Title.focus();
	return false;
	}

	if (f.Content.value=="" && event.keyCode ==13) {
	alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.   ");
	f.Content.focus();
	return false;
	}
	if(event.keyCode ==13){
		f.submit();
	}
}

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["ScrollMenu"].top;
                yMenuTo     = top.pageYOffset + 392; //ÀÌ ¼ýÀÚ¸¦ ¼öÁ¤ÇÏ¸é À§ÂÊ¿©¹éÀ» Á¶Àý ÇÒ ¼ö ÀÖ½À´Ï´Ù(³×Ã÷ÄÉÀÌÇÁ)
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (ScrollMenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 392;//ÀÌ ¼ýÀÚ¸¦ ¼öÁ¤ÇÏ¸é À§ÂÊ¿©¹éÀ» Á¶Àý ÇÒ ¼ö ÀÖ½À´Ï´Ù(ÀÍ½ºÇÃ·Î·¯)
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }

        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["ScrollMenu"].top += yOffset;
                else if ( bExplorer4plus )
                        ScrollMenu.style.top = parseInt (ScrollMenu.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["ScrollMenu"].top = top.pageYOffset + 135;
                document["ScrollMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                ScrollMenu.style.top = document.body.scrollTop + 135;
                ScrollMenu.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}

var tID = null;
var getObj = null;
var mq = new classMQ();

function classMQ(){
}

classMQ.prototype.set = function(obj){
getObj = obj;
this.BLANK = "                         ";
this.CONTENT = getObj.value;
this.SCROLL = this.BLANK + this.CONTENT + this.BLANK + this.CONTENT;
}

classMQ.prototype.scroll = function( )
{
if (!getObj)	return;

var value = getObj.value;
getObj.value = value.substring(1);
if ("" == getObj.value.length){
	getObj.value = this.SCROLL;
}
}

classMQ.prototype.init = function(  ) 
{
if (!getObj)	return;
getObj.value = this.CONTENT;
}

function PriceDivChk(value){
	var MakeForm;
	if(value == "1")
	{
		MakeForm = "<font color=#827701><b>+ °áÀç¹æ¹ý</b></font><br><input type=radio name=PayWay Value=HP style=height:14px;border:0 checked>ÈÞ´ëÆù<br><input type=radio name=PayWay Value=Card style=height:14px;border:0>½Å¿ëÄ«µå<br>";
	}
	else if(value == "2")
	{
		MakeForm = "<font color=#827701><b>+ °áÀç¹æ¹ý</b></font><br><input type=radio name=PayWay Value=HP style=height:14px;border:0 checked>ÈÞ´ëÆù<br>";
	}
	document.all.PriceDiv.innerHTML = MakeForm;


}

function PriceUp(value){
	var MakeForm;
	document.all.PriceUpValue.innerHTML = "±Ý¾×&nbsp;<img src='/Img/icon_01.gif' align='absmiddle'>&nbsp;<font color='#B1407B'>"+value+"¿ø</font>";
}

//·¹ÀÌ¾î ÆË¾÷ ¿­±â
function PopView(){
	document.all.PopPanel.style.display="";
}

//·¹ÀÌ¾î ÆË¾÷ ´Ý±â
function Close_PopPanel() {
	document.all.PopPanel.style.display="none";
}

//ÄíÆù¹øÈ£ µî·Ï Ã¼Å©
function CouponChk(){
	var f = document.CouponForm;
	
	if (f.UserID.value == "") {
		alert("·Î±×ÀÎÀ» ÇØÁÖ¼¼¿ä.");
		return false;
	}
	if (f.CouponNum.value == "") {
		alert("ÄíÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		f.CouponNum.focus();
		return false;
	}
	f.submit();	
}


function time()
{
 var now = new Date;
 document.all.time1.innerText = "" + now.getYear() + "-" + (now.getMonth()+1) + "-" + now.getDate() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds();
 setTimeout("time()", 1000);
}



// »ó¼¼Æä¿¡Áö ÅÜ¹öÆ°
function toggle(objidx) {
	if (objidx == 1) {
		document.all.Tab1.style.display = "";
		document.all.Tab2.style.display = "none";


	}
	else if (objidx == 2) {
		document.all.Tab1.style.display = "none";
		document.all.Tab2.style.display = "";



	}
	else if (objidx == 3) {
		document.all.Tab1.style.display = "";
		document.all.Tab2.style.display = "";


	}
}


function MMtoggle(objidx) {
	if (objidx == 1) {
		document.all.drama.style.display = "";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.mohyub.style.display = "none";
		document.all.ImgMM1.src = "/Img/m_genre_1_over.gif"
		document.all.ImgMM2.src = "/Img/m_genre_2_roll.gif"
		document.all.ImgMM3.src = "/Img/m_genre_3_roll.gif"
		document.all.ImgMM4.src = "/Img/m_genre_4_roll.gif"
		document.all.ImgMM5.src = "/Img/m_genre_5_roll.gif"
		document.all.ImgMM6.src = "/Img/m_genre_6_roll.gif"
	}
	else if (objidx == 2)
	{
		document.all.drama.style.display = "none";
		document.all.action.style.display = "";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.mohyub.style.display = "none";
		document.all.ImgMM1.src = "/Img/m_genre_1_roll.gif"
		document.all.ImgMM2.src = "/Img/m_genre_2_over.gif"
		document.all.ImgMM3.src = "/Img/m_genre_3_roll.gif"
		document.all.ImgMM4.src = "/Img/m_genre_4_roll.gif"
		document.all.ImgMM5.src = "/Img/m_genre_5_roll.gif"
		document.all.ImgMM6.src = "/Img/m_genre_6_roll.gif"
	}
	else if (objidx == 3)
	{
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.mohyub.style.display = "none";
		document.all.ImgMM1.src = "/Img/m_genre_1_roll.gif"
		document.all.ImgMM2.src = "/Img/m_genre_2_roll.gif"
		document.all.ImgMM3.src = "/Img/m_genre_3_over.gif"
		document.all.ImgMM4.src = "/Img/m_genre_4_roll.gif"
		document.all.ImgMM5.src = "/Img/m_genre_5_roll.gif"
		document.all.ImgMM6.src = "/Img/m_genre_6_roll.gif"
	}
	else if (objidx == 4)
	{
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "";
		document.all.ero.style.display = "none";
		document.all.mohyub.style.display = "none";
		document.all.ImgMM1.src = "/Img/m_genre_1_roll.gif"
		document.all.ImgMM2.src = "/Img/m_genre_2_roll.gif"
		document.all.ImgMM3.src = "/Img/m_genre_3_roll.gif"
		document.all.ImgMM4.src = "/Img/m_genre_4_over.gif"
		document.all.ImgMM5.src = "/Img/m_genre_5_roll.gif"
		document.all.ImgMM6.src = "/Img/m_genre_6_roll.gif"
	}
	else if (objidx == 5)
	{
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "";
		document.all.mohyub.style.display = "none";
		document.all.ImgMM1.src = "/Img/m_genre_1_roll.gif"
		document.all.ImgMM2.src = "/Img/m_genre_2_roll.gif"
		document.all.ImgMM3.src = "/Img/m_genre_3_roll.gif"
		document.all.ImgMM4.src = "/Img/m_genre_4_roll.gif"
		document.all.ImgMM5.src = "/Img/m_genre_5_over.gif"
		document.all.ImgMM6.src = "/Img/m_genre_6_roll.gif"
	}
	else if (objidx == 6)
	{
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.mohyub.style.display = "";
		document.all.ImgMM1.src = "/Img/m_genre_1_roll.gif"
		document.all.ImgMM2.src = "/Img/m_genre_2_roll.gif"
		document.all.ImgMM3.src = "/Img/m_genre_3_roll.gif"
		document.all.ImgMM4.src = "/Img/m_genre_4_roll.gif"
		document.all.ImgMM5.src = "/Img/m_genre_5_roll.gif"
		document.all.ImgMM6.src = "/Img/m_genre_6_over.gif"
	}

}

function Maintoggle(objidx)
{
	if (objidx == 1)
	{
		document.all.all.style.display = "";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_over.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 2)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_over.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 3)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_over.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 4)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_over.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 5)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_over.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 6)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_over.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 7)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_over.gif';
	}
}

function MainRightToggle(objidx)
{
	alert(objidx);
	if (objidx == 1)
	{
		document.all.movie.style.display = "none";
		document.all.ani.style.display = "none";
		document.all.adult.style.display = "none";
		document.all.Image74.src='/Img/e_best10_t2_roll.gif';
		document.all.Image75.src='/Img/e_best10_t3_roll.gif';
		document.all.Image76.src='/Img/e_best10_t4_roll.gif';
	}
	else if (objidx == 2)
	{	
		document.all.movie.style.display = "";
		document.all.ani.style.display = "none";
		document.all.adult.style.display = "none";
		document.all.Image74.src='/Img/e_best10_t2_over.gif';
		document.all.Image75.src='/Img/e_best10_t3_roll.gif';
		document.all.Image76.src='/Img/e_best10_t4_roll.gif';
	}
	else if (objidx == 3)
	{
		document.all.movie.style.display = "none";
		document.all.ani.style.display = "";
		document.all.adult.style.display = "none";
		document.all.Image74.src='/Img/e_best10_t2_roll.gif';
		document.all.Image75.src='/Img/e_best10_t3_over.gif';
		document.all.Image76.src='/Img/e_best10_t4_roll.gif';
	}
}

function Maintoggle(objidx)
{
	if (objidx == 1)
	{
		document.all.all.style.display = "";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_over.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 2)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_over.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 3)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_over.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 4)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_over.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 5)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_over.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 6)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "";
		document.all.muhyub.style.display = "none";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_over.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_roll.gif';
	}
	else if (objidx == 7)
	{
		document.all.all.style.display = "none";
		document.all.drama.style.display = "none";
		document.all.action.style.display = "none";
		document.all.comic.style.display = "none";
		document.all.horror.style.display = "none";
		document.all.ero.style.display = "none";
		document.all.muhyub.style.display = "";
		document.all.mainImg1.src='/Img/e_genre_t1_roll.gif';
		document.all.mainImg2.src='/Img/e_genre_t2_roll.gif';
		document.all.mainImg3.src='/Img/e_genre_t3_roll.gif';
		document.all.mainImg4.src='/Img/e_genre_t4_roll.gif';
		document.all.mainImg5.src='/Img/e_genre_t5_roll.gif';
		document.all.mainImg6.src='/Img/e_genre_t6_roll.gif';
		document.all.mainImg7.src='/Img/e_genre_t7_over.gif';
	}
}

function MainRightToggle(objidx)
{
	if (objidx == 1)
	{
		document.all.all0.style.display = "";
		document.all.movie.style.display = "none";
		document.all.ani.style.display = "none";
		document.all.adult.style.display = "none";
		document.all.Image73.src='/Img/e_best10_t1_over.gif';
		document.all.Image74.src='/Img/e_best10_t2_roll.gif';
		document.all.Image75.src='/Img/e_best10_t3_roll.gif';
		document.all.Image76.src='/Img/e_best10_t4_roll.gif';
	}
	else if (objidx == 2)
	{	
		document.all.all0.style.display = "none";
		document.all.movie.style.display = "";
		document.all.ani.style.display = "none";
		document.all.adult.style.display = "none";
		document.all.Image73.src='/Img/e_best10_t1_roll.gif';
		document.all.Image74.src='/Img/e_best10_t2_over.gif';
		document.all.Image75.src='/Img/e_best10_t3_roll.gif';
		document.all.Image76.src='/Img/e_best10_t4_roll.gif';
	}
	else if (objidx == 3)
	{
		document.all.all0.style.display = "none";
		document.all.movie.style.display = "none";
		document.all.ani.style.display = "";
		document.all.adult.style.display = "none";
		document.all.Image73.src='/Img/e_best10_t1_roll.gif';
		document.all.Image74.src='/Img/e_best10_t2_roll.gif';
		document.all.Image75.src='/Img/e_best10_t3_over.gif';
		document.all.Image76.src='/Img/e_best10_t4_roll.gif';
	}
	else if (objidx == 4)
	{
		document.all.all0.style.display = "none";
		document.all.movie.style.display = "none";
		document.all.ani.style.display = "none";
		document.all.adult.style.display = "";
		document.all.Image73.src='/Img/e_best10_t1_roll.gif';
		document.all.Image74.src='/Img/e_best10_t2_roll.gif';
		document.all.Image75.src='/Img/e_best10_t3_roll.gif';
		document.all.Image76.src='/Img/e_best10_t4_over.gif';
	}
}

function OSTtoggle(objidx)
{
	if (objidx == 1)
	{
//		document.all.synop.style.display = "";
//		document.all.ost.style.display = "none";
//		document.all.Image17.src='/Img/vod_sy_tab1_over.gif'
//		document.all.Image18.src='/Img/vod_sy_tab2_roll.gif'
//		document.all.Image19.src='/Img/vod_sy_tab3_roll.gif'
	}
	else if (objidx == 2)
	{
//		document.all.synop.style.display = "none";
//		document.all.ost.style.display = "";
//		document.all.Image17.src='/Img/vod_sy_tab1_roll.gif'
//		document.all.Image18.src='/Img/vod_sy_tab2_over.gif'
//		document.all.Image19.src='/Img/vod_sy_tab3_roll.gif'
	}
	else if (objidx == 3)
	{
//		document.all.synop.style.display = "";
//		document.all.ost.style.display = "";
//		document.all.Image17.src='/Img/vod_sy_tab1_roll.gif'
//		document.all.Image18.src='/Img/vod_sy_tab2_roll.gif'
//		document.all.Image19.src='/Img/vod_sy_tab3_over.gif'
	}
}

function Phototoggle(objidx)
{
	if (objidx == 2)
	{
		document.all.searom.style.display = "";
		document.all.bth.style.display = "none";
		document.all.main.style.display = "none";
		document.all.mina.style.display = "none";
		document.all.PImg2.src='/img/sg_2_on.gif'	
		document.all.PImg3.src='/img/sg_3_off.gif'
		document.all.PImg4.src='/img/sg_4_off.gif'
		document.all.PImg7.src='/img/sg_7_off.gif'
	}  
	else if (objidx == 3)
	{
		document.all.searom.style.display = "none";
		document.all.bth.style.display = "";
		document.all.main.style.display = "none";
		document.all.mina.style.display = "none";
		document.all.PImg2.src='/img/sg_2_off.gif';
		document.all.PImg3.src='/img/sg_3_on.gif';
		document.all.PImg4.src='/img/sg_4_off.gif';
		document.all.PImg7.src='/img/sg_7_off.gif';
	} 
	else if (objidx == 4)
	{
		document.all.searom.style.display = "none";
		document.all.bth.style.display = "none";
		document.all.main.style.display = "";
		document.all.mina.style.display = "none";
		document.all.PImg2.src='/img/sg_2_off.gif';
		document.all.PImg3.src='/img/sg_3_off.gif';
		document.all.PImg4.src='/img/sg_4_on.gif';
		document.all.PImg7.src='/img/sg_7_off.gif';
	} 	
	else if (objidx == 7)
	{
		document.all.searom.style.display = "none";
		document.all.bth.style.display = "none";
		document.all.star.style.display = "none";
		document.all.mina.style.display = "";
		document.all.PImg2.src='/img/sg_2_off.gif';
		document.all.PImg3.src='/img/sg_3_off.gif';
		document.all.PImg4.src='/img/sg_4_off.gif';
		document.all.PImg7.src='/img/sg_7_on.gif';
	} 
}

function Search()
{
	var f = document.SearchForm;

	if (f.SearchText.value == '' )
	{
		alert('°Ë»öÇÒ ´Ü¾î¸¦ ½áÁÖ¼¼¿ä');
		f.SearchText.focus();
		return false;
	}
	f.submit();


}

//·Î±×ÀÎ ÆË¾÷
function BLogin_Pop() { 
//	AReturnUrl = encodeURIComponent(AReturnUrl);
//	window.open('http://reg.bugs.co.kr/member/login/form?'+AReturnUrl,'stillpop','width=360 height=288 scrollbars=no');
//	window.open('https://secure.bugs.co.kr/member/popupLogin?rUrl='+AReturnUrl,'stillpop','width=258 height=201');
	window.open('','stillpop','width=258 height=201');
	loginPopForm.target = "stillpop";
	loginPopForm.submit();
}

//Ä³½¬ÃæÀü
function cash_Pop() { 
//	window.open('https://pay.bugs.co.kr/index?pay_method=HP','stillpop','width=360 height=288 scrollbars=no');
	window.open('','cashChargePop','width=258 height=201');
	cashChargeForm.target = "cashChargePop";
	cashChargeForm.submit();
} 


function bugs_eve(objidx)
{
	if (objidx == 1)
	{
			alert('´çÃ·À» ÃàÇÏÇÕ´Ï´Ù!\nÃÖÃÊ 1È¸ ´Ù¿î·Îµå¸¦ ¹«·á·Î\n´Ù¿î·Îµå ÀÌ¿ë ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ');
			
			var f = document.lott;
			f.opt.value = 1;
			f.submit();


	}  
	else if (objidx == 2)
	{
			alert('´çÃ·À» ÃàÇÏÇÕ´Ï´Ù!\n Áö±ÝºÎÅÍ 24½Ã°£ µ¿¾È ¿ùÁ¤¾×ÀÇ ¸ðµç ¿µÈ­¸¦\n¹«·á·Î ÀÌ¿ëÀÌ °¡´ÉÇÕ´Ï´Ù. ^^ ');

			var f = document.lott;
			f.opt.value = 2;
			f.submit();
	} 
	else if (objidx == 3)
	{
			alert('\n¾Æ½±³×¿ä È¸¿ø´Ô!\n³»ÀÏ ´Ù½Ã ÀÀ¸ðÇØÁÖ¼¼¿ä. ^^');
			
			var f = document.lott;
			f.opt.value = 3;
			f.submit();
			
	} 	
	
}

//¾ÆÀÌµð Æä½º¿öµåÃ£±â
function join_Pop() { 
	window.open('https://reg.bugs.co.kr/member/find/jointype','stillpop2','width=494 height=472 scrollbars=no');
}