function chatInputCheck(frm)
{
	if(frm.keyword.value == 'Ã¤ÆÃ¹æ °Ë»ö' || frm.keyword.value=='')
	{
		alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
		frm.keyword.focus();
		return false;
	}
}

// ÄíÅ° »ý¼º ¹× È®ÀÎ
function getCookie(name){
	var nameOfCookie = name + "="; 
	var x = 0; 
	while ( x <= document.cookie.length ){ 
		var y = (x+nameOfCookie.length); 
		if ( document.cookie.substring( x, y ) == nameOfCookie ){ 
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
			endOfCookie = document.cookie.length; 
			return unescape( document.cookie.substring( y, endOfCookie ) ); 
		}
		x = document.cookie.indexOf( " ", x ) + 1; 
		if ( x == 0 ) 
		break; 
	} 
	return ""; 
}

function setCookie(name, value, expiredays){
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name+"="+escape( value )+"; path=/;expires="+todayDate.toGMTString()+";"
}

//·¹ÀÌ¾î ¹è³Ê(¿­±â,´Ý±â) ÇÔ¼ö
function divbanner_open(){
	if(getCookie("divbanner") != "no"){
		divbanner.style.display = "block";
	}
}

function divbanner_close(today){
	divbanner.style.display = "none";
	if(today=="today"){
		setCookie("divbanner", "no", 1);
	}
}

function funSetCookie(){
	document.all['alramB'].style.visibility = 'hidden';
	setCookie( 'alramBanner', 'yes', 1 );
}
function setCookie( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';'
}

function alramBRC(){	
	// ÃÊ±â Âß ¿Ã¶ó¿À´Â ´À³¦...
	alramB.style.top = document.body.clientHeight;
	alramB.style.left = 0;
	alramB.style.visibility = 'visible';
	SSADMove2();
}

function SSADMove2(){
	var yBannerPos;
	var interval = 30;
	var SetValue = 0;
	var leftMargin = 0;
	yBannerPos = parseInt(alramB.style.top, 10);
	leftMargin = (document.body.clientWidth - 800) / 2
	if(leftMargin < 163) {
		alramB.style.left = leftMargin+document.all('main').offsetWidth-(163-leftMargin);
	}else{
		alramB.style.left = leftMargin+document.all('main').offsetWidth;
	}
	if (yBannerPos > document.body.clientHeight -100){
		SetValue = parseInt(alramB.style.top, 10) - 2;
		alramB.style.top = SetValue;
		setTimeout ('SSADMove2()',interval)
	}
}

function make_win2(src, name, width, height, flag) {
	if (flag) {
		scrollbar_option = 'yes';
	}else {
		scrollbar_option = 'no';
	}
	wid = ( screen.availwidth - width ) / 2;
	hei = ( screen.availheight - height ) / 2;
	retval = window.open(src, name, 'scrollbars=' + scrollbar_option + ', resize=no, width=' + width + ',height=' + height + ',top=' + hei + ',left=' + wid);
	retval.focus();
	return retval;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function gomm() { location.href='http://adult.geopia.com'; }
MM_reloadPage(true);

// ¿À¸¥ÂÊ ¹è³Ê ½ºÄÚ·Ñ¸µ º£³Ê
function LlayerRC(){
	document.all('LlayerRD').style.top = 107;
	document.all('LlayerRD').style.left = document.all('main').offsetLeft-105;
	document.all('LlayerRD').style.visibility='visible';
	setTimeout('LlayerRC()',100);
}

// For Windows XP SP2
function browserVersion(){
	var tmp_MSIE = window.navigator.userAgent.indexOf("MSIE");
	if(tmp_MSIE && window.navigator.userAgent.indexOf("SV1") > tmp_MSIE ){
		return true;
	}else{
		return false;
	}
}

function checkControl(){
	var isErr = false;
	try{
		geoLauncher.GeoPopupAllow( "*.geopia.com|*.fian.co.kr|*.loveting.co.kr|*.yes4989.com|*.ance.co.kr|*.infomaster.co.kr" );
	}catch(err){}
}
function isSP2(){
	var xpie_SP2 = browserVersion();
	if(xpie_SP2 == true){
		checkControl();
	}
}
/// For Windows XP SP2 ///

// ÇÁ¸®¹Ì¾ö È¸¿ø Å»Åð º£³Ê ÇÔ¼ö
function funWithdraw(){
	var f = document.withdraw;
	if(confirm("ÇÁ¸®¹Ì¾ö È¸¿øÀ» Å»ÅðÇÏ½Ã°Ú½À´Ï±î?")){	
		f.submit();
	}
}
// ¿À¸¥ÂÊ ½ºÅ©·Ñ º£³Ê //

//Ã¤ÆÃ¹æ°Ë»ö
function _chkForm(frm){
	if(frm.keyword.value == 'Ã¤ÆÃ¹æ °Ë»ö' || frm.keyword.value==''){
		alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
		frm.keyword.focus();
		return false;
	}
}

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];}
}

