// °øÅë XMLHTTP
function getXMLHttpRequest() {
	if(window.ActiveXObject) {
		try{
			return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				return new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e1) {
				return null;
			}
		}
	}else if(window.XMLHttpRequest) {
		return new XMLHttpRequest();
	}else{
	  return null;
	}
}
function imgSize(img,imgw,imgh){
	img1= new Image();
	img1.src=(img.src);
	imgControll(img,imgw,imgh);
}
function imgControll(img,imgw,imgh){ 
	if((img1.width!=0)&&(img1.height!=0)){
		viewImage(img,imgw,imgh);
	}else{
		controller="imgControll('"+img+"')"; 
		intervalID=setTimeout(controller,20); 
	}
}
function viewImage(img,imgw,imgh){
	var width = img1.width;
	var height = img1.height;
	var temp = 0; 
	var max_width= imgw;// ÀÌ¹ÌÁöÀÇ ÃÖ´ë Å©±â
	var max_height= imgh;// ÀÌ¹ÌÁöÀÇ ÃÖ´ë Å©±â
	if ( width > max_width) {  // ÀÌ¹ÌÁö°¡ 600º¸´Ù Å©´Ù¸é ³Êºñ¸¦ 600À¸·Î ¸Â¿ì°í ºñÀ²¿¡ ¸ÂÃç ¼¼·Î°ªÀ» º¯°æÇÑ´Ù.      
		height = height/(width / max_width);
		width = max_width;
	}
	if (height > max_height){// ÀÌ¹ÌÁö°¡ 400º¸´Ù Å©´Ù¸é ³Êºñ¸¦ 400À¸·Î ¸Â¿ì°í ºñÀ²¿¡ ¸ÂÃç ¼¼·Î°ªÀ» º¯°æÇÑ´Ù.      
		width = width/(height / max_height);
		height = max_height;
	}
	img.width = width;
	img.height = height;
}

function f_ClipCopy(v) {
	window.clipboardData.setData('Text',v);
	alert('ÁÖ¼Ò°¡ º¹»çµÇ¾ú½À´Ï´Ù. Ctrl+V ÇÏ½Ã¸é ÁÖ¼Ò°¡ ºÙ¿©Áý´Ï´Ù ');
}
function f_bookmark(url,title) {
	var favoriteurl			= url;
	var favoritetitle		= title;
	if (document.all) {
		window.external.AddFavorite(favoriteurl,favoritetitle);
	}
}

function f_winsize(kind,w,h) {
	if(kind=='1'){
		var width	= w+12;
		var height	= screen.availHeight;
	}
	window.resizeTo(width, height);
}

function f_linebg(item, over) {
	try {
		if (over == 1) {
			item.style.backgroundColor = "#f7f7f7";
		}else {
			item.style.backgroundColor = "";
		}
	}
	catch (e) {}
}

//·Î±×¸Ê ÀÌº¥Æ®
function _lm_event(code){
	var _lm_eURL="http://121.126.220.253:8686";
	var _lm_eap=window.navigator.appName;
	var _lm_ei=new Image();

	if(_lm_eap.indexOf("Netscape")>-1 || _lm_eap=="Mozilla"){
		setTimeout("_lm_ei.src=_lm_eURL+'/event?code='+code;",1);
	}else{
		_lm_ei.src=_lm_eURL+"/event?code="+code;
	}
}

// ¿¡ÀÌÀüÆ® °³ÀÎÆäÀÌÁö
function f_agent(cstid,menu){
	//window.open('/_support/agent.asp?cstid='+cstid+'&menu='+menu+'&pop=1','','top=0,scrollbars=yes,toolbar=no,width=830,height=700,resizable=yes');
	//window.open('http://www.jumpoline.com/_support/agent.asp?cstid='+cstid+'&menu='+menu+'&pop=1','','');
	if (menu!=''){
		window.open('http://www.jumpoline.com/_support/agent.asp?cstid='+cstid+'&menu='+menu+'&pop=1','','');
	}else{
		window.open('http://www.jumpoline.com/'+cstid,'','');
	}	
}

//¹è³Ê Å¬¸¯·ü
function f_clickpersent(kind,linkurl){
	window.open('/_home/link.asp?kind='+ kind +'&link_URL='+linkurl,'','location=yes,directories=yes,status=yes,resizable=yes,fullscreen=yes,channelmode=yes,tollbar=yes,menubar=yes,width=1000,height=700,scollbars=yes');
}
// ÅÇº¯°æ (ÀÌÀü, ´ÙÀ½ÅÇ)
function f_tab (kind,obj,how) {
	i = 0;
	obj = eval(obj);
	for (i=0;i<obj.length ;i++ ) {
		if (obj[i].style.display == "block") {
			if (how == "+") {
				num = i + 1;
				if (num > obj.length - 1) {	num = 1;}
			} else {
				num = i - 1;
				if (num < 1) {num = obj.length - 1;}
			}
			obj[i].style.display = "none";
		}
	}
	obj[num].style.display = "block";
}

// µµ¿ò¸» ¹Ú½º	
function f_helpbox(str){
	var tmp;
	tmp ='<table width=310 bgcolor=ffffff style=\'background-color:ffffff;padding:15 15 15 15;border:2px solid #106FD6;font-size:9pt;line-height:200%;text-align:left\'><tr><td style=\'padding:10 10 10 10\'>'+str+'</table>';		
	div_helpbox.innerHTML = tmp;		
}
function f_helpbox2(str,width,opt){
	if(width==''){width=150;}
	var tmp;
	tmp ='<table width=' + width +' bgcolor=ffffff style=\'background-color:ffffff;padding:15 15 15 15;border:2px solid #106FD6;font-size:9pt;line-height:200%;text-align:left\'><tr><td style=\'padding:10 10 10 10\'>'+str+'</table>';		
	div_helpbox.innerHTML = tmp;		
}
function f_helpbox3(str,width,bd,bdc,pd){
	if(width==''){width=150;}
	var tmp;
	tmp ='<table width=' + width +' bgcolor=ffffff style=\'background-color:ffffff;padding:15 15 15 15;border:'+bd+'px solid '+bdc+';font-size:9pt;line-height:200%;text-align:left\'><tr><td style=\'padding:'+pd+' '+pd+' '+pd+' '+pd+'\'>'+str+'</table>';		
	div_helpbox.innerHTML = tmp;		
}

function f_helpbox_show(evt){
	if(navigator.appName == "Netscape"){
		div_helpbox.style.left = evt.pageX + 10;
		div_helpbox.style.top = evt.pageY + 20;		
	}else{			
		div_helpbox.style.posLeft	= event.x -250 + document.body.scrollLeft;
		div_helpbox.style.posTop	= event.y +10 + document.body.scrollTop;

		//div_helpbox.style.posTop = 100;

		//alert(div_helpbox.style.pasTop);
	}
}
function f_helpbox_show2(evt,x,y,opt){
	if(x==''){x=10;}
	if(y==''){y=10;}
	if(navigator.appName == "Netscape"){
		div_helpbox.style.left = evt.pageX + 10;
		div_helpbox.style.top = evt.pageY + 20;		
	}else{			
		div_helpbox.style.posLeft	= event.x -x + document.body.scrollLeft;
		div_helpbox.style.posTop	= event.y +y + document.body.scrollTop;

		//div_helpbox.style.posTop = 100;

		//alert(div_helpbox.style.pasTop);
	}
}



function f_helpbox_hide(evt){
	div_helpbox.innerHTML='';
}


function f_itemwin(item,seq,opt){
	switch (item){
		case 'jumpo' :
			window.open('/_jumpo/jumpo_view.asp?webjofrsid='+seq,'itemwin_jumpo_'+seq,'width=890,height=700,top=0,scrollbars=yes,toolbar=no,resizable=yes');
			break;
		case 'jumpo_agentteam' :
			window.open('/_jumpo/jumpo_view_agentteam.asp?webjofrsid='+seq+'&siteid='+opt,'itemwin_jumpo_'+seq,'width=890,height=700,top=0,scrollbars=yes,toolbar=no,resizable=yes');
			break;
		case 'chain' :
			window.open('/_item/chain_view.asp?chainId='+seq,'itemwin_chain_'+seq,'width=890,height=700,top=0,scrollbars=yes,toolbar=no,resizable=yes');
			break;
	}
}
function f_search(kind){
	var f = document.frm_search;		
	f.submit();
}

function f_singo(part,bbsname,seq, kind){		
		var u = "/_help/help_jumpoline.asp?pn=½Å°íÇÏ±â&bbsname="+ bbsname +"&part="+part+"&seq="+ seq+"&kind="+kind;		
		window.open(u,"","scrollbars=no,width=400,height=360");	
	}

function CateChgSelect(value, sub_value, trans){
	var CateZone = eval("document.all.CateSZone_01");
	
	if (value == "" || value == " " || value == "  " || value == "   "){
		CateZone.innerHTML = "<select name='SCode' size=1 tabindex='13' style='width:90px'><option value=\"\">ÀüÃ¼</option></select>";
		return;
	}
	//alert(value);alert(sub_value);alert(trans);
	var XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XMLHTTP.open("get","/_include/pg_exe.asp?mode=¾÷Á¾´ëºÐ·ù¼±ÅÃ&value="+value+"&sub_value="+sub_value, false);
	XMLHTTP.send();
	var RecvData = XMLHTTP.responseBody;	
	var RecvStr = BinDecode(RecvData);	
	if (RecvStr != ""){
		CateZone.innerHTML = RecvStr;
	}
}		
function AreaChgSelect(value, sub_value, trans){		
	var AreaZone = eval("document.all.AreaSZone_01");
	if (value == "" || value == " " || value == "  " || value == "   "){
		AreaZone.innerHTML = "<select name='local_code' size=1 tabindex='13' style='width:90px'><option value=\"\">ÀüÃ¼</option></select>";
		return;
	}
	var XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XMLHTTP.open("get","/_include/pg_exe.asp?mode=Áö¿ª´ëºÐ·ù¼±ÅÃ&value="+value+"&sub_value="+sub_value, false);
	XMLHTTP.send();
	var RecvData = XMLHTTP.responseBody;
	var RecvStr = BinDecode(RecvData);
	if (RecvStr != ""){
		AreaZone.innerHTML = RecvStr;
	}

}	

function f_area_select(value, sub_value, trans){

	var AreaZone = document.getElementById("AreaSZone_01");
	if (value == ""){
		AreaZone.innerHTML = "<select name='local_code' size=1 tabindex='13' style='width:90px'><option value=\"\">ÀüÃ¼</option></select>";
		return;
	}	
	var XMLHTTP =	getXMLHttpRequest();
	XMLHTTP.open("get","/_include/pg_exe.asp?mode=Áö¿ª´ëºÐ·ù¼±ÅÃ&value="+value+"&sub_value="+sub_value, false);
	XMLHTTP.send();
	var RecvData = XMLHTTP.responseBody;
	var RecvStr = BinDecode(RecvData);
	if (RecvStr != ""){
		AreaZone.innerHTML = RecvStr;
	}

}	

