//if(!sooheng_id) td_prog_top2.innerHTML = ""


// start.sooheng.com // ºÎÇÏ
if(u.indexOf("start.sooheng.com")>-1) {
	cook_start = getCookie("cook_start")
	if(cook_start!="57") {
		setCookie("cook_start","57",1)
		}
	}


function check_submit() {
        error = ""
        k = form47.key.value
        if(escape(k).indexOf("%u31")>-1) error = "°Ë»ö¾î¿¡ ¿ÀÅ¸°¡ ÀÖ½À´Ï´Ù.\n\nÈ®ÀÎÇÏ½Ã°í ´Ù½Ã ÀÔ·Â¹Ù¶ø´Ï´Ù."

        if(error) alert(error)
        else {
                cat0 = form47.cat1.value
		k = k.replace("_"," ").replace("_"," ").replace("_"," ").replace("_"," ")

                location.href = "/search/"+k+"_"+cat0+"___rday_1.html"
                }
        }


// ÀÎ±âÅ°¿öµå
function print_inki_keyword() {
	str = ""
	cnt = rnum = 0
	cstr = cstr.split(",")

	hot += " µ¶ÈÄ°¨ ±âÇà¹® °¨»ó¹®"

	temp = hot.split(" ")
	for(i=0; i<temp.length; i++) {
		if(str.indexOf(temp[i])==-1 && cnt < 78 && CLen(temp[i])<14) {
			cs = ""
			rnum = parseInt(Math.random()*cstr.length)
			cs = cstr[rnum]
			str += "<A href='/search/"+temp[i]+"_tong___rday_1.html' style='"+cs+"'>"+temp[i]+"</font></font></b></u></a>&nbsp "
			cnt += CLen(temp[i])
			}
		}
	document.write(str)
	}

//º¸¾È ·Î±×ÀÎ
function check_sec() {
	if(login.sec.status) login.action = "http://www.sooheng.com/member/login_check.asp"	// s
	else login.action = "http://www.sooheng.com/member/login_check.asp"
	}


// ·Î±×ÀÎ
function print_login() {
	if(!cook_id) {
		document.write(""
		+"<table width=100% height=110 cellpadding=0 cellspacing=0 background=http://www.happyreport.co.kr/IMG/main/pics/login_bg.gif>"
		+"<FORM name=login method=POST action=http://www.sooheng.com/member/login_check.asp onsubmit='check_login_submit(); return false'>"
		+"<tr><td><img src=http://www.happyreport.co.kr/IMG/main/pics/login_top.gif></tr>"
		+"<tr><td style='padding:0 4' valign=top><center>"
		+"	<table width=100% cellpadding=0 cellspacing=0 border=0>"
		+"	<tr><td height=20 bgcolor=#EFEFEF style='padding:0 5'><font color=#1083C8 style='font-size:10px'>¢º</font> <font color=#1083C8 style='font-family:µ¸¿ò; font-size:11px'>ÀÚ·á¸¸¶¥ ¼öÇà´åÄÄ"
		+"	</table>"

		+"	<table width=180 cellpadding=0 cellspacing=0 border=0>"
		+"	<tr><td height=5>"
		+"	<tr><td style='font-family:µ¸¿ò; font-size:11px; color:#767676'>¾Æ ÀÌ µð <td><input type=text name=id value='"+sooheng_id+"' style='width:75px; height:20px' class=input_gray tabindex=1> <td style='font-size:11px; font-family:µ¸¿ò'><input type=checkbox name=sec id=sec value=1 checked onclick=check_sec()><label for=sec>º¸¾È</label><!--input type=checkbox name=id_save tabindex=3 onclick=\"if(this.status) alert('·Î±×ÀÎµÈ ¾ÆÀÌµð¸¦ ±â¾÷ÇÕ´Ï´Ù.\\n\\n°ø°øÀå¼Ò¿¡¼­´Â »ç¿ëÇÏÁö ¸¶½Ê½Ã¿ä.')\">±â¾ï-->"
		+"	<tr><td style='font-family:µ¸¿ò; font-size:11px; color:#767676'>ºñ¹Ð¹øÈ£ <td><input type=password name=passwd size=10 style='width:75px; height:20px' class=input_passwd tabindex=2> <td><input type=image src=http://www.happyreport.co.kr/IMG/main/pics/btn_login.gif tabindex=4></tr>"
		+"	<tr><td height=5>"
		+"	<tr><td bgcolor=#D6D6D6 height=1 colspan=3></tr>"
		+"	<tr><td height=5>"
		+"	<tr><td colspan=3><center><A href=/member/><font style='font-family:µ¸¿ò; font-size:11px'><b>È¸¿ø°¡ÀÔ</b></font></a> <font color=#C6C6C5>|</font> <A href=/member/loss_pw.asp><font style='font-family:µ¸¿ò; font-size:11px;' color=#252827>ID¡¤ºñ¹Ð¹øÈ£ Ã£±â</font></a>"
		+"	</table>"

		+"<tr><td colspan=9><img src=http://www.happyreport.co.kr/IMG/main/pics/login_bottom.gif></tr>"
		+"</form>"
		+"</table>"
		) }
	else {
		document.write(""
		+"<table width=100% height=110 cellpadding=0 cellspacing=0 background=http://www.happyreport.co.kr/IMG/main/pics/login_bg.gif>"
		+"<tr><td><img src=http://www.happyreport.co.kr/IMG/main/pics/login_top.gif></tr>"
		+"<tr><td style='padding:0 4' valign=top><center>"
		+"	<table width=100% cellpadding=0 cellspacing=0 border=0>"
		+"	<tr bgcolor=#EFEFEF><td height=20><font color=#1083C8 style='font-family:µ¸¿ò; font-size:11px'>¢º "+cook_id
		+"	<td align=right><A href=/member/logout_check.asp><font style='font-family:µ¸¿ò; font-size:11px;' color=#808080>[·Î±×¾Æ¿ô]</a> &nbsp"
		+"	</table>"

		+"	<table width=180 cellpadding=0 cellspacing=0 border=0>"
		+"	<tr><td height=5>"
		+"	<tr><td>ÃæÀüÀÜ¾× : <td><font color=red><b>"+IComma(coin)+"</b></font> ¿ø"
		+"	<tr><td height=5>"
		+"	<tr><td align=right><font color=gray>¦¦¢¹&nbsp<td><A href=/myfolder/cash/cash.asp><u>À¯·á°áÁ¦</u></a> | <a href=/myfolder/log/down.asp><b>´Ù¿îº¸°ü</a>"
		+"	<tr><td height=5>"
		+"	<tr><td bgcolor=#D6D6D6 height=1 colspan=3></tr>"
		+"	<tr><td height=5>"
		+"	<tr><td colspan=3><center> <A href=/myfolder/modify/modify.asp><font style='font-family:µ¸¿ò; font-size:11px;' color=#808080>[Á¤º¸º¯°æ]</a> &nbsp <A href=/myfolder/buy/><font style='font-family:µ¸¿ò; font-size:11px;' color=#808080>[±¸¸Å±â·Ï]</a>"
		+"	</table>"

		+"<tr><td colspan=9><img src=http://www.happyreport.co.kr/IMG/main/pics/login_bottom.gif></tr>"
		+"</form>"
		+"</table>"
		) }
	}