/* XMLHttpRequest ¿¬°á¼³Á¤ ½ÃÀÛ*/
var xmlHttp;
var xmlHttp1;

function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}
    
function startRequest(cate1,cate2) {
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange;
	var str = "?cate1="+cate1;
	str += "&cate2="+cate2;
	xmlHttp.open("GET", "../include/main_chat.php"+str, true);
    xmlHttp.send(null);
}

function handleStateChange() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            document.getElementById("main_chat_list").innerHTML = xmlHttp.responseText;
        }
    }
}

function createXMLHttpRequest1() {
    if (window.ActiveXObject) {
        xmlHttp1 = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
        xmlHttp1 = new XMLHttpRequest();
    }
}

function startRequest1(cate1) {
    createXMLHttpRequest1();
    xmlHttp1.onreadystatechange = handleStateChange1;
	var str = "?cate1="+cate1;
	xmlHttp1.open("GET", "../include/main_chat_cate.php"+str, true);
    xmlHttp1.send(null);
}

function handleStateChange1() {
    if(xmlHttp1.readyState == 4) {
        if(xmlHttp1.status == 200) {
            document.getElementById("main_chat_cate2").innerHTML = xmlHttp1.responseText;
        }
    }
}

function make_win(src, name, width, height, flag) {
	if (flag) {
		scrollbar_option = 'yes';
	}else {
		scrollbar_option = 'no';
	}
	retval = window.open(src, name, 'scrollbars=' + scrollbar_option + ', resize=no, width=' + width + ',height=' + height);
	retval.focus();
	return retval;
}

function open_join() {
	return make_win('https://addusrs.geopia.com:448/?vfrom=g','join_win',772,580,true);
	//return make_win('http://addusr.geopia.com/register/join1.ggi','join_win',772,580,true);
}

function open_idpass() {
	//window.open('http://chat.geopia.com/login_pass_01.ggi','login_pass','width=400; height=260')
	return make_win2('http://login.geopia.com/geopia/login_pass_01.ggi','login_pass',400,260,true);	
}	

function open_privacy_policy() {
	return make_win('http://www.geopia.com/privacy/privacy.html', 'private', 597, 650, true);
}

function open_company() {
	return make_win('http://www.geopia.com/company/home.ggi?visitfrom=geo', 'company', 771, 604, true);
}

function open_recruit() {
	return make_win('http://www.geopia.com/company/company4_3.ggi?visitfrom=geo', 'company', 771, 604, true);
}	

function noemailpop(url,width,height){
	wid = ( screen.availwidth - width ) / 2;
	hei = ( screen.availheight - height ) / 2;
	size = 'width=' + width + ',height=' + height + ',top=' + hei + ',left=' + wid;
	etc = size + ',resizable=no,scrollbars=no';
	window.open(url,'noemailpop',etc);
}

function use_agree(){
	noemailpop("http://www.geopia.com/privacy/useAgree.ggi",550,615)
}

function swindC(url,name,width,height){
	wid = ( screen.availwidth - width ) / 2;
	hei = ( screen.availheight - height ) / 2;
	size = 'width=' + width + ',height=' + height + ',top=' + hei + ',left=' + wid;
	etc = size + ',resizable=no,scrollbars=no,status=no';
	window.open(url,name,etc);
}

// Àå¹Ì²É ±¸¸Å ÆË¾÷
function buyRoseOpen(){
	swindC('http://chat.geopia.com/payment/rose/buyRose.php','buyRosePop',550,435);
}

function setCookie(name, value, expiredays){
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name+"="+escape( value )+"; path=/;expires="+todayDate.toGMTString()+";"
}