function nom4flash(file,width,height,bgcolor,quality,name){
		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+'" id="'+name+'">');  //ÇÃ·¡½¬ÇÃ·¹ÀÌ¾î ¹öÀüÀÌ ÀÌÀü¹öÀüÀÏ°æ¿ì ¹öÀü 8À» º¯°æ
		document.write('<param name="movie" value="'+file+'" />');
		document.write('<param name="quality" value="'+quality+'" />');
		document.write('<param name="wmode" value="transparent" />');  //Åõ¸íÇÃ·¡½¬°¡ ¾Æ´Ò°æ¿ì ÀÌ ¶óÀÎÀ» »èÁ¦
		document.write('<param name="bgcolor" value="'+bgcolor+'" />');
		document.write('<embed src="'+file+'" quality="'+quality+'" wmode="transparent" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+name+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
}
function imgcheck(imgObj, bool){
	var imgWidth = 700; //** ¼³Á¤ ÀÌ¹ÌÁö Æø°ª
	var imgHeight = 1000; //** ¼³Á¤ ÀÌ¹ÌÁö ³ôÀÌ°ª

	if(bool) //** ÀÌ¹ÌÁö°¡ ·ÎµùÀÌ ´Ù µÇ¾úÀ»°æ¿ì
	{
		var O_Width = imgObj.width; //** ÀÌ¹ÌÁöÀÇ ½ÇÁ¦ Æø
		var O_Height = imgObj.height; //** ÀÌ¹ÌÁöÀÇ ½ÇÁ¦ ³ôÀÌ
		var ReWidth = O_Width; //** º¯È­µÈ Æø ÀúÀå º¯¼ö
		var ReHeight = O_Height; //** º¯È­µÈ ³ôÀÌ ÀúÀå º¯¼ö

		if(ReWidth > imgWidth){
			ReWidth = imgWidth;
			ReHeight = (O_Height * ReWidth) / O_Width;
		}

		if(ReHeight > imgHeight){
			ReWidth = (ReWidth * imgHeight) / ReHeight;
			ReHeight = imgHeight;
		}

		//** Ã³¸®
		imgObj.width = ReWidth;
		imgObj.height = ReHeight;
		imgObj.alt = ReWidth +','+ ReHeight;
	}
	else //** ÀÌ¹ÌÁö°¡ ÇØ´ç °æ·Î¿¡ ¾ø¾î ·Îµù ¿¡·¯°¡ »ý°åÀ»°æ¿ì
	{
		//** ¾Èº¸ÀÌ°Ô ½ºÅ¸ÀÏ ½ÃÆ®·Î Ã³¸®
		imgObj.style.display = 'none';
	}
}
function joyimgcheck2(obj, imgObj, bool){
	var img2 = new Image();
	var imgWidth = 800; 

	img2.src = imgObj
	O_Width = img2.width
	O_Height = img2.height
	//alert(O_Width+"/"+O_Height);

	if(O_Width > imgWidth){
		img2.width = imgWidth;
		img2.height = (O_Height * imgWidth) / O_Width;
	}

	obj.width = img2.width;
	obj.height = img2.height

}
function joyimgcheck(imgObj, bool){
	var imgWidth = 800; //** ¼³Á¤ ÀÌ¹ÌÁö Æø°ª
	//var imgHeight = 1200; //** ¼³Á¤ ÀÌ¹ÌÁö ³ôÀÌ°ª


	if(bool) //** ÀÌ¹ÌÁö°¡ ·ÎµùÀÌ ´Ù µÇ¾úÀ»°æ¿ì
	{
		var O_Width = imgObj.width; //** ÀÌ¹ÌÁöÀÇ ½ÇÁ¦ Æø
		var O_Height = imgObj.height; //** ÀÌ¹ÌÁöÀÇ ½ÇÁ¦ ³ôÀÌ
		var ReWidth = O_Width; //** º¯È­µÈ Æø ÀúÀå º¯¼ö
		var ReHeight = O_Height; //** º¯È­µÈ ³ôÀÌ ÀúÀå º¯¼ö
		
		

		if(ReWidth > imgWidth){
			ReWidth = imgWidth;
			ReHeight = (O_Height * ReWidth) / O_Width;
		}
		//
/*
		if(ReHeight > imgHeight){
			ReWidth = (ReWidth * imgHeight) / ReHeight;
			ReHeight = imgHeight;
		}
*/
		//** Ã³¸®
		imgObj.width = ReWidth;
		imgObj.height = ReHeight;
//		imgObj.alt = ReWidth;

	}
	
}
function openWin(ttm,pop_name,pop_width,pop_height,pop_scroll){
		
	var myWin = window.open(ttm,pop_name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+pop_scroll+',resizable=no,width='+pop_width+',height='+pop_height);
	myWin.focus();
}



function reg_comment(frm_name){
	var f = eval("document.form_"+frm_name);

	if(f.Content.value == ""){
		alert("µ«±ÛÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.Content.focus();
		return;
	}
	else if(f.IsLogin.value != "Y"){
		if(f.UserName.value == ""){
			alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			f.UserName.focus();
			return;
		}
		else if(f.UserPwd.value == ""){
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			f.UserPwd.focus();
			return;
		}
	}

	f.target= "ifrm_"+ frm_name +"_process"
	f.action="/_include/pg_exe.asp";
	f.submit();
}
function mod_comment(frm_name, index){
	style_hidden = eval("document.all."+frm_name+"_hidden_"+index+"")
	style_view = eval("document.all."+frm_name+"_view_"+index+"")
	
	style_view.style.display = "none";
	style_hidden.style.display = "";
}
function mod_comment11(frm_name, index){
	style_hidden = eval("document.all."+frm_name+"_hidden_"+index+"")
	style_view = eval("document.all."+frm_name+"_view_"+index+"")
	
	style_view.style.display = "none";
	style_hidden.style.display = "";
}
function mod_comment_ok(frm_name, index){
	var f = eval("document.form_"+frm_name+"_"+index);

	f.mode.value = "MOD";

	f.target= "ifrm_"+ frm_name +"_process"
	f.action="/_include/pg_exe.asp";
	f.submit();
}
function mod_comment11_ok(frm_name, index){
	var f = eval("document.form_"+frm_name+"_"+index);

	f.mode.value = "EDIT";

	f.target= "ifrm_"+ frm_name +"_process"
	f.action="/_include/pg_exe.asp";
	f.submit();
}
function mod_comment_cancel(frm_name,index){
	var f = eval("document.form_"+frm_name+"_"+index);

	style_hidden = eval("document.all."+frm_name+"_hidden_"+index+"")
	style_view = eval("document.all."+frm_name+"_view_"+index+"")
	
	style_view.style.display = "";
	style_hidden.style.display = "none";
}
function del_comment(frm_name, index){
	var f = eval("document.form_"+frm_name+"_"+index);


		if (chkModes == "R"){
			f.mode.value = "reDEL";
		}
		else{
		f.mode.value = "DEL";
		}

		f.target= "ifrm_"+ frm_name +"_process"
		f.action="/_include/pg_exe.asp";
		f.submit();
	
}
function del_sub_comment(frm_name, index){
	var f = eval("document.form_"+frm_name+"_"+index);

	if (confirm("Á¤¸»·Î »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")){
		f.mode.value = "reDEL";

		f.target= "ifrm_"+ frm_name +"_process"
		f.action="/_include/pg_exe.asp";
		f.submit();
	}
}
function write_on_comment(frm_name){
	write_form = eval("document.all."+ frm_name +"_write");

	if( write_form.style.display == "none" )
		write_form.style.display='';
	else
		write_form.style.display='none';
}

var chkCommentIndex		= "";
var chkCommentMode		= "";
var chkCommentFrmName	= "";
var chkModes			= "";

function chk_comment_pwd_view(mode, frm_name, index){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("document.all.div_"+ frm_name +"_Pwd");
	divf.style.left = x
	divf.style.top = y + document.body.scrollTop

	chkCommentIndex		= index
	chkCommentMode		= mode
	chkCommentFrmName	= frm_name

	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_"+ frm_name +"_pwd");
	pwdf.focus();
}
function chk_sub_comment_pwd_view(mode, frm_name, index, modes){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	chkModes = modes;

	var divf = eval("document.all.div_"+ frm_name +"_Pwd");
	divf.style.left = x
	divf.style.top = y + document.body.scrollTop

	chkCommentIndex		= index
	chkCommentMode		= mode
	chkCommentFrmName	= frm_name

	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_"+ frm_name +"_pwd");
	pwdf.focus();
}


function chk_comment_pwd_view(mode, frm_name, index, modes){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;
	chkModes = modes
	var divf = eval("document.all.div_"+ frm_name +"_Pwd");
	divf.style.left = x
	divf.style.top = y + document.body.scrollTop

	chkCommentIndex		= index
	chkCommentMode		= mode
	chkCommentFrmName	= frm_name

	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_"+ frm_name +"_pwd");
	pwdf.focus();
}



function chk_comment_pwd(){
	var f = eval("document.form_"+chkCommentFrmName+"_"+chkCommentIndex);

	idx = f.Idx.value;

	var pwdf = eval("document.all.chk_"+ chkCommentFrmName +"_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_"+ chkCommentFrmName +"_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_"+ chkCommentFrmName +"_process");
	
	frmf.location.href = "/_include/pg_exe.asp?mode=CHK&Idx="+idx+"&UserPwd="+pwd
}
function chk_comment_pwd_ok(){
	var f = eval("document.form_"+chkCommentFrmName+"_"+chkCommentIndex);
	idx = f.Idx.value;
	if (chkCommentMode == "del")
		del_comment(chkCommentFrmName, chkCommentIndex);
	else
		mod_comment(chkCommentFrmName, chkCommentIndex);
}
//resizeing of iframe function
function iframe_resize( iframename ){
   var lo_iframe   = parent.eval(iframename).document.body;
   var lo_iframe2  = parent.document.all[iframename];
   lo_iframe2.style.height = lo_iframe.scrollHeight + (lo_iframe.offsetHeight - lo_iframe.clientHeight);
   //lo_iframe2.style.width  = lo_iframe.scrollWidth  + (lo_iframe.offsetWidth - lo_iframe.clientWidth);

	
}
function resize(){ 
	//
	var g_fIsSP2 = false;
	g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
	
	//
	var oBody = document.body;
	var p_height, p_width;   
	
	p_width  = oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth)+8;
	p_height =  oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight)+8;
	
	if(g_fIsSP2){     
	// XP SP2 ºê¶ó¿ìÀúÀÓ..
		self.resizeTo(p_width - 2, p_height + 38); 
	}else{
	//XP SP2 ºê¶ó¿ìÀú°¡ ¾Æ´Ô.
		self.resizeTo(p_width - 2, p_height + 13); 
	}
} 
// ¶óµð¿À ¹Ú½º ¼±ÅÃ
function setRadio(obj, val){
	if( val != "" ){
		for( var i = 0 ; i < obj.length ; i++ ){
			if( obj[i].value == val )
			{
				obj[i].checked = true;
				break;
			}
		}
	}
}

// ¶óµð¿À ¹Ú½º ¼±ÅÃ
function setRadio_Sell(obj, val){
	if( val != "" ){
		for( var i = 0 ; i < obj.length ; i++ ){
			if( obj[i].value == val )
			{
				obj[i].checked = true;
				//alert(val);
				TransFormChange(val);
				break;
			}
		}
	}
		

}

// ÄÞº¸¹Ú½º¸¦ ¼±ÅÃÇÑ´Ù.
function setSelect(obj, val){
	if( val != "" ){
		for( var i = 0 ; i < obj.length ; i++ ){
			if( obj.options[i].value == val )
			{
				obj.options[i].selected = true;				
				//obj.options[i].style.backgroundColor = '#ECFEB4';
				obj.options[i].style.color = '000000';
				//obj.options[i].class = "selectbox_sel";
				break;
			}
		}
	}
}
//style='background-color:235599;color:ffffff;'

function setCheckBox(obj, val){
	if( val != "" ){
			if( val == "True" )
			{
				obj.checked = true;

			}

	}
}


function setCheckBoxY(obj, val){
	if( val != "" ){
			if( val == "Y" )
			{
				obj.checked = true;

			}

	}
}