// µ¶ÈÄ°¨ ÀÎ±â Å°¿öµå
function print_hot_doc() {
        cnt = 0
	document.write("<font color=white>")
	cnt_str = 0

        temp = hot_doc.split(" ")
        for(i=0; i<temp.length-1; i++) {
                document.write("<A href=/search/"+temp[i]+"_report_µ¶ÈÄ°¨__rday_1.html style='font-size:11px; color:white; font-family:µ¸¿ò'>"+temp[i] + "</a>")
                cnt += CLen(temp[i])
                if(cnt > 60) i=999
                else document.write(" &nbsp")
                }

        document.write(" &nbsp <A href=/search/_report_µ¶ÈÄ°¨__rday_1.html style='font-size:12px; color:white'><img src=/IMG/pics/search_icon1.gif border=0 align=absmiddle></a>")
        }


// Ä«Å×°í¸®
function print_cats(c,v) {
	
	document.write("<table cellpadding=2 cellspacing=0>")
	document.write("<tr><td><A href=/search/_report_"+c+"__rday_1.html><b>"+c+"</b> <img src=/IMG/pics/category_bul2.gif border=0></a>")
	for(i=0; i<cat.length; i++) {
		cat2 = cat[i].split(",")
		if(!v) v = cat2.length-1
		if(c==cat2[0])
		for(j=1; j<=v; j++) {
			clas = ""
			if(cat2[j].indexOf("$")>-1) {
				clas = "style='color:#0080FF'"
				cat2[j] = cat2[j].replace("$","")
				}

			document.write("<tr><td><A href=/search/_report_"+c+"_"+cat2[j]+"_rday_1.html "+clas+" style='font-size:11px; font-family:µ¸¿ò; color:444444'>"+cat2[j]+"</a>")
			}
		}
	document.write("<A href=/report/etc/category.html title=..more>&nbsp..&nbsp</a>")
	document.write("</table>")

	if(c != "ÀÚÀÛ±âÅ¸") document.write("<td style='padding:0 17'><img src=/IMG/pics/category_line.gif border=0>")
	}



// °øÁö»çÇ×
function print_news() {

	news_num = 4	// Ãâ·Â¼ö

	news_data = news_data.split("|")
         for(i=0; i<news_num; i++) {
                if(i == 0 ) clas = "style='color:#0080FF; font-size:11px; font=family:µ¸¿ò'";
                else clas = "style='color:#777777; font-size:11px; font=family:µ¸¿ò'"

                document.write("<tr><td height=20><font color=#444444 style='font-size:8px'></font> <A href=#null Onclick='open_win("+i+"); return false;' title='"+news_data[i]+"' "+clas+">"+CLen(news_data[i],32)+"</font></a></tr>")
                }
        }

var NS = 0
function open_win(i) {
        NS = i
        window.open("/main/news_window.html","openWin","width=200,height=300,status=yes");
        }



// ÆË¾÷Ã¢
popup = getCookie("popup1")
if(!popup) setTimeout("open_popup()",1500)

function open_popup() {
	// ÆË¾÷ÁßÁö/½ÃÀÛ½Ã popup123 º¯°æ (=popup.html ¿¡¼­µµ º¯°æ)
        //window.open("./popup.html","popup","width=100,height=100,status=yes");
        }

 