function saveid_func(userid, ip){
	var chk = document.login_form.saveid.checked;

	if(chk == true && userid && ip){
		document.hidden_save.action = 'include/saveid.php';
		document.hidden_save.mode.value = 'save';
		document.hidden_save.save_id.value = userid;
		document.hidden_save.save_ip.value = ip;
	}else{
		document.hidden_save.action = 'include/saveid.php';
		document.hidden_save.mode.value = 'del';
	}
	document.hidden_save.target = 'hidden_frame';
	document.hidden_save.submit();
}

function MM_showHideLayers() { //v3.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 openChatUserList(roomIdx,nowUser,obj)
{
	if(typeof(document.all.chatUserList) != 'undefined')
	{
		closeChatUserList();
	}

	var height = Math.ceil(nowUser/2)*25+150>400?400:Math.ceil(nowUser/2)*25+150;

	var div = document.createElement('div');
	div.id = 'chatUserList';
	div.style.position = 'absolute';
	div.style.top = getAbsoluteTop(obj)+obj.offsetHeight;
	div.style.left = getAbsoluteLeft(obj)-obj.offsetWidth-580;
	div.style.width = '560px';
	div.style.height = height;
	div.style.zIndex = '9999999';
	div.style.display = 'none';
	document.body.appendChild(div);

	div.innerHTML = "<iframe name='chatUserListFrame' src='http://chat.geopia.com/?view=action&action=chatUserList&roomIdx="+roomIdx+"&nowUserCnt="+nowUser+"' frameborder='0' width='560' height='"+height+"'></iframe>";

	div.style.display = 'block';
}

function closeChatUserList()
{
	var div = document.getElementById('chatUserList');
	document.body.removeChild(div);
}

function getAbsoluteTop(obj)
{
	var curNode = obj;
	var topVal = 0;

	while(curNode.tagName != 'BODY')
	{
		topVal += curNode.offsetTop - curNode.scrollTop;
		curNode = curNode.offsetParent;
	}

	return topVal;
}

function getAbsoluteLeft(obj)
{
	var curNode = obj;
	var leftVal = curNode.offsetWidth;

	while(curNode.tagName != 'BODY')
	{
		leftVal += curNode.offsetLeft;
		curNode = curNode.offsetParent;
	}

	return leftVal;
}

/* XMLHttpRequest ¿¬°á¼³Á¤ ½ÃÀÛ*/
function newXMLHttpRequest(){
	var xmlreq = false;
	if (window.XMLHttpRequest) {
		xmlreq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e1) {
			try {
				xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				//
			}
		}
	}
	return xmlreq;
}

function sendConnect()
{
	REQ = newXMLHttpRequest();
	REQ.onreadystatechange = sendConnectReq;
	REQ.open("POST","ajax/sendConnect.php",true);
	REQ.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	REQ.setRequestHeader("Cache-Control:", "no-cache");
	REQ.setRequestHeader("Pragma:", "no-cache");

	var poststr = "";
	REQ.send(poststr);

	setTimeout("sendConnect()",10000);
}

function sendConnectReq()
{
	if(REQ.readyState == 4)
	{
		if(REQ.status == 200)
		{
			var xmldoc = REQ.responseXML;

			//ÂÊÁö
			try
			{
				memoChk = xmldoc.getElementsByTagName("memoYn").item(0).firstChild.text;

				if(memoChk != 'N')
				{
					swindC("http://nchat.geopia.com/webChat/popup/read_memo.php?number="+memoChk,'_blank',500,310);
				}
			}
			catch(e)
			{}

			// 1:1 Ã¤ÆÃ½ÅÃ»
			try
			{
				inviteChk = xmldoc.getElementsByTagName("invite").item(0).firstChild.text;

				if(inviteChk != 'N')
				{
					swindC("http://nchat.geopia.com/webChat/popup/inviteApply.php?idx="+inviteChk,'_blank',400,325);
				}
			}
			catch(e)
			{}

			// ´ëÈ­¹æ ÃÊ´ë
			try
			{
				chatInviteChk = xmldoc.getElementsByTagName("chatInvite").item(0).firstChild.text;

				if(chatInviteChk != 'N')
				{
					swindC("http://nchat.geopia.com/webChat/popup/chatInviteApply.php?idx="+chatInviteChk,'_blank',400,325);
				}
			}
			catch(e)
			{}
		}
		else
		{
			alert("problem!\\n" + REQ.statusText);
		}
	}
}