function getSelectValue(obj){
	for( var i = 0 ; i < obj.length ; i++ ){
		if( obj.options[i].selected == true ){
			returnValue = obj.options[i].value;
			break;
		}
	}
	return returnValue
}
// ¶óÀÌ¿À¹öÆ° ¼±ÅÃ°ª
function getRadioValue(obj){
	var returnValue="";
	for( var i = 0 ; i < obj.length ; i++ ){
		if( obj[i].checked == true ){
			returnValue = obj[i].value;
			break;
		}
	}

   
	return returnValue
}
function getRadioValue2(obj){
	for( var i = 0 ; i < obj.length ; i++ ){
		if( obj[i].checked == true ){
			returnValue = obj[i].value;
			break;
		}
		else 
		{
			returnValue = 0;
		}
	}


   
	return returnValue
}
function showHideLayers(){ //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null){ v=args[i+2];
	if (obj.style){ obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}

//ÄíÅ°°ª ¾ò±â
function getCookie(name){
	var nameStr = name + "=" ;
	var nameLen = nameStr.length;		
	var cookieLen = document.cookie.length;		//Äí±â°ªÀÌ ¾øÀ»½Ã ±âº»ÀûÀ¸·Î 45ÀÌ´Ù.  document.cookie.length >= 45
	
	//	a·Î ÁöÁ¤½Ã : document.cookie ==> lucya=a; ASPSESSIONIDQGQQGLDC=GKDDHCPDJBOBAONCMJLHBCCN
	var i = 0;
	while( i < cookieLen ){
		var j = i + nameLen;
		if ( document.cookie.substring(i, j) == nameStr ){
			var end = document.cookie.indexOf(";", j); // ;ÀÇ À§Ä¡ 	
			if( end == -1) end = document.cookie.length;	
			return unescape( document.cookie.substring(j, end) ); //ÄíÅ°°ª ¹ÝÈ¯
		}
		i = document.cookie.indexOf(" ", i) + 1;	
		if ( i == 0){			
			break;
		}
	}
}

//ÄíÅ°°ª ÀúÀå
function setCookie(name, value){
	var expires = new Date();
	var path, domain, secure;

	//È£ÃâÇÏ´Â ÀÎ¼öÀÇ ¹è¿­ setCookie.arguments[0] ~ [setCookie.arguments.length-1]
	var argv = setCookie.arguments;	
		
	//È£ÃâÇÑÇÔ¼öÀÇ ÀÎ¼ö -  setCookie.arguments.length = arguments.length¿Í °ªÀÌ °°À½!!, 
	//´ëÁ¶ : setCookie.length È£Ãâ´çÇÏ´Â ÀÎ¼ö °¹¼ö 
	var argc = setCookie.arguments.length;	

	if( argc > 2){
		expires.setTime( expires.getTime() + (1000*60*argv[2]));	// argv[2]ºÐµ¿¾È ÄíÅ° À¯È¿
	}else {
		expires = null;
	}

	path = (argc > 3) ? argv[3] : null;
	domain = (argc > 4) ? argv[4] : null;
	secure = (argc > 5) ? argv[5] : false;

	document.cookie = name + "=" + escape(value) + 
			((expires == null) ? "" : (";expires=" + expires.toGMTString())) + 
			((path == null) ? "" : (";path=" + path)) + 
			((domain == null) ? "" : (";domain=" + domain)) + 
			((secure == true) ? " ;secure" : "" );
}

//ÄíÅ°»èÁ¦
function delCookie(name){
	var today = new Date();

	today.setTime(today.getTime() - 1);
	var value = getCookie(name);	
	if( value != null){
		document.cookie = name + "=" + escape(value) + ("; expires=" + today.toGMTString());	//ÄíÅ°»èÁ¦	
		return (value + " »èÁ¦¿Ï·á");
	}else {	
		return ("Á¸ÀçÇÏÁö ¾ÊÀ½");
	}
}

//Á¡Æ÷ ±¸ÇÕ´Ï´Ù.
function chk_buy_pwd_view(IsWebseq, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_buy_Pwd");
	divf.style.left = x - 150
	divf.style.top = y + document.body.scrollTop - 200
	
	webseq		= IsWebseq
	mode			= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_buy_pwd");
	pwdf.focus();
}
function chk_buy_pwd_input(){
	var pwdf = eval("document.all.chk_buy_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_buy_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_hidden");
	frmf.location.href = "/_jik/buy_exe.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
}

//Á¡Æ÷ ÆË´Ï´Ù.
function chk_sell_pwd_view(IsWebseq, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_sell_Pwd");
	divf.style.left = x - 150
	divf.style.top = y + document.body.scrollTop - 200

	webseq		= IsWebseq
	mode		= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_sell_pwd");
	pwdf.focus();
}
function chk_sell_pwd_input(){
	var pwdf = eval("document.all.chk_sell_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_sell_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_hidden");

	frmf.location.href = "/_jik/sell_exe.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
}

// ¸ÞÀÏ À¯È¿¼º Ã¼Å©
function email_chk(email){
    var t = email
	var ValidFlag = false
	var atCount = 0
	var SpecialFlag
	var atLoop
	var atChr
	var BadFlag
	var tAry1
	var UserName
	var DomainName

	if ( t.length > 0 && t.indexOf("@") > 0 && t.indexOf(".") > 0 ) {
		atCount = 0
		SpecialFlag = false

		for( atLoop=1; atLoop<=t.length; atLoop++ ) {
			atChr = t.substring( atLoop, atLoop+1 )
			if ( atChr == "@" ) atCount = atCount + 1

			if ( (atChr >= 32) && (atChr <= 44) ) SpecialFlag = true 
			if ( (atChr == 47) || (atChr == 96) || (atChr >= 123) ) SpecialFlag = true 
			if ( (atChr >= 58) && (atChr <= 63) ) SpecialFlag = true 
			if ( (atChr >= 91) && (atChr <= 94) ) SpecialFlag = true 
		}

		if ( ( atCount == 1 ) && (SpecialFlag == false ) ) {
			BadFlag = false
			tAry1 = t.split("@")
			UserName = tAry1[0]
			DomainName = tAry1[1]
			if ( (UserName.length <= 0 ) || (DomainName.length <= 0 ) ) BadFlag = true
			if ( DomainName.substring( 1, 2 ) == "." ) BadFlag = true
			if ( DomainName.substring( DomainName.length-1, DomainName.length) == "." ) BadFlag = true
			ValidFlag = true
		}
	}
	if ( BadFlag == true ) ValidFlag = false
	return ValidFlag
} 

function input_statement(){
	var f = document.statement;

	if (f.username.value == ""){
		alert("[½Å°íÀÎ]À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		f.username.focus();
	}else if(f.UserEmail.value == ""){	
		alert("[ÀÌ¸ÞÀÏ]À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		f.UserEmail.focus();
	}else if(f.content.value == ""){	
		alert("[³»¿ë]À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		f.content.focus();
	}else{
		var content = f.content.value;
		var username = f.username.value;
		var radioObj = eval(document.statement.parts);
		var radioLength = radioObj.length;
		for(var i = 0; i < radioLength; i++){
		  if(radioObj[i].checked){
			part = radioObj[i].value;
		  }
		}
		var UserEmail = f.UserEmail.value;
		var UserID = f.UserID.value;
		var FullUrl = f.FullUrl.value;
		var webjofrsid = f.qw_webjofrsid.value;
		
		var url = "/help/help_exe.asp?mode=½Å°íÇÏ±â&FullUrl="+ FullUrl +"&Content="+content+"&username="+username+"&UserEmail="
			url	= url + UserEmail +"&UserID="+ UserID +"&part="+ part +"&webjofrsid="+ webjofrsid;
		//alert(url);
		location.href = url
	}	
}	
//ÇÁ·£Â÷ÀÌÁî
	function chk_chain_pwd_view(IsWebseq, IsMode){
		x = (screen.availWidth) / 2;
		y = (screen.availHeight) / 2;

		var divf = eval("div_chain_Pwd");
		divf.style.left = x - 150
		divf.style.top = y + document.body.scrollTop - 200

		chainid		= IsWebseq
		mode		= IsMode
		
		divf.style.display="";	
		
		var pwdf = eval("document.all.chk_chain_pwd");
		pwdf.focus();
	}
	function chk_chain_pwd_input(){
		var pwdf = eval("document.all.chk_chain_pwd");
		pwd = pwdf.value;
		pwdf.value = "";

		var divf = eval("document.all.div_chain_Pwd");
		divf.style.display="none";
		
		/*alert(chainid)
		alert(mode)
		alert(pwd)*/
		location.href = "/_item/chain_exe.asp?mode="+mode+"&chainid="+chainid+"&UserPwd="+pwd
		//alert("/_item/_chain_exe.asp?mode="+mode+"&chainid="+chainid+"&UserPwd="+pwd)
		
	}

//»ó°¡.
function chk_sangga_pwd_view(Isidx, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_sangga_Pwd");
	divf.style.left = x - 150
	divf.style.top = y + document.body.scrollTop - 200

	Idx		= Isidx
	mode	= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_sangga_pwd");
	pwdf.focus();
}
function chk_sangga_pwd_input(){
	var pwdf = eval("document.all.chk_sangga_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_sangga_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_sangga");

	frmf.location.href = "/_jumpo/sang_exe.asp?mode="+mode+"&idx="+Idx+"&UserPwd="+pwd
}
//Ã¢¾÷Çà»ç
function chk_event_pwd_view(IsWebseq, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_event_Pwd");
	divf.style.left = x - 150
	divf.style.top = y + document.body.scrollTop - 200
	
	webseq		= IsWebseq
	mode		= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_event_pwd");
	pwdf.focus();
}
function chk_event_pwd_input(){
	var pwdf = eval("document.all.chk_event_pwd");
	pwd = pwdf.value;
	pwdf.value = "";
	
	var divf = eval("document.all.div_event_Pwd");
	divf.style.display="none";
	
	//var frmf = eval("document.ifrm_event");
	
	location.href = "/_info/haeng_exe.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
}


//ºñ¹Ð¹øÈ£Ã¼Å©°øÅë
function chk_pwd_view(IsWebseq, IsMode,chkurl){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_Pwd");
	divf.style.left = x - 250
	divf.style.top = y + document.body.scrollTop - 200
	webseq		= IsWebseq
	mode		= IsMode
	url			= chkurl
	divf.style.display="";	
	var pwdf = eval("document.all.chk_pwd");
	pwdf.focus();
}
function chk_pwd_input(){
	
	var pwdf = eval("document.all.chk_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_gloval");	

	frmf.location.href = url+"mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
//Information/event_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
}

//µ·¹ý½Ã´Ù
function chk_money_pwd_view(IsWebseq, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_money_Pwd");
	divf.style.left = x
	divf.style.top = y + document.body.scrollTop
	
	webseq		= IsWebseq
	mode		= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_buy_pwd");
	pwdf.focus();
}
function chk_money_pwd_input(){
	var pwdf = eval("document.all.chk_money_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_money_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_money");

	frmf.location.href = "/money/money_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
}	

//ÇÁ·£Â÷ÀÌÁî.
function chk_fran_pwd_view(IsWebseq, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;


	var divf = eval("document.all.div_fran_Pwd");

	divf.style.left = x
	divf.style.top = y + document.body.scrollTop

	webseq		= IsWebseq
	mode		= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_fran_pwd");
	pwdf.focus();
}
function chk_fran_pwd_input(){

	var pwdf = eval("document.all.chk_fran_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_fran_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_fran");

	frmf.location.href = "/franchize/fran_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd
}


function chk_mall_pwd_input(){

	var pwdf = eval("document.all.chk_fran_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_fran_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.imall_fran");

	frmf.location.href = "/mall/sell_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd;
	//window.location.href = "/mall/sell_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd;
}
// ¿ÀÇÂÃ¢¾÷ ÆÐ½º¿öµå È®ÀÎ
function chk_Open_pwd_input(){

	var pwdf = eval("document.all.chk_fran_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_fran_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.imall_fran");

	frmf.location.href = "/DB/sell_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd;
	//window.location.href = "/DB/sell_pwd_check.asp?mode="+mode+"&webseq="+webseq+"&UserPwd="+pwd;
}


//Ä¿¹Â´ÏÆ¼ ºñ·Î±×ÀÎ.
function chk_cafe_pwd_view(cafecode, cafeid, IsMode){
	x = (screen.availWidth) / 2;
	y = (screen.availHeight) / 2;

	var divf = eval("div_cafe_Pwd");
	divf.style.left = x;
	divf.style.top = y + document.body.scrollTop;

	cafecodes	= cafecode;
	cafeids		= cafeid;
	mode		= IsMode
	
	divf.style.display="";	
	
	var pwdf = eval("document.all.chk_cafe_pwd");
	pwdf.focus();
}
function chk_cafe_pwd_input(){
	var pwdf = eval("document.all.chk_cafe_pwd");
	pwd = pwdf.value;
	pwdf.value = "";

	var divf = eval("document.all.div_cafe_Pwd");
	divf.style.display="none";
	
	var frmf = eval("document.ifrm_cafe");
	
	//url = "/community/wbz_sub_reader_pwd.asp?mode="+mode+"&cafecode="+cafecode+"&UserPwd="+pwd+"&cafeid=" + cafeids
	//alert(url);
	frmf.location.href = "wbz_sub_reader_pwd.asp?mode="+mode+"&cafecode="+cafecodes+"&UserPwd="+pwd+"&cafeid="+cafeids
}	

function reg_comment(frm_name){
	var f = eval("document.form_"+frm_name);

	if(f.Content.value == ""){
		alert("µ¡±ÛÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.Content.focus();
		return;
	}
	else if(f.IsLogin.value != "Y"){
		if(f.UserName.value == ""){
			alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			f.UserName.focus();
			return;
		}
		else if(f.UserPwd.value == ""){
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			f.UserPwd.focus();
			return;
		}
	}

	f.target= "ifrm_"+ frm_name +"_process"
	f.action="/_include/pg_exe.asp";
	f.submit();
}
function re_jumpo(){
	if (document.all.re_jumpo.style.display == ''){
		document.all.re_jumpo.style.display = 'none';
	}
	else
	{
		document.all.re_jumpo.style.display = '';
		AdCardView('buy_cstlist.asp', '±¤°íÁ¦¾ÈÇÏ±â','width=410, height=600, scrollbars=auto')
	}

	
	
}


function MCodeChk(v){
		if (v){
			ListFrm.MCode.value = v;
			ListFrm.SCode.value = '';
			ListFrm.action = 'jm_main.asp';
			ListFrm.submit();
		} else {
			ListFrm.MCode.value = v;
			ListFrm.TMoney.value = '';
			ListFrm.SCode.value = '';
			ListFrm.loc.value = '';
			ListFrm.Region.value = '';                
			ListFrm.action = 'jm_main.asp';
			ListFrm.submit();      
		}
}
function SCodeChk(v){
		ListFrm.SCode.value = v;
		ListFrm.submit();
	}


function RegionSearch(v){
		//ListFrm.Region.value = v;
		//ListFrm.loc.value = "";
		//ListFrm.submit();
		ListFrm.Region.value = v;
		if (v == "1"){
			AR_1.style.display = "block";
			AR_2.style.display = "none";
			AR_3.style.display = "none";
		} else if (v == "2"){
			AR_1.style.display = "none";
			AR_2.style.display = "block";
			AR_3.style.display = "none";
		} else if (v == "3"){
			AR_1.style.display = "none";
			AR_2.style.display = "none";
			AR_3.style.display = "block";
		}
}
function RegionChk(v1,v2){
		ListFrm.Region.value = v1;
		ListFrm.loc.value = v2;
		ListFrm.submit();
	}


function MovePage(v1,v2){
		if(v1){ListFrm.action = v1;}
		if(v2){ListFrm.Page.value = v2;}
		ListFrm.submit();
}
function Sort_Chk(v){
		ListFrm.Sort.value = v;
		ListFrm.SortX.value = v;
		ListFrm.submit();
}
function SortX_Chk(v){
		ListFrm.SortX.value = v;
		
		ListFrm.submit();
}
function MyFrmChk(v){
		ProFrm.chk.value = v;
}
function MySend(){
		if( ProFrm.chk.value == "0" ){
	//        IdxPro('TFrm');
			IdxPro('PFrm');
		}else {
			IdxPro('PFrm');
		}
}
function IdxPro(v){

		var count = 0;
		var chk = 0;

		if (eval(v).IdxArr != null ){
			if (eval(v).IdxArr.length != null ){
				for (i = 0; i < eval(v).IdxArr.length; i++ )
				{
					if (eval(v).IdxArr[i].checked == true){
						count += 1;
						chk = i;
					}
				}
			}else {
				if (eval(v).IdxArr.checked == true){count = 1; }
			}
		}

		if (count < 1){
			alert('1°Ç ÀÌ»óÀÇ Á¡Æ÷À» Ã¼Å©ÇÏ¼¼¿ä.');
			return;
		}else {
			if (confirm("ÃÑ " + count + "°ÇÀÇ Á¡Æ÷À» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù. \n°ü½Éµî·ÏÇÏ½Ã°Ú½À´Ï±î?")){
				eval(v).submit();
			}
		}

}
function MoneySearch(){
		var len=0;
		var k=0;
		len=tsFrm.TotalMoneySearch.length;
		for (i=0;i<len;i++){
			if (tsFrm.TotalMoneySearch[i].checked==true){
				k = k+1;
				v = i;
			}
		}
		if (k<=0){
			alert("°Ë»öÇÒ Á¶°ÇÀ» ¼±ÅÃÇØÁÖ¼¼¿ä");
			return;
		}

		ListFrm.TMoney.value = v;
		ListFrm.submit();
}
function ContentView(v1,v2){
		var x = screen.availWidth;
		switch ( x ){
			case 1280 :
				eval("document.all." + v2 + ".style").left = "345";
				break;
			case 1152 :
				eval("document.all." + v2 + ".style").left = "281";
				break;
			case 1024 :
				eval("document.all." + v2 + ".style").left = "217";
				break;
			case 800 :
				eval("document.all." + v2 + ".style").left = "161";
				break;
			case 1600 :
				eval("document.all." + v2 + ".style").left = "504";
				break;
		}

		if(v1 == "Y"){
			eval("document.all." + v2 + ".style").display = "block";
		}else {
			eval("document.all." + v2 + ".style").display = "none";
		}
}
function ContentView02(v1,v2){
		var x = screen.availWidth;
		switch ( x ){
			case 1280 :
				eval("document.all." + v2 + ".style").left = "277";
				break;
			case 1152 :
				eval("document.all." + v2 + ".style").left = "215";
				break;
			case 1024 :
				eval("document.all." + v2 + ".style").left = "149";
				break;
			case 800 :
				eval("document.all." + v2 + ".style").left = "93";
				break;
			case 1600 :
				eval("document.all." + v2 + ".style").left = "436";
				break;
		}

		if(v1 == "Y"){
			eval("document.all." + v2 + ".style").display = "block";
		}else {
			eval("document.all." + v2 + ".style").display = "none";
		}
}
function SelectObj(id){
		this.ID = id;
}
function ShowLayer_Msg(id){
		objSelect = new SelectObj(id);

		layerMsg = document.all['LayerMsg_'+id].style;

		LayerMsgMove();
		LayerMsgShow('visible');
		bViewChk=true;
	}


function LayerMsgMove(){
		//layerMsg.pixelLeft = iCurX;
		layerMsg.pixelTop = iCurY;
}
function LayerMsgShow(sMode){
		layerMsg.visibility = sMode;
	}


/*
 * ¸¶¿ì½º¿ìÃø¹öÆ° ¸·±â¼Ò½º
 * 
function mouseClickEvent(){
		mouseMoveEvent();
		if (bViewChk){
			LayerMsgShow('hidden');
			objSelect=null;
			bViewChk=false;
		}
}
function mouseMoveEvent(){
		iCurX=event.x+document.body.scrollLeft+iPadX;
		iCurY=event.y+document.body.scrollTop+iPadY;
	}



	if (!document.onmousedown){
		document.onclick = mouseClickEvent;
	}

*/


function getRtnOfXmlHTTP(url){
	document.body.style.cursor="wait";

	var oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");

	var xurl = url;

	oXMLHTTP.open("GET",xurl,false);
	oXMLHTTP.send();

	document.body.style.cursor="auto";

	return oXMLHTTP.responseBody;
}


function setRadio(obj, val){
	if( val != "" ){
		for( var i = 0 ; i < obj.length ; i++ ){
			if( obj[i].value == val )
			{
				obj[i].checked = true;
				break;
			}
		}
	}
}

/**************************************************************************************************************************/
/****************************************** ÄÁ¼³ÅÏÆ® È¨ÇÇ °ü·Ã ½ºÅ©¸³Æ® *******************************************************/
/**************************************************************************************************************************/
function openWin(ttm,pop_name,pop_width,pop_height,pop_scroll){
	var myWin =window.open(ttm,pop_name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+pop_scroll+',resizable=yes,width='+pop_width+',height='+pop_height);
	myWin.focus();
}


//resizeing of iframe function
function iframe_resize( iframename ){
   var lo_iframe   = parent.eval(iframename).document.body;
   var lo_iframe2  = parent.document.all[iframename];
   lo_iframe2.style.height = lo_iframe.scrollHeight + (lo_iframe.offsetHeight - lo_iframe.clientHeight);
   //lo_iframe2.style.width  = lo_iframe.scrollWidth  + (lo_iframe.offsetWidth - lo_iframe.clientWidth);

	
}
function resize(){ 
	//
	var g_fIsSP2 = false;
	g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
	
	//
	var oBody = document.body;
	var p_height, p_width;   
	
	p_width  = oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth)+8;
	p_height =  oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight)+8;
	
	if(g_fIsSP2){     
	// XP SP2 ºê¶ó¿ìÀúÀÓ..
		self.resizeTo(p_width - 2, p_height + 38); 
	}else{
	//XP SP2 ºê¶ó¿ìÀú°¡ ¾Æ´Ô.
		self.resizeTo(p_width - 2, p_height + 13); 
	}
} 


function getRtnOfXmlHTTP(url){
	document.body.style.cursor="wait";

	var oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");

	var xurl = url;

	oXMLHTTP.open("GET",xurl,false);
	oXMLHTTP.send();

	document.body.style.cursor="auto";

	return oXMLHTTP.responseText;
}


function setRadio(obj, val){
	if( val != "" ){
		for( var i = 0 ; i < obj.length ; i++ ){
			if( obj[i].value == val )
			{
				obj[i].checked = true;
				break;
			}
		}
	}
}



///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////// mxTab ¼±ÅÃ °ü·Ã ½ºÅ©¸³Æ® ½ÃÀÛ ////////////////////////////////////////////////////////////////////////////////////
// Object¸¦ enableÇÏ°Å³ª disable
function cf_enableObj(ObjectItem, Status){
	switch (ObjectItem.tagName){
		case 'INPUT':
			var type = ObjectItem.type.toUpperCase();
			if(type == 'BUTTON' || type == 'CHECKBOX' || type == 'IMAGE' || type == 'RADIO' || type == 'RESET' || type == 'SUBMIT'){
			   ObjectItem.disabled = (!Status);
			   break;
			} else if (type == 'FILE' || type == 'PASSWORD' || type == 'TEXT'){
			  ObjectItem.readOnly = (!Status);
			  if(Status==false) ObjectItem.className = 'input02';
			  if(Status==true) ObjectItem.className = 'input01';
			  break;
			}
		case 'SELECT':
			ObjectItem.disabled = (!Status);
			break;
		case 'OBJECT':
			switch (ObjectItem.attributes.classid.nodeValue.toUpperCase()){
				case 'CLSIE:EA8B6EE6-3DD8-4534-B4BB-27148CF0042B':  //GRID
					ObjectItem.Editable = (Status);
					break;
				case 'CLSIE:C722848E-C7EE-4DC6-947E-C2CD49BBA9DE': //INPUT-FILE
					ObjectItem.Enable = (Status);
					break;
				case 'CLSIE:4AEAFD66-8D65-41AC-B1D1-57E7FF2A734F':  //EMEDIT
					ObjectItem.ReadOnly = (!Status);
					if(Status==false){
						ObjectItem.ReadOnlyForeColor = '#000000';
						ObjectItem.ReadOnlyBackColor = '#F0E6CC';
					}else{
					}
					break;
				case 'CLSIE:D8BCC087-4710-427D-B2E4-A4B93B6EA197':  //LUXCOMBO
					ObjectItem.Enable = (Status);
					if(Status==false){
						ObjectItem.DisableBackColor  = '#F0E6CC';//#F9F9F9
					}else{
					}
					break;
				case 'CLSIE:B22DC058-80A2-438F-A64D-08B3B04AD7E0':  //RADIO
					ObjectItem.Enable = (Status);
					break;
				case 'CLSIE:2F5DF8D9-F63C-460E-B5CB-399E816B0274':  //TextArea
					ObjectItem.Enable = (Status);
					break;
			}
	}
}

/*-- ParentObject(Div,Table,FieldSet)¿¡ ¼ÓÇÑ¸ðµç ObjectÀÇ Status¸¦ ¹Ù²Û´Ù. --*/
function cf_enableObjAll(ParentObject,Status){
		switch (ParentObject.tagName){
				case 'TABLE':
						for (i in ParentObject.all) cf_enableObj(ParentObject.all[i],Status);
						break;
				case 'DIV':
						for (i in ParentObject.children) cf_enableObj(ParentObject.children[i],Status);
						break;
				case 'FIELDSET':
						for (i in ParentObject.children) cf_enableObj(ParentObject.children[i],Status);
						break;
				default:
						cf_enableObj(ParentObject,Status);
		}
}

// ÁöÁ¤ÇÑ ¹öÆ°¸¸ disable½ÃÅ°°í, ³ª¸ÓÁö´Â enable
function cf_disableBtn(btnArr){
  btn_insert.disabled = false;
  btn_update.disabled = false;
  btn_delete.disabled = false;
  btn_save.disabled   = false;
  btn_search.disabled = false;
  for (var i in btnArr){
	if (btnArr[i] != null)
	  btnArr[i].disabled = true;
  }
}

//°øÅë¸Þ½ÃÁö(ÀÏ¹Ý)
function cf_getMsg(message, paramArray){
	if (message==null){
		return null;
	}
	var index = 0;
	var re = /@/g;
	var count = 0;
	if (paramArray == null){
		return message;
	}
	while ( (index = message.indexOf("@", index)) != -1){
		if (paramArray[count] == null){
			paramArray[count] = "";
		}
		message = message.substr(0, index) + String(paramArray[count]) +
				  message.substring(index + 1);
		index = index + String(paramArray[count++]).length;
	}
	alert(message);
}

//°øÅë¸Þ½ÃÁö(confirm)
function cf_getMsgC(message, paramArray){
	if (message==null){
		return null;
	}
	var index = 0;
	var re = /@/g;
	var count = 0;
	if (paramArray == null){
		return message;
	}
	while ( (index = message.indexOf("@", index)) != -1){
		if (paramArray[count] == null){
			paramArray[count] = "";
		}
		message = message.substr(0, index) + String(paramArray[count]) +
				  message.substring(index + 1);
		index = index + String(paramArray[count++]).length;
	}
	return confirm(message);
}


function __WS__(id){
	document.write(id.innerHTML );id.id = "";
}
/**************************************************************************************************************************/
/****************************************** ÄÁ¼³ÅÏÆ® È¨ÇÇ °ü·Ã ½ºÅ©¸³Æ® end ***************************************************/
/*************************************************************************************************************************/


function search(suburl,mode){
	var MCode, SCode, low_code, local_code, TMoney, TransForm, SWebWriteNo, CSearch;
	var f = document.search;
	MCode = f.MCode.value;
	SCode = f.SCode.value;
	low_code = f.low_code.value;
	local_code = f.local_code.value;
	


	
	if(mode == 0){
		vSpace = f.vSpace.value;
		TMoney = f.TMoney.value;
		SWebWriteNo = f.SWebWriteNo.value;
		CSearch = f.CSearch.value;
		transform = f.transform.value;
		Url  = suburl + "?MCode="+ MCode + "&transform=" + transform + "&SCode=" + SCode + "&low_code=" + low_code + "&local_code=" + local_code+ "&TMoney=" + TMoney +  "&SWebWriteNo=" + SWebWriteNo + "&CSearch=" + CSearch + "&vSpace=" + vSpace;
	}
	else if(mode == 1){
		StoreType = f.StoreType.value;
		Url  = suburl + "?MCode="+ MCode + "&SCode=" + SCode + "&low_code=" + low_code + "&local_code=" + local_code+"&StoreType=" +StoreType ;
	}

	
	location.href=Url;
}
//±Ç¸®¸Å¸Å Àü¿ë ¼­Ä¡ ÇÔ¼ö 2008-07-04 ±èÅÂ±¤
function presearch(suburl,mode){
	var MCode, SCode, low_code, local_code, TMoney, TransForm, SWebWriteNo, CSearch, selpremium, nopremium, minuspremium, pregi;
	var f = document.search;
	MCode = f.MCode.value;
	SCode = f.SCode.value;
	low_code = f.low_code.value;
	local_code = f.local_code.value;
	
	if(mode == 0){
		vSpace = f.vSpace.value;
		TMoney = f.TMoney.value;
		SWebWriteNo = f.SWebWriteNo.value;
		CSearch = f.CSearch.value;
		transform = f.transform.value;
		selpremium = f.selpremium.value;
		pregi = f.pregi.value;

		//¸¶ÀÌ³Ê½º ±Ç¸®±ÝÃ¼Å©
		if (f.minuspremium.checked ==true){
		minuspremium = f.minuspremium.value;
		}
		else
		{minuspremium="plus";}
		
		//¹«±Ç¸®±ÝÃ¼Å©
		if (f.nopremium.checked ==true){
		nopremium = f.nopremium.value;
		}
		else
		{nopremium = "no";}

		Url  = suburl + "?MCode="+ MCode + "&transform=" + transform + "&SCode=" + SCode + "&low_code=" + low_code + "&local_code=" + local_code+ "&TMoney=" + TMoney +  "&SWebWriteNo=" + SWebWriteNo + "&CSearch=" + CSearch + "&vSpace=" + vSpace+  "&selpremium=" + selpremium +  "&nopremium=" + nopremium +  "&minuspremium=" + minuspremium + "&pregi=" + pregi+ "&mode=0" ;
	}
	else if(mode == 1){
		StoreType = f.StoreType.value;
		Url  = suburl + "?MCode="+ MCode + "&SCode=" + SCode + "&low_code=" + low_code + "&local_code=" + local_code+"&StoreType=" +StoreType ;
	}

	
	location.href=Url;
}
function searchSangga(suburl,mode){
	var jong_code, low_code, local_code ;
	var f = document.search;
	jong_code = f.jong_code.value;
	low_code = f.low_code.value;
	local_code = f.local_code.value;
	CSearch = f.CSearch.value;
	Sang_Code = f.Sang_Code.value;
	
	Url  = suburl + "?jong_code="+ jong_code + "&low_code=" + low_code + "&local_code=" + local_code + "&CSearch=" +CSearch +"&Sang_Code="+Sang_Code;

	
	location.href=Url;
}


function search_Fran(suburl,mode){
	var MCode, SCode,TotalMoney, CSearch;
	var f = document.search;
	MCode = f.MCode.value;
	SCode = f.SCode.value;
	CSearch = f.CSearch.value;
	TotalMoney = getSelectValue(f.TotalMoney);	
	Url  = suburl + "?MCode="+ MCode + "&SCode=" + SCode + "&TotalMoney=" +TotalMoney +"&CSearch="+CSearch;
		
	location.href=Url;
}


function search_Mcode(suburl){
	var MCode, SCode ,cafecode;
	var f = document.frm;
	cafecode = f.cafecode.value
	MCode = f.MCode.value;
	SCode = f.SCode.value;
	
	Url  = suburl + "?cafecode="+ cafecode + "&MCode="+ MCode + "&SCode=" + SCode;
		
	location.href=Url;
}


function search_rss(suburl,mode){
	var MCode, SCode, low_code, local_code, TMoney, TransForm, SWebWriteNo, CSearch;
	var f = document.search;
	MCode = f.MCode.value;
	SCode = f.SCode.value;
	low_code = f.low_code.value;
	local_code = f.local_code.value;




	TMoney = f.TMoney.value;
	CSearch = f.CSearch.value;
	transform = f.transform.value;
	Url  = suburl + "?MCode="+ MCode + "&transform=" + transform + "&SCode=" + SCode + "&low_code=" + low_code + "&local_code=" + local_code+ "&TMoney=" + TMoney +  "&CSearch=" + CSearch +  "&page=1";
	f.getUrl.value = '';
	f.getUrl.value = Url;


}

<!--
function MM_swapImgRestore(){ //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages(){ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d){ //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length){
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage(){ //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function ChoiceTab(v1,v2,v3){
	for (i=1; i<=parseInt(v3) ;i++){
		if( parseInt(v2) == i ){
			eval("document.all."+v1+"_"+i+".style").display = "block";
		}else{
			eval("document.all."+v1+"_"+i+".style").display = "none";
		}
	}
}
function SearchSend(){
	if (!psfrm.pword.value){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		psfrm.pword.focus();
		return;
	}
	psfrm.submit();
}
function fEnter(){
 if (event.keyCode == 13)
  SearchSend();
}
function autoblur(){
	if(event.srcElement.tagName == "A") document.body.focus();
}
//document.onfocusin = autoblur;


function ImgErrorChk(v){
	eval(v).src='/_images/common/icon_sample_60x45.gif';
}
function MCodeChk(v){
	if (v){
		ListFrm.MCode.value = v;
		ListFrm.SCode.value = '';
		ListFrm.submit();
	} else {
		ListFrm.MCode.value = v;
		ListFrm.TMoney.value = '';
		ListFrm.SCode.value = '';
		ListFrm.loc.value = '';
		ListFrm.Region.value = '';                
		ListFrm.submit();      
	}
}
function SCodeChk(v){
	ListFrm.SCode.value = v;
	ListFrm.submit();
}


function RegionSearch(v){
	ListFrm.Region.value = v;
	ListFrm.loc.value = "";
	ListFrm.submit();
}
function RegionChk(v1,v2){
	ListFrm.Region.value = v1;
	ListFrm.loc.value = v2;
	ListFrm.submit();
}
function MovePage(v1,v2){
	if(v1){ListFrm.action = v1;}
	if(v2){ListFrm.Page.value = v2;}
	ListFrm.submit();
}
function Sort_Chk(v){
	ListFrm.Sort.value = v;
	ListFrm.SortX.value = v;
	ListFrm.submit();
}



function MyFrmChk(v){
	ProFrm.chk.value = v;
}
function MySend(){
	if( ProFrm.chk.value == "0" ){
		IdxPro('TFrm');
	}else {
		IdxPro('PFrm');
	}
}
function IdxPro(v){

	var count = 0;
	var chk = 0;

	if (eval(v).IdxArr != null ){
		if (eval(v).IdxArr.length != null ){
			for (i = 0; i < eval(v).IdxArr.length; i++ )
			{
				if (eval(v).IdxArr[i].checked == true){
					count += 1;
					chk = i;
				}
			}
		}else {
			if (eval(v).IdxArr.checked == true){count = 1; }
		}
	}

	if (count < 1){
		alert('1°Ç ÀÌ»óÀÇ Á¡Æ÷À» Ã¼Å©ÇÏ¼¼¿ä.');
		return;
	}else {
		if (confirm("ÃÑ " + count + "°ÇÀÇ Á¡Æ÷À» ¼±ÅÃÇÏ¼Ì½À´Ï´Ù. \n°ü½Éµî·ÏÇÏ½Ã°Ú½À´Ï±î?")){
			eval(v).submit();
		}
	}

}
function MoneySearch(){
	var len=0;
	var k=0;
	len=tsFrm.TotalMoneySearch.length;
	for (i=0;i<len;i++){
		if (tsFrm.TotalMoneySearch[i].checked==true){
			k = k+1;
			v = i;
		}
	}
	if (k<=0){
		alert("°Ë»öÇÒ Á¶°ÇÀ» ¼±ÅÃÇØÁÖ¼¼¿ä");
		return;
	}

	ListFrm.TMoney.value = v;
	ListFrm.submit();
}
function ContentView(v1,v2){
	var x = screen.availWidth;
	switch ( x ){
		case 1280 :
			eval("document.all." + v2 + ".style").left = "345";
			break;
		case 1152 :
			eval("document.all." + v2 + ".style").left = "281";
			break;
		case 1024 :
			eval("document.all." + v2 + ".style").left = "217";
			break;
		case 800 :
			eval("document.all." + v2 + ".style").left = "161";
			break;
		case 1600 :
			eval("document.all." + v2 + ".style").left = "504";
			break;
	}

	if(v1 == "Y"){
		eval("document.all." + v2 + ".style").display = "block";
	}else {
		eval("document.all." + v2 + ".style").display = "none";
	}
}
function ContentView02(v1,v2){
	var x = screen.availWidth;
	switch ( x ){
		case 1280 :
			eval("document.all." + v2 + ".style").left = "277";
			break;
		case 1152 :
			eval("document.all." + v2 + ".style").left = "215";
			break;
		case 1024 :
			eval("document.all." + v2 + ".style").left = "149";
			break;
		case 800 :
			eval("document.all." + v2 + ".style").left = "93";
			break;
		case 1600 :
			eval("document.all." + v2 + ".style").left = "436";
			break;
	}

	if(v1 == "Y"){
		eval("document.all." + v2 + ".style").display = "block";
	}else {
		eval("document.all." + v2 + ".style").display = "none";
	}
}
function ChangeImg(img, str){
	if (img == "") img = "http://www.jumpolin.com/_images/common/simple_img_1.gif";
	var imgsrc = img;
	document.mainphoto.src = imgsrc;
	Img_exp.innerHTML = str;
	return;
}



 function checkWord(f){
  if(f.content.value==""){
   alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
   f.content.focus();
   return;
  }
  f.submit();
 }

 function alertWord(){
	//alert("·Î±×ÀÎÀ» ÇÏ¼Å¾ß ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
	window.open("/login/login_popup_jsm.asp", "login", "left=410,top=250,width=385,height=164");
	return;
 }

 function ModifyReply(uid){
  window.open("jm_info_qna_reply.asp?mode=Modify&OCID="+uid, "re", "width=440,height=170");
 }

 function DelReply(depth, uid){
  if (depth > 0){
   msg = 'Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?';
  }else{
   msg = '´äº¯ÀÌ ÀÖÀ» °æ¿ì ´äº¯µµ ¸ðµÎ »èÁ¦µË´Ï´Ù. Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?';
  }

  if (confirm(msg)){
   window.open("jm_info_qna_reply.asp?mode=Del&OCID="+uid, "re", "width=1,height=1,left=3000,top=2000");
  }
 }

 function OpenReply(jid, uid, depth, step){
  window.open("jm_info_qna_reply.asp?JOfrsID="+jid+"&OCID="+uid+"&TypeCode=02&Depth="+depth+"&Step="+step, "re", "width=440, height=170");
 }


function ListGo(){
	ListFrm.submit();
}


function popupchk(url,W,H,schk){

	if (screen.width == W){
		var T = 0;var L = 0;
	}else{
		var L = ((screen.width) - W) / 2;
		var T = ((screen.height) - H) / 2;
	}
	var win = window.open(url+'', '', 'width='+W+',height='+H+',top='+T+',left='+L+',resizable=yes,scrollbars='+schk+'');
 win.focus();
}


	// ¿À¸¥ÂÊ ¸¶¿ì½º Â÷´Ü
function Right(e){
		if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
			return false;
		else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)){
			alert("Á¡Æ÷»ó¼¼¼³¸í ¹«´Üµµ¿ë¹æÁö¸¦ À§ÇÏ¿©\n¸¶¿ì½º ¿À¸¥ÂÊ¹öÆ°À» »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
			return false;
		}
		return true;
}
function Right2(e){
		if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
			return false;
		else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)){
			alert("ÇØ´ç ÆäÀÌÁö ¹«´Üµµ¿ë¹æÁö¸¦ À§ÇÏ¿©\n¸¶¿ì½º ¿À¸¥ÂÊ¹öÆ°À» »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
			return false;
		}
		return true;
	}

//	document.onmousedown=Right;

	if (document.layers){
		window.captureEvents(Event.MOUSEDOWN);
		window.onmousedown=Right;
	}
//-->
//ÀÌº¥Æ® ¿ë ÄíÅ°

function MM_showHideLayers(){ //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null){ v=args[i+2];
	if (obj.style){ obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}


function setCookie2 (name, value, expires){
	document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString();
}
function popup(code){

  var chkCnt = 0;
  var objName = code;
  var objName2 = code + "_";

  //layerObj = parent.document.popup;

  var aCookie = document.cookie.split("; ");
  for (var i=0; i < aCookie.length; i++){
	var aCrumb = aCookie[i].split("=");
	if (objName == aCrumb[0]) chkCnt++;
	//if (objName2 == aCrumb[0]) chkCnts++;
  }
  if (chkCnt == 0){
	  MM_showHideLayers(objName,'','show')
	  MM_showHideLayers(objName2,'','show')	  
  }
}
function popup_v2(code){

  var chkCnt = 0;
  var objName = code;
  var objName2 = code + "_";


  //layerObj = parent.document.popup;

  var aCookie = document.cookie.split("; ");
  for (var i=0; i < aCookie.length; i++)
  {
	var aCrumb = aCookie[i].split("=");
	if (objName == aCrumb[0]) chkCnt++;
	//if (objName2 == aCrumb[0]) chkCnts++;
  }

  if (chkCnt == 0) 
  {
	  MM_showHideLayers(objName,'','show')
	  MM_showHideLayers(objName2,'','show')
	  
  }	
 
}
//Äí±â±Á±â


//ÄíÅ°¼ÂÆÃ
function Setting(code){
	var expdate = new Date();
	expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 1); // 1 ÀÏ
	setCookie2(code, '1', expdate);
}
function selectMake(start,end,val){
	for(i = start; i < end ;++i){
		document.write("<option value="+ i);
		if (i == val){
			
			document.write(" selected");
		}
		document.write(" >"+i +"</option>");
	}
} 

function singo(){
	//if(confirm("½Å°í ÇÏ½Ã°Ú½À´Ï±î?")){
		document.all.div_statement.style.display='';
		document.statement.content.focus();
	//}else{
	//	return;
	//}
}
function singo2(){
		document.all.div_statement.style.display='';
		document.statement.content.focus();
}
function singo3(idx){
	if (!idx){
		alert("°ªÀÌ ´©¶ôµÇ¾ú½À´Ï´Ù.");
		return;
	}
	url = "/jumpo_maemul/state_popup.asp?webjofrsid="+idx;
	pop_option = "width=500,height=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";
	state_popup = window.open(url,"state_popup",pop_option);//,left=30,top=120
	state_popup.focus();
}


function setClipBoard(x){
 window.clipboardData.setData('Text', x);
 alert('ÁÖ¼Ò°¡ º¹»çµÇ¾ú½À´Ï´Ù.');
}
function findSubway(code){
	find = false;
	var ReValue;
	var lth = CodSubway.length;

	for (i=0;i <lth; ++i){
		//alert(i);
		var sublth= CodSubway[i].length;
		for (j=0;j <sublth ; ++j){
			if (CodSubway[i][j] == code)
			{
				ReValue = i;
				find = true;
				break;
			}

		}
		if (find){
			break;
		}
	}
	return ReValue ;
		

}
function findSubwayName(code){
	find = false;
	var ReValue;
	var lth = CodSubway.length;

	for (i=0;i <lth; ++i){
		//alert(i);
		var sublth= CodSubway[i].length;
		for (j=0;j < sublth ; ++j){
			if (CodSubway[i][j] == code)
			{
				ReValue = UppSubway[i][j]
				find = true;
				break;
			}

		}
		if (find){
			break;
		}
	}
	return ReValue ;
		

}


 function BuildCatsEdit(num,codes){
   var FJ=document.frm;
   
	if (FJ.UppSubway.value!="0"){
	  //Ã¹ ¹øÂ° Ä«Å×°í¸® ¼±ÅÃ
	  jsSelectClear(FJ.CodSubway);
	  FJ.CodSubway.selectedIndex=0;

	  //ÇØ´ç Ã¤³ÎÀÇ ¼­ºê Ä«Å×°í¸® ¹è¿­ ±æÀÌ¸¸Å­ ¹Ýº¹
	  for(ctr=0;ctr<UppSubway[num].length;ctr++) 
	  {
	   //Ä«Å×°í¸®¿¡ ÇØ´çÇÏ´Â ÄÞº¸¹Ú½ºÀÇ °ªÀ» Ã¤¿ò
	   FJ.CodSubway.options[ctr] = new Option(UppSubway[num][ctr],CodSubway[num][ctr]);
	   //alert(CodSubway[num][ctr]);
		   if(codes == CodSubway[num][ctr])
		   {
				//alert("asfsf");
				FJ.CodSubway.options[ctr].selected = true;
		   }
	  }
	  //select ¸®½ºÆ® ±æÀÌ ÁöÁ¤
	  FJ.CodSubway.length=UppSubway[num].length;
	}else{
		jsSelectClear(FJ.CodSubway);
		FJ.CodSubway.options[0]=new Option("--¿ª¸í--",'0');
	}
 }

 /*************************************************************
	 ±â´É ¼³¸í	: ÄÚµåÅ×ÀÌºí Å¬·¡½º
	 ¸¸µç ³¯Â¥	: 2002-08-08
	 ¸¸µç »ç¶÷	: ÀÌµµÈñ
	 ÃÖÁ¾ ¼öÁ¤ÀÏ	: 
	*************************************************************/
function CodeTable(){

		var obj = "";
		var data = new Array();
		this.put = put;
		this.put2 = put2;
		this.get = get;
		this.length = length;
		this.getSelect = getSelect;
		this.getSelect2 = getSelect2;

	function put(MCode, SCode, SName){
			obj = new DataClass();
			obj.setMCode(MCode);
			obj.setSCode(SCode);
			obj.setSName(SName);
			data[data.length] = obj;
		}

	function put2(MCode, SCode, CCode, SName){
			obj = new DataClass();
			obj.setMCode(MCode);
			obj.setSCode(SCode);
			obj.setCCode(CCode);
			obj.setSName(SName);
			data[data.length] = obj;
		}

	function get(){
			return data;
		}

	function getSelect(MCode){
			var tmp = new Array();
			var count = 0;

			for(var i=0; i<data.length; i++){
				if(data[i].getMCode() == MCode){
					tmp[count] = data[i];
					count++;
				}
			}
			return tmp;
		}

	function getSelect2(MCode, SCode){
			var tmp = new Array();
			var count = 0;
			for(var i=0; i<data.length; i++){
				if(data[i].getMCode() == MCode && data[i].getSCode() == SCode){
					tmp[count] = data[i];
					count++;
				}
			}
			return tmp;
		}


	function length(){
			return data.length;
		}
	
	}

	/*************************************************************
	 ±â´É ¼³¸í	: µ¥ÀÌÅ¸ Å¬·¡½º
	 ¸¸µç ³¯Â¥	: 2002-08-08
	 ¸¸µç »ç¶÷	: ÀÌµµÈñ
	 ÃÖÁ¾ ¼öÁ¤ÀÏ	: 
	*************************************************************/
function DataClass(){
		var MCode = "";
		var SCode = "";
		var CCode = "";
		var SName = "";
		this.setMCode = setMCode;
		this.setSCode = setSCode;
		this.setCCode = setCCode;
		this.setSName = setSName;
		this.getMCode = getMCode;
		this.getSCode = getSCode;
		this.getCCode = getCCode;
		this.getSName = getSName;

	function setMCode(MCode){
			this.MCode = MCode;
		}

	function setSCode(SCode){
			this.SCode = SCode;
		}

	function setCCode(CCode){
			this.CCode = CCode;
		}

	function setSName(SName){
			this.SName = SName;
		}

	function getMCode(){
			return this.MCode;
		}

	function getSCode(){
			return this.SCode;
		}

	function getCCode(){
			return this.CCode;
		}

	function getSName(){
			return this.SName;
		}
}
function SubwayShow(code){
		switch(code){
			case '101' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/1_line.gif border=0 vspace=20 usemap=#subway1>"; break;
			case '102' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/2_line.gif border=0 vspace=20 usemap=#subway2>"; break;
			case '103' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/3_line.gif border=0 vspace=20 usemap=#subway3>"; break;
			case '104' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/4_line.gif border=0 vspace=20 usemap=#subway4>"; break;
			case '105' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/5_line.gif border=0 vspace=20 usemap=#subway5>"; break;
			case '106' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/6_line.gif border=0 vspace=20 usemap=#subway6>"; break;
			case '107' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/7_line.gif border=0 vspace=20 usemap=#subway7>"; break;
			case '108' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/8_line.gif border=0 vspace=20 usemap=#subway8>"; break;
			case '201' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/9_line.gif border=0 vspace=20 usemap=#subway9>"; break;
			case '301' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/10_line.gif border=0 vspace=20 usemap=#subway10>"; break;
			case '701' : document.all.subwayfind.innerHTML = "<img src=/_file/subway/11_line.gif border=0 vspace=20 usemap=#subway11>"; break;

		}

	}


function hompyURL(url,name){

		winObj = window.open("http://"+url,'','');
	}


//** ÁÖÀÇ»çÇ× DIV°´Ã¼ ¸¸µé¾î¾ß ÇÔ..
//** DIV°´Ã¼ ÀÌ¸§ : imgDiv
//** targetImg : ÁöÁ¤ÇÒ ÀÌ¹ÌÁö URL , wsize : °¡·Î Á¦ÇÑ Å©Å° , hsize : ¼¼·Î Á¦ÇÑ Å©±â
function fImgSize(targetImg,wsize,hsize) //±×¸²ÀÇ ÀÌ¹ÌÁö »çÀÌÁî ±¸ÇÏ±â. 
{ 
	var imgw; 
	var imgh; 
	var timgw; 
	var timgh; 
	var divImg; 
	var newImg = new Image(); 

	newImg.src = targetImg; 
	imgw = newImg.width; 
	imgh = newImg.height; 

	// »çÀÌÁî°¡ °ø°£ º¸´Ù Å©¸é °°Àº ºñÀ²·Î ÁÙ¿©¼­ º¸¿© ÁØ´Ù. 
	if (imgw <= wsize && imgh <= hsize ){ 
		divImg = ""; 
	}else if (imgw > wsize && imgh <= hsize){ 
		timgw = wsize; 
		timgh = (wsize / imgw) * imgh; 
		divImg = ""; 
	}else if (imgw <= wsize && imgh > hsize){ 
		timgw = (hsize / imgh) * imgw; 
		timgh = hsize; 
		divImg = ""; 
	}else if (imgw > wsize && imgh > hsize){ 

		var comp; 
		if ((wsize/imgw) >= (hsize/imgh)){ 
			comp = 'W'; 
		}else { 
			comp = 'H'; 
		} 
		if (comp == 'W'){ 
			timgw = (hsize / imgh) * imgw;
			timgh = hsize 
			divImg = ""; 
		}else { 
			timgw = wsize; 
			timgh = (wsize / imgw) * imgh; 
			divImg = ""; 
		} 
	} 

	imgDiv.innerHTML = divImg; 

} 

function crChild(obj){
	// ÀÚ½ÄÀ©µµ¿ì "openee"¸¦ »ý¼º
	/* ±¸Çö ºÎ ½ÃÀÛ #4*/
	var newImg = new Image(); 

	newImg.src = obj.src;
	imgw = newImg.width+15; 
	imgh = newImg.height; 

	var openee = window.open("","","width="+imgw+",height="+imgh+",scrollbars=yes")
	/* ±¸Çö ºÎ Á¾·á #4*/

	// À©µµ¿ìÀÇ µµÅ¥¸ÕÆ® °´Ã¼¸¦ var Å¸ÀÔÀÇ º¯¼ö d ¿¡ ÀúÀå
	/* ±¸Çö ºÎ ½ÃÀÛ #5*/
	var d = openee.document;

	/* ±¸Çö ºÎ Á¾·á #5*/

	d.open();
	d.writeln("<html>");
	d.writeln("<head>");
	d.writeln("</head>");
	d.writeln("<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 onclick='self.close();' style='cursor:hand;'>");
	d.writeln("<img src="+obj.src+">");
	d.writeln("</body>");
	d.writeln("</html>");
	d.close();
}




/*---------------------------------------------------------------------------------------------------------
¹è³Ê Á¶È¸¼ö ½Ã½ºÅÛ
value´Â  ÇÁ·£Â÷ÀÌÁîÀÇ ChainID °ªÀ» ³Ö¾îÁØ´Ù.
url°ªÀº Ã³¸®ÈÄ »õÃ¢À» ¶ç¿ï ÆäÀÌÁö¸¦ ³Ö´Â´Ù.
mode´Â »õÃ¢ÀÎÁö ¾Æ´ÑÁö?  T »õÃ¢
Àß~
---------------------------------------------------------------------------------------------------------*/
function BannerSend(value, url, mode){
	var XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XMLHTTP.open("get","/External/banner_count.asp?ChainID="+value, false);
	XMLHTTP.send();
	
	if (mode=="T"){
		alert("1");
		window.open(url);
	}else{
		alert("22");
		location.href=url;
	}
}

/*---------------------------------------------------------------------------------------------------------
¹è³Ê Á¶È¸¼ö ½Ã½ºÅÛ(½Å)
value´Â  ÇÁ·£Â÷ÀÌÁîÀÇ ChainID °ªÀ» ³Ö¾îÁØ´Ù.
url°ªÀº Ã³¸®ÈÄ »õÃ¢À» ¶ç¿ï ÆäÀÌÁö¸¦ ³Ö´Â´Ù.
mode´Â »õÃ¢ÀÎÁö ¾Æ´ÑÁö?  T »õÃ¢
Àß~
---------------------------------------------------------------------------------------------------------*/
function BannerCount(Code, Loc, ReturnUrl, ect){
	var Url = location.href; 
	var XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XMLHTTP.open("get","/External/bannerCount.asp?Code="+Code+"&Url='"+Url+"'&Loc="+Loc, false);
	XMLHTTP.send();
	if (ect == "T"){
		window.open(ReturnUrl);
	}
	else
	{
		location.href=ReturnUrl;
	}
}

//-------------------------------------------------------------------------------------------------------------------



function MOVIE(MOVIEURL,SizeX,SizeY)  //Á¡Æ÷µ¿¿µ»ó
{
	document.write('<embed src="'+ MOVIEURL + '" width='+ SizeX +' height='+ SizeY +'>');

}

function MOVIE2(MOVIEURL,SizeX,SizeY)  //Á¡Æ÷µ¿¿µ»ó
{
	document.write('<span style="position:relative; width:'+SizeX+';height:'+(SizeY+65)+'px;overflow:hidden;z-index:3">');
	document.write('<object id="movie1" name="movie1" width="'+SizeX+'"  height="'+(SizeY+65)+'" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">');
	document.write('<param name="URL" value="'+MOVIEURL+'">');
	document.write('<param name="baseURL" value>');
	document.write('<param name="volume" value="100">');
	document.write('<param name="ShowPositionControls" value="0">');
	document.write('<param name="mute" value="0">');
	document.write('<param name="uiMode" value="full">');
	document.write('<param name="stretchToFit" value="0">');
	document.write('<param name="windowlessVideo" value="0">');
	document.write('<param name="enabled" value="-1">');
	document.write('<param name="enableContextMenu" value="0">');
	document.write('<param name="fullScreen" value="0">');
	document.write('<param name="SAMIStyle" value>');
	document.write('<param name="SAMILang" value>');
	document.write('<param name="SAMIFilename" value>');
	document.write('<param name="captioningID" value>');
	document.write('<param name="enableErrorDialogs" value="0">');
	document.write('<param name="_cx" value="6350">');
	document.write('<param name="_cy" value="1191">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="autoStart" value="1">');
	document.write('</object></span>');

}

// Á¡Æ÷¶óÀÎ µ¿¿µ»ó
function f_movie(kind,MOVIEURL,SizeX,SizeY){
	if(kind=='1'){  //¹Ù·Î ½ÃÀÛÀº ¾ÈÇÔ
		document.write('<span style="position:relative; width:'+SizeX+';height:'+(SizeY+65)+'px;overflow:hidden;z-index:3">');
		document.write('<object id="movie1" name="movie1" width="'+SizeX+'"  height="'+(SizeY+65)+'" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">');
		document.write('<param name="URL" value="'+MOVIEURL+'">');
		document.write('<param name="baseURL" value>');
		document.write('<param name="volume" value="100">');
		document.write('<param name="ShowPositionControls" value="0">');
		document.write('<param name="mute" value="0">');
		document.write('<param name="uiMode" value="full">');
		document.write('<param name="stretchToFit" value="0">');
		document.write('<param name="windowlessVideo" value="0">');
		document.write('<param name="enabled" value="-1">');
		document.write('<param name="enableContextMenu" value="0">');
		document.write('<param name="fullScreen" value="0">');
		document.write('<param name="SAMIStyle" value>');
		document.write('<param name="SAMILang" value>');
		document.write('<param name="SAMIFilename" value>');
		document.write('<param name="captioningID" value>');
		document.write('<param name="enableErrorDialogs" value="0">');
		document.write('<param name="_cx" value="6350">');
		document.write('<param name="_cy" value="1191">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<param name="autoStart" value="0">');
		document.write('</object></span>');
	}
}

//·Î±×ÀÎ ½ºÅ¸ÀÏ
function report_do(num){
	//var xPos = event.pageX || event.x+document.body.scrollLeft;
	//var yPos = event.pageY || event.y+document.body.scrollTop;
	if(num == 100){
		document.all.L_Report.style.display = "";
	}
	else
	{
		document.all.L_Report.style.display = "none";
	}
   // document.all.L_Report.style.left = xPos - 30;
   // document.all.L_Report.style.top = yPos - 10;


}
function free_popup(TM_CstPhone,TM_CstName,TMcstID,SmS_WebjofrsID,pagecode){
	var OtherhpOpen = window.open('/_include/pg_sms.asp?POP_Phone='+TM_CstPhone+'&POP_Name='+TM_CstName+'&POP_cstID='+TMcstID+'&SmS_WebjofrsID='+SmS_WebjofrsID+'&pagecode='+pagecode+'','pop_evt1','top=100,left=100,width=500,height=700,fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	OtherhpOpen.focus();
}
// ±×·¡ÇÁ Â÷Æ® ¸ðµâ //
/**
 * FusionCharts: Flash Player detection and Chart embedding.
 * Version:  vFree.1.2 (1st November, 2007) - Added Player detection, New conditional fixes for IE, supports FORM in IE
 *
 * Morphed from SWFObject (http://blog.deconcept.com/swfobject/) under MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof infosoftglobal == "undefined") var infosoftglobal = new Object();
if(typeof infosoftglobal.FusionChartsUtil == "undefined") infosoftglobal.FusionChartsUtil = new Object();
infosoftglobal.FusionCharts = function(swf, id, w, h, debugMode, registerWithJS, c, scaleMode, lang, detectFlashVersion, autoInstallRedirect){
	if (!document.getElementById){ return; }
	
	//Flag to see whether data has been set initially
	this.initialDataSet = false;
	
	//Create container objects
	this.params = new Object();
	this.variables = new Object();
	this.attributes = new Array();
	
	//Set attributes for the SWF
	if(swf){ this.setAttribute('swf', swf); }
	if(id){ this.setAttribute('id', id); }
	if(w){ this.setAttribute('width', w); }
	if(h){ this.setAttribute('height', h); }
	
	//Set background color
	if(c){ this.addParam('bgcolor', c); }
	
	//Set Quality	
	this.addParam('quality', 'high');
	
	//Add scripting access parameter
	this.addParam('allowScriptAccess', 'always');
	
	//Pass width and height to be appended as chartWidth and chartHeight
	this.addVariable('chartWidth', w);
	this.addVariable('chartHeight', h);

	//Whether in debug mode
	debugMode = debugMode ? debugMode : 0;
	this.addVariable('debugMode', debugMode);
	//Pass DOM ID to Chart
	this.addVariable('DOMId', id);
	//Whether to registed with JavaScript
	registerWithJS = registerWithJS ? registerWithJS : 0;
	this.addVariable('registerWithJS', registerWithJS);
	
	//Scale Mode of chart
	scaleMode = scaleMode ? scaleMode : 'noScale';
	this.addVariable('scaleMode', scaleMode);
	//Application Message Language
	lang = lang ? lang : 'EN';
	this.addVariable('lang', lang);
	
	//Whether to auto detect and re-direct to Flash Player installation
	this.detectFlashVersion = detectFlashVersion?detectFlashVersion:1;
	this.autoInstallRedirect = autoInstallRedirect?autoInstallRedirect:1;
	
	//Ger Flash Player version 
	this.installedVer = infosoftglobal.FusionChartsUtil.getPlayerVersion();
	
	if (!window.opera && document.all && this.installedVer.major > 7){
		// Only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
		infosoftglobal.FusionCharts.doPrepUnload = true;
	}
}

infosoftglobal.FusionCharts.prototype = {
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name];
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name];
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = new Array();
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs.push(key +"="+ variables[key]);
		}
		return variablePairs;
	},
	getSWFHTML: function(){
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length){ 
			// netscape plugin architecture			
			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"  ';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
			swfNode += '/>';
		} else { // PC IE			
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params){
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");			
			if(pairs.length > 0){swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	setDataURL: function(strDataURL){
		//This method sets the data URL for the chart.
		//If being set initially
		if (this.initialDataSet==false){
			this.addVariable('dataURL',strDataURL);
			//Update flag
			this.initialDataSet = true;
		}else{
			//Else, we update the chart data using External Interface
			//Get reference to chart object
			var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id'));
			chartObj.setDataURL(strDataURL);
		}
	},
	setDataXML: function(strDataXML){
		//If being set initially
		if (this.initialDataSet==false){
			//This method sets the data XML for the chart INITIALLY.
			this.addVariable('dataXML',strDataXML);
			//Update flag
			this.initialDataSet = true;
		}else{
			//Else, we update the chart data using External Interface
			//Get reference to chart object
			var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id'));
			chartObj.setDataXML(strDataXML);
		}
	},
	render: function(elementId){
		//First check for installed version of Flash Player - we need a minimum of 6
		if((this.detectFlashVersion==1) && (this.installedVer.major < 6)){
			if (this.autoInstallRedirect==1){
				//If we can auto redirect to install the player?
				var installationConfirm = window.confirm("You need Adobe Flash Player 6 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");
				if (installationConfirm){
					window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
				}else{
					return false;
				}
			}else{
				//Else, do not take an action. It means the developer has specified a message in the DIV (and probably a link).
				//So, expect the developers to provide a course of way to their end users.
				//window.alert("You need Adobe Flash Player 6 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. ");
				return false;
			}			
		}else{
			//Render the chart
			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
			n.innerHTML = this.getSWFHTML();
			
			//Added for .NET AJAX and <FORM> compatibility
			if(!document.embeds[this.getAttribute('id')] && !window[this.getAttribute('id')])
				window[this.getAttribute('id')]=document.getElementById(this.getAttribute('id')); 
			 //or else document.forms[formName/formIndex][chartId]
			
			return true;		
		}
	}
}

/* ---- detection functions ---- */
infosoftglobal.FusionChartsUtil.getPlayerVersion = function(){
	var PlayerVersion = new infosoftglobal.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description){
			PlayerVersion = new infosoftglobal.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0){ 
		//If Windows CE
		var axo = 1;
		var counter = 3;
		while(axo){
			try {
				counter++;
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
				PlayerVersion = new infosoftglobal.PlayerVersion([counter,0,0]);
			} catch (e){
				axo = null;
			}
		}
	} else { 
		// Win IE (non mobile)
		// Do minor version lookup in IE, but avoid Flash Player 6 crashing issues
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new infosoftglobal.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e){
				if (PlayerVersion.major == 6){
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e){}
		}
		if (axo != null){
			PlayerVersion = new infosoftglobal.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
infosoftglobal.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;
}
// ------------ Fix for Out of Memory Bug in IE in FP9 ---------------//
/* Fix for video streaming bug */
infosoftglobal.FusionChartsUtil.cleanupSWFs = function(){
	var objects = document.getElementsByTagName("OBJECT");
	for (var i = objects.length - 1; i >= 0; i--){
		objects[i].style.display = 'none';
		for (var x in objects[i]){
			if (typeof objects[i][x] == 'function'){
				objects[i][x] = function(){};
			}
		}
	}
}
// Fixes bug in fp9
if (infosoftglobal.FusionCharts.doPrepUnload){
	if (!infosoftglobal.unloadSet){
		infosoftglobal.FusionChartsUtil.prepUnload = function(){
			__flash_unloadHandler = function(){};
			__flash_savedUnloadHandler = function(){};
			window.attachEvent("onunload", infosoftglobal.FusionChartsUtil.cleanupSWFs);
		}
		window.attachEvent("onbeforeunload", infosoftglobal.FusionChartsUtil.prepUnload);
		infosoftglobal.unloadSet = true;
	}
}
/* Add document.getElementById if needed (mobile IE < 5) */
if (!document.getElementById && document.all){ document.getElementById = function(id){ return document.all[id]; }}
/* Add Array.push if needed (ie5) */
if (Array.prototype.push == null){ Array.prototype.push = function(item){ this[this.length] = item; return this.length; }}

/* Function to return Flash Object from ID */
infosoftglobal.FusionChartsUtil.getChartObject = function(id){
  //	set off to test in  .NET AJAX and <FORM> environment
  //if (window.document[id]){
  //    return window.document[id];
  //}
  var chartRef=null;
  if (navigator.appName.indexOf("Microsoft Internet")==-1){
	if (document.embeds && document.embeds[id])
	  chartRef = document.embeds[id]; 
	else
	chartRef  = window.document[id];
  }
  else {
	chartRef = window[id];
  }
  if (!chartRef)
	chartRef  = document.getElementById(id);
  
  return chartRef;
}


/*
 Function to update chart's data at client side (FOR FusionCharts vFREE and 2.x
*/
infosoftglobal.FusionChartsUtil.updateChartXML = function(chartId, strXML){
	//Get reference to chart object				
	var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(chartId);		
	//Set dataURL to null
	chartObj.SetVariable("_root.dataURL","");
	//Set the flag
	chartObj.SetVariable("_root.isNewData","1");
	//Set the actual data
	chartObj.SetVariable("_root.newData",strXML);
	//Go to the required frame
	chartObj.TGotoLabel("/", "JavaScriptHandler"); 
}


/* Aliases for easy usage */
var getChartFromId = infosoftglobal.FusionChartsUtil.getChartObject;
var updateChartXML = infosoftglobal.FusionChartsUtil.updateChartXML;
var FusionCharts = infosoftglobal.FusionCharts;
// ±×·¡ÇÁ Â÷Æ® ¸ðµâ ³¡ //


/*
// ¼ýÀÚ¸¸ ÀÔ·Â1
function OnlyNumber(){
	alert(event.keyCode);
	if ((event.keyCode < 48) || (event.keyCode > 57)){
		event.returnValue = false;
	}
}
*/

// ¼ýÀÚ¸¸ ÀÔ·Â2
function OnlyNumber(){
	var lkeycode = window.event.keyCode;
	var sOrg = String.fromCharCode(lkeycode);

	if(!sOrg.match(/^[\d|\.]/)){
		window.event.keyCode = 0;
	}
	// if  (lkeycode < 48 || lkeycode > 57)
	// window.event.keyCode = 0;
}
function fmtAccount(s){
	var str = s.replace("-","");
	return str;
}


// Ã¢¾÷´º½º
function f_news_popup(url, idx) {
	//?redirectURL='+url+'&Mode=update&webcode=web&news_idx='+idx
	new_pop = //window.open('','new_pop','width=1050,height=600,fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	window.open('','new_pop','');
	ff = document.frm_popgo;
	ff.redirectURL.value = url;
	ff.news_idx.value = idx;
	ff.action = "/_info/news_pop.asp";
	ff.target = "new_pop";
	ff.submit();
	new_pop.focus();
}

// Ã¢¾÷µ¿¿µ»ó
function pop_go_1(idx){
	//?redirectURL='+url+'&Mode=update&webcode=web&news_idx='+idx
	new_pop = window.open('','new_pop','width=640,height=560,fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
	ff = document.frm_popgo;
//		ff.redirectURL.value = url;
	ff.idx.value = idx;
	//ff.action = "/jumpomovie/jumpo_movie_view.asp";
	ff.action = "/_info/movie_view.asp";
	ff.target = "new_pop";
	ff.submit();
	new_pop.focus();
}
function pop_ace(url,wid,hei){
	var url,wid,hei
 window.open(url,'pop_movie','width='+wid+',height='+wid+',fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
function f_pop_news(url, idx){
	//?redirectURL='+url+'&Mode=update&webcode=web&news_idx='+idx
	new_pop = window.open('','new_pop','width=1050,height=600,fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	ff = document.frm_popgo;
	ff.redirectURL.value = url;
	ff.news_idx.value = idx;
	ff.action = "/_info/news_pop.asp";
	ff.target = "new_pop";
	ff.submit();
	new_pop.focus();
}


function view_adven(WebJOfrsID){
	var xPos = event.pageX || event.x+document.body.scrollLeft;
	var yPos = event.pageY || event.y+document.body.scrollTop;
	var adven_view_zone = eval("document.all.adven_view_zone");
	var XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XMLHTTP.open("get","/_include/pop_maemul.asp?WebJOfrsID="+WebJOfrsID, false);
	XMLHTTP.send();
	var RecvData = XMLHTTP.responseBody;

	var RecvStr = BinDecode(RecvData);

	if (RecvStr != ""){
		adven_view_zone.innerHTML = RecvStr;
		document.all.adven_view_zone.style.display='';
		document.all.adven_view_zone.style.left = xPos + 30;
		document.all.adven_view_zone.style.top = yPos + 10;
	}
}
function view_adven_out(){
	document.all.adven_view_zone.style.display = 'none';
}
function f_div_show(obj,e, x, y){
	var sm = document.getElementById(obj); 
	x = e.clientX+x;
	y = e.clientY+y; 
	with(sm.style){
		display = 'block';
		left = x;
		top  = y;
	}
}
function f_div_shows(obj){
	var sm = document.getElementById(obj);
	with(sm.style){
		display = 'block';
	}
}
function f_div_hide(obj){
	var sm = document.getElementById(obj);
	with(sm.style){
		display = 'none';
	}
}
function f_div_showc(obj,x, y){
	var sm = document.getElementById(obj); 		
	x = (parseInt(document.body.clientWidth)-995)/2-x;
	y = y;

	with(sm.style){
		display = 'block';
		left = x;
		top  = y;
	}
}
function gopage(page_param,page_no,filename,parameters){
	location.href=filename+"?"+page_param+"="+page_no+parameters
}
function NaN2Zero(Num){
	if(isNaN(Num)){
		return 0;
	}else{
		return Num;
	}
}

/*
-----------------------------------------
js_rolling
-----------------------------------------
	#°£´Ü¼³¸í
	<div><img /><img /></div>
	¶ó°í ÇßÀ» °æ¿ì div¾ÈÀÇ img¸¦ À§,¿À¸¥ÂÊ,¾Æ·¡,¿ÞÂÊÀ¸·Î ·Ñ¸µ ½ÃÅ²´Ù.

	# »ç¿ë¹ý


	<div id='div1'><img /><img /><img /><img /><img /></div>
	//Ã³·³ ±¸¼ºÈÄ divÀÇ ³Êºñ¿Í ³ôÀÌ´Â ²À Á¤ÇØÁÖ±â ¹Ù¶ø´Ï´Ù.
	<div>
	 <div>1<img />etc</div>
	 <div>2</div>
	 <div>3</div>
	 <div>4</div>
	</div>
	ÀÌ·¸°Ô ±¸¼ºÇÒ °æ¿ì ¹æÇâÀº À§,¾Æ·¡·Î¸¸ °¡´ÉÇÕ´Ï´Ù

	var roll = new js_rolling('rolling');
	or
	var roll = new js_rolling(document.getElementById('rolling'));
	// idÀÌ¸§À» Àû´øÁö, Á÷Á¢ ´ë»óÀ» Áö¸ñÇØ¼­ ·Ñ¸µ Å¬·¡½º·Î °´Ã¼¸¦ ¸¸µë

	roll.set_direction(4);			// ¹æÇâÀ» ¹Ù²Þ. 1: top, 2:right, 3:bottom 4:left ±×¿ÜÀÇ °æ¿ì µ¿ÀÛ¾ÈÇÔ
	roll.move_gap = 1;				//¿òÁ÷ÀÌ´Â ÇÈ¼¿´ÜÀ§
	roll.time_dealy = 10;			//¿òÁ÷ÀÌ´Â Å¸ÀÓµô·¹ÀÌ
	roll.time_dealy_pause = 5000;	//ÇÏ³ªÀÇ ´ë»óÀÌ »õ·Î ½ÃÀÛÇÒ ¶§ ¸ØÃß´Â ½Ã°£, 0 ÀÌ¸é Àû¿ë ¾ÈÇÔ
	roll.start();					//·Ñ¸µ µ¿ÀÛ

	roll.move_up();					//À§·Î ÇÑ¹ø ·Ñ¸µ (¹æÇâÀÌ top,bottonÀÏ¶§¸¸ µ¿ÀÛ)
	roll.move_right();				//¿À¸¥ÂÊÀ¸·Î ÇÑ¹ø ·Ñ¸µ(¹æÇâÀÌ right,leftÀÏ¶§¸¸ µ¿ÀÛ)
	roll.move_down();				//¾Æ·¡·Î ÇÑ¹ø ·Ñ¸µ(¹æÇâÀÌ top,bottonÀÏ¶§¸¸ µ¿ÀÛ)
	roll.move_left();				//¿ÞÂÊÀ¸·Î ÇÑ¹ø ·Ñ¸µ(¹æÇâÀÌ right,leftÀÏ¶§¸¸ µ¿ÀÛ)

	<ÁÖÀÇ>
	¹æÇâÀÌ top,bottomÀÏ °æ¿ì	³»ºÎ ÅÂ±×´Â block¿ä¼Ò(div)·Î
	¹æÇâÀÌ left,rightÀÏ °æ¿ì	³»ºÎÅÂ±×´Â inline¿ä¼Ò(a,span)À¸·Î
	FF¿¡¼­ top,bottomÀÇ °æ¿ì	inline¿ä¼ÒÀÏ °æ¿ì offsetHeight¸¦ Àß¸ø¾Ë¾Æ¿É´Ï´Ù.



*/
var js_rolling = function(this_s){

	 // ½Ã°£´ÜÀ§´Â ms·Î 1000ÀÌ 1ÃÊ
	 if(this_s.nodeType==1){
		this.this_s = this_s;
	 }else{
		this.this_s = document.getElementById(this_s);
	 }
	 this.is_rolling = false;
	 this.direction = 1;			//1:top, 2:right, 3:bottom, 4:left (½Ã°è¹æÇâ) // 1¹ø°ú 4¹ø¸¸ µÊ
	 this.children = null;
	 this.move_gap = 1;				//¿òÁ÷ÀÌ´Â ÇÈ¼¿´ÜÀ§
	 this.time_dealy = 100;			//¿òÁ÷ÀÌ´Â Å¸ÀÓµô·¹ÀÌ
	 this.time_dealy_pause = 1000;	//ÇÏ³ªÀÇ ´ë»óÀÌ »õ·Î ½ÃÀÛÇÒ ¶§ ¸ØÃß´Â ½Ã°£, 0 ÀÌ¸é Àû¿ë ¾ÈÇÔ
	 this.time_timer=null;
	 this.time_timer_pause=null;
	 this.mouseover=false;
	 this.init();
	 this.set_direction(this.direction);
	}
	js_rolling.prototype.init = function(){
		this.this_s.style.position='relative';
		this.this_s.style.overflow='hidden';
		var children = this.this_s.childNodes;
		for(var i=(children.length-1);0<=i;i--){
			if(children[i].nodeType==1){
				children[i].style.position='relative';
			}else{
				this.this_s.removeChild(children[i]);
			}
		}
		var this_s=this;
		this.this_s.onmouseover=function(){
			this_s.mouseover=true;
			if(!this_s.time_timer_pause){
				this_s.pause();
			}
		}
		this.this_s.onmouseout=function(){
			this_s.mouseover=false;
			if(!this_s.time_timer_pause){
				this_s.resume();
			}
		}
	}
	js_rolling.prototype.set_direction = function(direction){
		this.direction=direction;
		if(this.direction==2 ||this.direction==4){
			this.this_s.style.whiteSpace='nowrap';
		}else{
			this.this_s.style.whiteSpace='normal';
		}
		var children = this.this_s.childNodes;
		for(var i=(children.length-1);0<=i;i--){
			if(this.direction==1){
				children[i].style.display='block';
			}else if(this.direction==2){
				children[i].style.textlign='right';
				children[i].style.display='inline';
			}else if(this.direction==3){
				children[i].style.display='block';
			}else if(this.direction==4){
				children[i].style.display='inline';
			}
		}
		this.init_element_children();
	}
	js_rolling.prototype.init_element_children = function(){
		var children = this.this_s.childNodes;
		this.children = children;
		for(var i=(children.length-1);0<=i;i--){
			if(this.direction==1){
				children[i].style.top='0px';
			}else if(this.direction==2){
				children[i].style.left='-'+this.this_s.firstChild.offsetWidth+'px';
			}else if(this.direction==3){
				children[i].style.top='-'+this.this_s.firstChild.offsetHeight+'px';
			}else if(this.direction==4){
				children[i].style.left='0px';
			}
		}
	}
	js_rolling.prototype.act_move_up = function(){
		for(var i = 0,m=this.children.length;i<m;i++){
			var child = this.children[i];
			child.style.top=(parseInt(child.style.top)-this.move_gap)+'px';
		}
		if((this.children[0].offsetHeight+parseInt(this.children[0].style.top))<=0){
			this.this_s.appendChild(this.children[0]);
			this.init_element_children();
			this.pause_act();
		}
	}
	js_rolling.prototype.move_up = function(){
		if(this.direction!=1&&this.direction!=3){return false;}
			this.this_s.appendChild(this.children[0]);
			this.init_element_children();
			this.pause_act();
	}
	js_rolling.prototype.act_move_down = function(){
		for(var i = 0,m=this.children.length;i<m;i++){
			var child = this.children[i];
			child.style.top=(parseInt(child.style.top)+this.move_gap)+'px';
		}
		if(parseInt(this.children[0].style.top)>=0){
			this.this_s.insertBefore(this.this_s.lastChild,this.this_s.firstChild);
			this.init_element_children();
			this.pause_act();
		}
	}
	js_rolling.prototype.move_down = function(){
		if(this.direction!=1&&this.direction!=3){return false;}
		this.this_s.insertBefore(this.this_s.lastChild,this.this_s.firstChild);
		this.init_element_children();
		this.pause_act();
	}
	js_rolling.prototype.act_move_left = function(){
		for(var i = 0,m=this.children.length;i<m;i++){
			var child = this.children[i];
			child.style.left=(parseInt(child.style.left)-this.move_gap)+'px';
		}
		if((this.children[0].offsetWidth+parseInt(this.children[0].style.left))<=0){
			this.this_s.appendChild(this.this_s.firstChild);
			this.init_element_children();
			this.pause_act();
		}
	}
	js_rolling.prototype.move_left = function(){
		if(this.direction!=2&&this.direction!=4){return false;}
			this.this_s.appendChild(this.this_s.firstChild);
			this.init_element_children();
			this.pause_act();
		}
	js_rolling.prototype.act_move_right = function(){
		for(var i = 0,m=this.children.length;i<m;i++){
			var child = this.children[i];
			child.style.left=(parseInt(child.style.left)+this.move_gap)+'px';
		}
		if(parseInt(this.this_s.lastChild.style.left)>=0){
			this.this_s.insertBefore(this.this_s.lastChild,this.this_s.firstChild);
			this.init_element_children();
			this.pause_act();
		}
	}
	js_rolling.prototype.move_right = function(){
		if(this.direction!=2&&this.direction!=4){return false;}
			this.this_s.insertBefore(this.this_s.lastChild,this.this_s.firstChild);
			this.init_element_children();
			this.pause_act();
		}
	js_rolling.prototype.start = function(){ //·Ñ¸µ ½ÃÀÛ
		var this_s = this;
		this.stop();
		this.is_rolling = true;
		var act = function(){
			if(this_s.is_rolling){
				if(this_s.direction==1){this_s.act_move_up();}
				else if(this_s.direction==2){this_s.act_move_right();}
				else if(this_s.direction==3){this_s.act_move_down();}
				else if(this_s.direction==4){this_s.act_move_left();}
			}
		}
		this.time_timer = setInterval(act,this.time_dealy);
	}
	js_rolling.prototype.pause_act = function(){ //ÀÏ½Ã µ¿ÀÛ
		if(this.time_dealy_pause){
			var this_s = this;
			var act = function(){this_s.resume();this_s.time_timer_pause=null;}
			if(this.time_timer_pause){clearTimeout(this.time_timer_pause);}
			this.time_timer_pause = setTimeout(act,this.time_dealy_pause);
			this.pause();
		}
	}
	js_rolling.prototype.pause = function(){ //ÀÏ½Ã ¸ØÃã
		this.is_rolling = false;
	}
	js_rolling.prototype.resume = function(){ //ÀÏ½Ã ¸ØÃã ÇØÁ¦
		if(!this.mouseover){
			this.is_rolling = true;
		}
	}
	js_rolling.prototype.stop = function(){ //·Ñ¸µÀ» ³¡³¿
		this.is_rolling = false;
		if(!this.time_timer){
			clearInterval(this.time_timer);
		}
		this.time_timer = null
}