function goInvite(inviteIdx)
{
	REQ = newXMLHttpRequest();
	REQ.onreadystatechange = goInviteReq;
	REQ.open("POST","ajax/goInvite.php",true);
	REQ.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	REQ.setRequestHeader("Cache-Control:", "no-cache");
	REQ.setRequestHeader("Pragma:", "no-cache");

	var poststr = "inviteIdx="+inviteIdx;
	REQ.send(poststr);
}

function goInviteReq()
{
	if(REQ.readyState == 4)
	{
		if(REQ.status == 200)
		{
			try
			{
				var xmldoc = REQ.responseXML;

				payCate = xmldoc.getElementsByTagName("payCate").item(0).firstChild.text;
				goUrl = xmldoc.getElementsByTagName("goUrl").item(0).firstChild.text;

				if(payCate == 'N')
				{
					alert('ÃÊ´ëÀÚÀÇ °áÁ¦°¡ ÀÌ·ç¾îÁöÁö ¾Ê¾Ò½À´Ï´Ù.');
				}
				else
				{
					window.open(goUrl);
				}
			}
			catch(e)
			{}
		}
		else
		{
			alert('Problem!');
		}
	}
}

function clickCnt(masterid)
{
	var fn = document.click;
	fn.masterid.value = masterid;
	fn.target = 'hiddenFrame';
	fn.submit();
}

function todayV(userid)
{
	window.open('http://hompy.geopia.com/?masterid='+userid+'&view=todayV','','width=940,height=540');
}

function windowOpen(url,width,height,scroll)
{
	wid = ( screen.availwidth - width ) / 2;
	hei = ( screen.availheight - height ) / 2;
	size = 'width=' + width + ',height=' + height + ',top=' + hei + ',left=' + wid;
	etc = size + ',resizable=no,scrollbars='+scroll;
	window.open(url,'mainpopup',etc);
}

function hompy(userid)
{
	windowOpen('http://hompy.geopia.com/?masterid='+userid,940,540,'no');
}

function chatManager(mode,idx)
{
	var fn = document.manager;

	fn.mode.value = mode;
	fn.idx.value = idx;
	fn.submit();
}

function c()
{
	try{
	for (i = 0; i < 20; i++) eval("this.chatRCF.low.options[0] = null;");

	switch (eval("this.chatRCF.high.selectedIndex"))
	{
		case 1:
			selection = 1;
		
			str1 = new Array();
			str1[0] = '¼ÒºÐ·ù';
			str1[1] = '¼­¿ï';
			str1[2] = '°æ±â';
			str1[3] = 'ÀÎÃµ';
			str1[4] = '´ëÀü';
			str1[5] = '´ë±¸';
			str1[6] = '±¤ÁÖ';
			str1[7] = '¿ï»ê';
			str1[8] = 'ºÎ»ê';
			str1[9] = 'Á¦ÁÖ';
			str1[10] = '°­¿ø';
			str1[11] = 'ÃæÃ»';
			str1[12] = 'Àü¶ó';
			str1[13] = '°æ»ó';
			str1[14] = '¸ðµç Áö¿ª';

			str2 = new Array();
			str2[0] = '1';
			str2[1] = '1';
			str2[2] = '2';
			str2[3] = '3';
			str2[4] = '4';
			str2[5] = '5';
			str2[6] = '6';
			str2[7] = '7';
			str2[8] = '8';
			str2[9] = '9';
			str2[10] = '10';
			str2[11] = '11';
			str2[12] = '12';
			str2[13] = '13';
			str2[14] = '14';
			break;
		
		case 2:
			selection = 1;
		
			str1 = new Array();
			str1[0] = '¼ÒºÐ·ù';
			str1[1] = '10´ë';
			str1[2] = '20´ë';
			str1[3] = '30´ë';
			str1[4] = '40´ë';
			str1[5] = '50´ëÀÌ»ó';
			str1[6] = 'Áß°íµîÇÐ»ý';
			str1[7] = '´ëÇÐ»ý';
			str1[8] = 'Á÷ÀåÀÎ';
			str1[9] = '2535';
			str1[10] = '4050';
			str1[11] = '¸ðµç ¿¬·É';

			str2 = new Array();
			str2[0] = '1';
			str2[1] = '1';
			str2[2] = '2';
			str2[3] = '3';
			str2[4] = '4';
			str2[5] = '5';
			str2[6] = '6';
			str2[7] = '7';
			str2[8] = '8';
			str2[9] = '10';
			str2[10] = '11';
			str2[11] = '12';
			break;
			
		case 3:
			selection = 1;
		
			str1 = new Array();
			str1[0] = '=¼ÒºÐ·ù=';
			str1[1] = 'ÃÊº¸';
			str1[2] = 'µå¶ó¸¶';
			str1[3] = 'English';
			str1[4] = 'À½¾ÇÃã';
			str1[5] = '½Ã»ç°æÁ¦';
			str1[6] = 'ÄÄÇ»ÅÍ';
			str1[7] = '½ºÆ÷Ã÷';
			str1[8] = 'Á¾±³';
			str1[9] = 'À¯¸Ó';
			str1[10] = '¿¬¿¹';
			str1[11] = '¾Ö´Ï¸¸È­';
			str1[12] = '¹®È­¿¹¼ú';
			str1[13] = 'Ã¥ÀÌ¾ß±â';
			str1[14] = 'µ¿È£È¸';

			str1[15] = 'ÀÎÆ÷';

			str2 = new Array();
			str2[0] = '1';
			str2[1] = '1';
			str2[2] = '2';
			str2[3] = '3';
			str2[4] = '4';
			str2[5] = '5';
			str2[6] = '6';
			str2[7] = '7';
			str2[8] = '8';
			str2[9] = '9';
			str2[10] = '10';
			str2[11] = '11';
			str2[12] = '12';
			str2[13] = '13';
			str2[14] = '14';
			str2[15] = '15';
			str2[16] = '16';
			break;
			
		default:
			selection = 0;
			
			str1 = new Array();
			str1[0] = 'ÁÖÁ¦º°';
			
			str2 = new Array();
			str2[0] = 'ÃÊº¸';
	}

	for(i=0; i<str1.length; i++)
	{
		eval("this.chatRCF.low.options[i] = new Option(str1[i], str2[i]);");
	}
	this.chatRCF.low.selectedIndex = selection;
	}catch(e){}
}


function cNew()
{
	try{
	for (i = 0; i < 20; i++) eval("this.chatRCF.low.options[0] = null;");

	switch (eval("this.chatRCF.high.selectedIndex"))
	{
		case 1:
			selection = 0;
		
			str1 = new Array();
			str1[0] = '¼ÒºÐ·ù';
			str1[1] = '¼­¿ï';
			str1[2] = '°æ±â';
			str1[3] = 'ÀÎÃµ';
			str1[4] = '°æ»ó';
			str1[5] = 'ºÎ»ê';
			str1[6] = '´ë±¸';
			str1[7] = '¿ï»ê';
			str1[8] = 'Àü¶ó';
			str1[9] = '±¤ÁÖ';
			str1[10] = 'ÃæÃ»';
			str1[11] = '´ëÀü';
			str1[12] = '°­¿ø';
			str1[13] = 'Á¦ÁÖ';
			str1[14] = 'ÇØ¿Ü';

			str2 = new Array();
			str2[0] = '';
			str2[1] = '¼­¿ï';
			str2[2] = '°æ±â';
			str2[3] = 'ÀÎÃµ';
			str2[4] = '°æ»ó';
			str2[5] = 'ºÎ»ê';
			str2[6] = '´ë±¸';
			str2[7] = '¿ï»ê';
			str2[8] = 'Àü¶ó';
			str2[9] = '±¤ÁÖ';
			str2[10] = 'ÃæÃ»';
			str2[11] = '´ëÀü';
			str2[12] = '°­¿ø';
			str2[13] = 'Á¦ÁÖ';
			str2[14] = 'ÇØ¿Ü';
			break;
		
		case 2:
			selection = 0;
		
			str1 = new Array();
			str1[0] = '¼ÒºÐ·ù';
			str1[1] = '10´ë';
			str1[2] = '20´ë';
			str1[3] = '30´ë';
			str1[4] = '40´ëÀÌ»ó';

			str2 = new Array();
			str2[0] = '';
			str2[1] = '10´ë';
			str2[2] = '20´ë';
			str2[3] = '30´ë';
			str2[4] = '40´ëÀÌ»ó';
			break;
			
		case 3:
			selection = 0;
		
			str1 = new Array();
			str1[0] = '¼ÒºÐ·ù';
			str1[1] = 'ÃÊº¸';
			str1[2] = '°ÔÀÓ';
			str1[3] = '¿Ü±¹¾î';
			str1[4] = 'ÀÎÅÍ³Ý';
			str1[5] = 'Á¾±³';
			str1[6] = 'ÁÖ½Ä/Áõ±Ç';
			str1[7] = 'µð½ÃÀÎ»çÀÌµå';

			str2 = new Array();
			str2[0] = '';
			str2[1] = 'ÃÊº¸';
			str2[2] = '°ÔÀÓ';
			str2[3] = '¿Ü±¹¾î';
			str2[4] = 'ÀÎÅÍ³Ý';
			str2[5] = 'Á¾±³';
			str2[6] = 'ÁÖ½Ä/Áõ±Ç';
			str2[7] = 'µð½ÃÀÎ»çÀÌµå';
			break;

		case 4:
			selection = 0;
		
			str1 = new Array();
			str1[0] = '¼ÒºÐ·ù';
			str1[1] = 'Á¾ÇÕ';
			str1[2] = '°¡¿ä';
			str1[3] = '´í½º';
			str1[4] = 'ÆË/ÀçÁî';
			str1[5] = 'Å¬·¡½Ä';
			str1[6] = '¼ºÀÎ°¡¿ä';

			str2 = new Array();
			str2[0] = '';
			str2[1] = 'Á¾ÇÕ';
			str2[2] = '°¡¿ä';
			str2[3] = '´í½º';
			str2[4] = 'ÆË/ÀçÁî';
			str2[5] = 'Å¬·¡½Ä';
			str2[6] = '¼ºÀÎ°¡¿ä';
			break;
			
		default:
			selection = 0;
			
			str1 = new Array();
			str1[0] = 'Áö¿ªº°';
			
			str2 = new Array();
			str2[0] = '¼­¿ï';
	}

	for(i=0; i<str1.length; i++)
	{
		eval("this.chatRCF.low.options[i] = new Option(str1[i], str2[i]);");
	}
	this.chatRCF.low.selectedIndex = selection;
	}catch(e){}
}




function auto_select(var2) {
	var leng = eval("this.low.options.length");
	for (i = 0; i < leng; i++) {
		if (eval("this.low.options[i].value") == var2) {
			eval("this.low.selectedIndex = " + i);
			break;
		}
	}
}

function category_ok(var1) {
	var d = eval("document." + var1);
	if (d.high.selectedIndex == 0)
	{
		alert("´ëºÐ·ù");
		d.high.focus();
		return false;
	}

	/*if (d.category.selectedIndex == 0)
	{
		alert("¼ÒºÐ·ù¸¦ ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿À.");
		d.category.focus();
		return false;
	}	
	*/
}

// window.open
function openPop(src,target,width,height,scroll)
{
	var wid = (screen.availwidth - width) / 2;
	var hei = (screen.availheight - height) / 2;
	var opt = 'width='+width+',height='+height+',top='+hei+',left='+wid;+',resizable=no,scrollbars='+scroll;
	window.open(src,target,opt);
}

// copyright popup
function copyrightPop(type)
{
	if(type == 'company')
	{
		openPop('http://www.geopia.com/company/home.ggi','company',750,600,'yes');
	}
	else if(type == 'agree')
	{
		openPop('http://www.infomaster.co.kr/infoGuide/agree.php','agree',600,770,'no');
	}
	else if(type =='privacy')
	{
		openPop('http://www.geopia.com/privacy/privacy.html','privacy',597,650,'yes');
	}
	else if(type =='junior')
	{
		openPop('http://www.geopia.com/privacy/junior.ggi','junior',597,650,'yes');
	}
	else if(type == 'noemail')
	{
		openPop('http://www.geopia.com/noemail.ggi','noemail',380,220,'no');
	}
	else if(type == 'ad')
	{
		openPop('http://www.geopia.com/popup/ad_mail.ggi','ad',400,535,'no');
	}
	else if(type == 'recruit')
	{
		openPop('http://www.geopia.com/company/company4_3.ggi?visitfrom=geo','recruit',771,604,'yes');
	}
}

function open_geohome(userid)
{
	if(userid)
	{
		var width=940;
		var height=540;
		wid = ( screen.availwidth - width ) / 2;
		hei = ( screen.availheight - height ) / 2;
		size = 'width=' + width + ',height=' + height + ',top=' + hei + ',left=' + wid;
		etc = size + ',resizable=no,scrollbars=no,status=no';
		reval = window.open('http://hompy.geopia.com/?masterid='+userid,'geoblog',etc);
		reval.focus();
	}
}