<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//-------------------------------------------------------------------------------------------------------------------------
/**
*	휴대폰 번호보호서비스(가입화면노출)
*	/bill/ 하단에 페이지에서 창을 닫을경우 가입화면 노출
*	서정환 09.12.29
* end : 20101007
*/
/*var isBillClick = false;
window.onunload = function()
{
	var _url = location.href;
	var _readyState =  document.readyState;

	var _flag = true;
	if(_url.indexOf('/bill/cmcharge/step1_receipt_tax.jsp') != -1)
		_flag = flase;

	if(_url.indexOf('thinkpool.com/bill/') != -1 &amp;&amp; _url.indexOf("step2") == -1 &amp;&amp; _flag)
	{
		 if(_readyState != 'loading')
		 {
		 	if(!isBillClick)
		 	{
				cellSignJoinPOP('21746300', '2', '2', 'A1');
			}
		}
	}
}*/

var signurl = "https://sign.thinkpool.com";
function getCookie( name ){
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x &lt;= 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 );

	if( name == "thinkpoolcode" ){
		/* KJH :: 씽크풀 개편으로 인해 최근검색 종목코드를 domain=.thinkpool.com으로 변경하고 기존 최근검색 쿠키를 삭제. */
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";domain=.thinkpool.com;";
		// 기존에 운영하던 쿠키 삭제.
		var todayDate2 = new Date();
		todayDate2.setDate( todayDate2.getDate() - 1 );
		document.cookie = name + "= ; path=/; expires=" + todayDate2.toGMTString() + ";domain=www.thinkpool.com;";
	}else{
		if (expiredays == 0){
			document.cookie = name + "=" + escape( value ) + "; path=/;";
		}else{
			document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";";
		}
	}
}

function setCookie_today( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	todayDate.setHours(0,0,0,0);

	if (expiredays == 0)
		document.cookie = name + "=" + escape( value ) + "; path=/;"
	else
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function setCookie_yoo( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setHours( todayDate.getHours() + 5 );

	if (expiredays == 0)
		document.cookie = name + "=" + escape( value ) + "; path=/;"
	else
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function setCookie_hour( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setHours( todayDate.getHours() + 1 );

	if (expiredays == 0)
		document.cookie = name + "=" + escape( value ) + "; path=/;"
	else
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
 
function getLoginFlag() {

 	var loginFlag = getHtml("http://www.thinkpool.com/login/LoginAuthFlag.jsp","get","");

 	if (loginFlag.indexOf("N") &gt; -1) {
		return "N";
	} else {
		return "Y";
	}
} 

function idsafe_service()
{
	//var args = arguments;
	window.open('http://data.thinkpool.com/idsafe/login_check_redirect.jsp','idsafe','scrollbars=yes,titlebar=no,status=no,resize=no,width=300,height=300');
}

function investNote()
{
	window.open('http://sbox.thinkpool.com/stockbox/joinpop.do?sitecode=002','investNote','scrollbars=yes,titlebar=no,status=no,resize=no,width=508,height=850');
}

function idsafe_service_join()
{
	//var args = arguments;
	window.open('http://data.thinkpool.com/idsafe/login_check_redirect.jsp','idsafe','scrollbars=yes,titlebar=no,status=no,resize=no,width=300,height=300');
}

function cellSignJoinPOP(siteCode, ctg, subNo, productId)
{
	window.open('http://mmng.kr/CellService.do?method=service&amp;siteCode='+siteCode+'&amp;pid='+productId+'&amp;ctg='+ctg+'&amp;subNo='+subNo,'cellService','scrollbars=no,titlebar=no,status=no,resize=no,width=440,height=300');
}
//-------------------------------------------------------------------------------------------------------------------------

var recomm_msg = "이글에 대해 이미 의견을 주셨습니다.";
var recomm_expires_date = 1;
var imgUrl = "http://img.thinkpool.com";
var isXp = navigator.userAgent.indexOf('windows NT 5.1') &gt; 0;
var isIE70 = navigator.userAgent.indexOf('MSIE 7.0') &gt; 0;
var gethtml_str = "";
var rslt = "";

function getHtml(p_url,p_method,p_param) {

 var ret = "";
 var AjaxObj = new Ajax.Request(p_url,{method: p_method,parameters: p_param,asynchronous:false,onSuccess:getHtmlRet});

 return gethtml_str;

}


function getFlashInstance(flashID)
{
	if(navigator.appName.indexOf("Microsoft") != -1)
	{
		return window[flashID];
	}
	else
	{
		return document[flashID];
	}
}


function checkBytes(lim)
{ //바이트 제한 숫자를 매개변수로 받음
	frm = document.f; //폼객체
	v = frm.memo.value; //입력값
	re0=/[a-z]|[0-9]/gi; //영숫자 패턴
	re1=/[ㄱ-힣]/g; //한글패턴
	v0=v.match(re0); //매치확인
	v1=v.match(re1); //매치확인
	if(v0 != null) v0 = v0.length; //바이트 구함
	if(v1 != null) v1 = v1.length; //바이트 구함
	tot = v0 + (v1 * 2); //합을 구함
	if(tot &lt;= lim)
	{ //한계수치이내인경우 바이트표시
		//f.t1.value=tot;
		$('viewByte').innerText = tot;
	}
	else
	{ //한계를 초과하면 경고문 출력
		alert('한글은 500자 영문은 1000자까지 가능합니다.');
		frm.memo.select(); //입력값을 선택
	}
}

function getHtmlRet (request) {

	gethtml_str = request.responseText;
}


function TM_preloadImg() { //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=TM_preloadImg.arguments; for(i=0; i&lt;a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function TM_imgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i&lt;a.length&amp;&amp;(x=a[i])&amp;&amp;x.oSrc;i++) x.src=x.oSrc;
}

function TM_findImg(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))&gt;0&amp;&amp;parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&amp;&amp;d.all) x=d.all[n]; for (i=0;!x&amp;&amp;i&lt;d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&amp;&amp;d.layers&amp;&amp;i&lt;d.layers.length;i++) x=TM_findImg(n,d.layers[i].document);
  if(!x &amp;&amp; d.getElementById) x=d.getElementById(n); return x;
}

function TM_imgView() { //v3.0
  var i,j=0,x,a=TM_imgView.arguments; document.MM_sr=new Array; for(i=0;i&lt;(a.length-2);i+=3)
   if ((x=TM_findImg(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function goUrl(combo) {

	if (combo.value != "")
		location.href = combo.value;

}

function setItemCode(code){
	var itemcode = "";
	var str = "";

	itemcode = getCookie("thinkpoolcode");

	itemcode = Replace(itemcode,code,'');

	str = code + itemcode;

	if (str.length &gt; 162) {
		str = str.substring(0,162);
	}
	
	setCookie("thinkpoolcode",str,180);
	
}

function delItemCode(code){
	
	var itemcode = "";
	itemcode = getCookie("thinkpoolcode");
	itemcode = Replace(itemcode,code,'');
	setCookie("thinkpoolcode",itemcode,180);

}

function goItemAnal(f) {



	if (f.code.value == '' || f.code.value == '종목명/코드') {
		alert('종목 or 코드를 입력하세요!');
		f.code.focus();
		return false;
	}else {

		f.submit();
	}



}


function realTimeService(f) {
	if (f.code.value == '' || f.code.value == '**종목명/코드**') {
		alert('종목명이나 코드를 입력하세요!');
		f.code.focus();
		return;
	}
	var code = f.code.value;
	if (f.whr[0].checked) {
		window.open("/itemanal/item119/connect.jsp?code=" + code,"item_119","width=240,height=400,resizable=no,scrollbars=auto");
	} else if (f.whr[1].checked) {
		quick_srch_iframe_side.location.replace("/itemanal/quick/quick_item_srch.jsp?code=" + code);
	} else if (f.whr[2].checked) {
		document.location.href = "/itemanal/connect.jsp?menu=/i/signal&amp;code=" + code;
		window.close();
	}
}
function realTimeServiceN(f){
	if (f.code.value == '' || f.code.value == '**종목명/코드**') {
		alert('종목명이나 코드를 입력하세요!');
		f.code.focus();
		return;
	}
	var code = f.code.value;
	if (f.whr[0].checked) {
		document.location.replace("/itemanal/item119/connect.jsp?code=" + code);
	} else if (f.whr[1].checked) {
		quick_srch_iframe.location.replace("/itemanal/quick/quick_item_srch.jsp?code=" + code);
	} else if (f.whr[2].checked) {
		opener.location.href = "/itemanal/connect.jsp?menu=/i/signal&amp;code=" + code;
		window.close();
	}
}
function quick_anal_pop(code,name) {
	window.open('/itemanal/quick/quick_item_anal.jsp?code=' + code + '&amp;name=' + name,'quick_item_anal','scrollbars=no,titlebar=no,status=no,resize=no,width=660,height=620')
	document.searchForm.code.value = "";
}
function signalFocus2(obj) {
	if (obj.value == '**종목명/코드**') {
		obj.value = "";
	}
}
function signalBlur2(obj) {
	if (obj.value == '') {
		obj.value = "**종목명/코드**";
	}
}
function iscoreSrch(url) {
	quick_srch_iframe_side.location.replace("");
	document.location.href = url;
}



function open_medical_room(room_no,f)
{
	var url = "/medical/attend/room.jsp?room_no=" + room_no +"&amp;flag=" + f;
	window.open( url, "medical_room_pop", "width=300,height=200,scrollbars=no,resizable=yes");
}

function open_flive(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;authpos=" +smsAuthPosNum() ;
	window.open( url, "flive_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_ex(gb,seqno,gate)
{
	var url = "/live/sms/mylist_form.jsp?gate=" + gate + "&amp;gb=" + gb +"&amp;seqno=" + seqno;
	window.open( url, "flive_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_mode(gb,seqno,mode)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=" + mode;
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_free(gb,seqno,mode,pos)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=free&amp;pos="+pos+"&amp;authpos=" +smsAuthPosNum();
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_free_log(gb,seqno,mode,pos,gcode)
{
	var url = "/live/sms/mylist_form.jsp?Gcode="+gcode+"&amp;gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=free&amp;pos="+pos+"&amp;authpos=" +smsAuthPosNum();
	window.open( url, "flive_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_miraeasset(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;mode=miraeasset";
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_sign(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;mode=sign";
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_flive_settle_mem(penid)
{
	var url = "/live/settle/f_settle_mem.jsp?penid=" + penid;
	window.open( url, "f_settle_mem", "width=326,height=270,scrollbars=no,resizable=no");
}

function open_mlive(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;authpos=" +smsAuthPosNum() ;
	window.open( url, "mlive_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_mlive_mode(gb,seqno,mode)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=" + mode;
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_mlive_free(gb,seqno,mode,pos)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=free&amp;pos="+pos;
	window.open( url, "mlive_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_live_free(gb,seqno,mode,pos)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=free&amp;pos="+pos+"&amp;authpos=" +smsAuthPosNum();


	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_live_settle_mem(penid)
{
	var url = "/live/settle/live_settle_mem.jsp?penid=" + penid;
	document.location.href = url;
}

function open_live_view(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;authpos=" +smsAuthPosNum() ;
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function openLiveViewNewsPim(gb,seqno)
{
	var url = "/concert/newspim/live/pageJoin.jsp?nextpg=live&amp;gb=" + gb +"&amp;seqno=" + seqno + "&amp;authpos=" +smsAuthPosNum() ;
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}


function open_live_viewMode(gb,seqno,mode)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno +"&amp;mode=" + mode;
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_mlive_miraeasset(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;mode=miraeasset";
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_mlive_sign(gb,seqno)
{
	var url = "/live/sms/mylist_form.jsp?gb=" + gb +"&amp;seqno=" + seqno + "&amp;mode=sign";
	window.open( url, "live_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_medical_settle_mem(grp_gb,penid)
{
	var url = "/medical/settle/settle_mem.jsp?grp_gb=" + grp_gb + "&amp;penid=" + penid;
	window.open( url, "medical_settle_mem", "width=326,height=270,scrollbars=no,resizable=no");
}

function open_msvc_settle_mem(penid)
{
	var url = "/Club/msvc/settle_mem.jsp?penid=" + penid;
	window.open( url, "msvc_settle_mem", "width=326,height=270,scrollbars=no,resizable=no");
}

function open_mship_settle_mem(penid,srvtype,term)
{
	var url = "/live/memsvc/settle/settle_mem.jsp?penid=" + penid + "&amp;srvtype=" + srvtype +"&amp;term=" + term;
	window.open( url, "memsvc_settle_mem", "width=326,height=270,scrollbars=no,resizable=no");
}

function open_smsclub_settle_mem(penid)
{
	var url = "/smsclub/settle/settle_mem.jsp?penid=" + penid;
	window.open( url, "smsclub_settle_mem", "width=500,height=270,scrollbars=no,resizable=no");
}

function open_smsclub_settle_mem(penid, term)
{
	var url = "/smsclub/settle/settle_mem.jsp?penid=" + penid + "&amp;term=" + term;
	window.open( url, "smsclub_settle_mem", "width=500,height=270,scrollbars=no,resizable=no");
}

function smsclubRegist(penid){
	OpenPublic('/smsclub/pop/sms_input.jsp?penid='+penid+'&amp;authpos='+smsAuthPosNum(),'smsclub_myset','420','400','no','no');
	return;
}

function smsclubKaKaoRegist(penid){
	OpenPublic('/smsclub/pop/kakaotalk_input.jsp?penid='+penid,'smsclubkakaotalk','420','400','no','no');
	return;
}

function open_smsclub_view(seqno)
{
	var url = "/smsclub/pop/smsclubView.jsp?seqno=" + seqno;
	window.open( url, "smsclub_room", "width=230,height=130,scrollbars=no,resizable=yes");
}

function open_sponcircle(dbName, sn, penid, nextUrl)
{
	var url = "/itemanal/invest/sponcircle/popup.jsp?number=" + sn + "&amp;name=" + dbName+"&amp;penid="+penid;
	if(nextUrl != undefined)
	{
		url+= '&amp;nextUrl='+nextUrl;
	}
	return window.open( url, "sponcircle", "width=350,height=270,scrollbars=no,resizable=no");
}


function open_clinic_settle_mem(dbName, sn)
{
	var url = "/itemanal/invest/clinic_settle_pre.jsp?number=" + sn + "&amp;name=" + dbName;
	window.open( url, "invest_bill", "width=350,height=270,scrollbars=no,resizable=no");
}

function open_arsmship_settle_mem(penid,srvtype,term)
{
	var urlstr;

	if(srvtype=="F"){
		urlstr = "/spcenter/mship/settle/settle_mem.jsp?penid=" + penid + "&amp;srvtype=" + srvtype +"&amp;term=" + term;
	}else{
		urlstr = "/future/arsmship/settle/settle_mem.jsp?penid=" + penid + "&amp;srvtype=" + srvtype +"&amp;term=" + term;
	}
	window.open( urlstr, "memsvc_settle_mem", "width=326,height=386,scrollbars=no,resizable=no");
}

function open_clubbiz_settle_mem(cname,userid,term)
{
	var url = "/club/biz/settle/settle_mem.jsp?cname=" + cname + "&amp;userid=" + userid +"&amp;term=" + term;
	window.open( url, "memsvc_settle_mem", "width=326,height=390,scrollbars=no,resizable=no");
}

function open_clubbiz_babofund_settle_mem(cname,userid,term,chkname)
{
	var url = "/club/biz/settle/settle_mem_babofund.jsp?cname=" + cname + "&amp;userid=" + userid +"&amp;term=" + term +"&amp;chkname="+chkname;
	window.open( url, "memsvc_settle_mem", "width=326,height=390,scrollbars=no,resizable=no");
}

function open_clubbiz_settle_mem_aca(cname,userid,term)
{
	var url = "/club/biz/settle/settle_mem_aca.jsp?cname=" + cname + "&amp;userid=" + userid +"&amp;term=" + term;
	window.open( url, "memsvc_settle_mem_aca", "width=326,height=390,scrollbars=no,resizable=no");
}

function open_dseeker_settle_mem(penid)
{
	var url = "/dseeker/settle/dseeker_settle_mem.jsp?penid=" + penid;
	window.open( url, "dseeker_settle_mem", "width=326,height=270,scrollbars=no,resizable=no");
}
function open_dseeker_settle_mem_close()
{
	alert("현재 쪽집게 서비스를 가입하실 수 없습니다.");
}

function open_luxc_settle_mem(penid)
{
	var url = "/luxc/settle/luxc_settle_mem.jsp?term=1&amp;penid=" + penid;
	window.open( url, "luxc_settle_mem", "width=320,height=355,scrollbars=no,resizable=no");
}

function open_rummor_settle_mem(mtype,num,code,page)
{
	var url = "/newsnnews/rummor/settle_mem.jsp?mtype=" + mtype + "&amp;num=" + num + "&amp;code=" + code + "&amp;page=" + page;
	window.open(url, "rummor_settle_mem", "width=350,height=270,scrollbars=no,resizable=no");
}

function global_serch()
{
	window.open("http://concert.thinkpool.com/gsearch/globalSearch_pop.asp", "g_serch", "width=650,height=700,scrollbars=yes,resizable=no");
}

function OnlyNumber()
{
	if((event.keyCode&lt;48)||(event.keyCode&gt;57))
	event.returnValue=false;
}

function checkCode(v)
{
  for(i=0;i&lt;v.length;i++) {
    if (v.substring(0,1) &lt; '0' || v.substring(0,1) &gt; '9')
       return false;
  }
  return true;
}

function itemFocus(obj) {

	if (obj.value == '종목정보') {

		obj.value = "";
	}

}

function itemBlur(obj) {

	if (obj.value == '') {

		obj.value = "종목정보";
	}

}

function formchk(f) {

	if (f.code.value == '종목정보') {
		top.location.href = 'http://www.thinkpool.com/analysis/main_anal.jsp?m=m1&amp;name=m1s1&amp;menu=item_anal&amp;sub=m1s1';
		return;
	}
	if (f.code.value == '') {

		alert('종목 or 코드를 입력하세요!');
		f.code.focus();
		return false;

	} else {

		window.location.href="http://www.thinkpool.com/analysis/searchCode.jsp?code="+f.code.value.toUpperCase();
	}
}

function formchk2(f) {

	if (f.code.value == '종목정보') {
		top.location.href = 'http://www.thinkpool.com/analysis/main_anal.jsp?m=m1&amp;name=m1s1&amp;menu=item_anal&amp;sub=m1s1';
		return;
	}

	if (f.code.value == '') {

		alert('종목 or 코드를 입력하세요!');
		f.code.focus();
		return false;

	} else {

		parent.location.href="http://www.thinkpool.com/analysis/searchCode.jsp?code="+f.code.value.toUpperCase();
	}
}

function formchk_www(f) {

	if (f.code.value == '종목정보') {
		top.location.href = 'http://www.thinkpool.com/analysis/main_anal.jsp?m=m1&amp;name=m1s1&amp;menu=item_anal&amp;sub=m1s1';
		return;
	}

	if (f.code.value == '') {

		alert('종목 or 코드를 입력하세요!');
		f.code.focus();
		return false;

	} else {

		parent.location.href="http://www.thinkpool.com/analysis/searchCode.jsp?code="+f.code.value.toUpperCase();
	}
}

function OpenRealName(menu) {
   	window.open("http://www.thinkpool.com/customer/usermenu/real_name_input.jsp?menu="+menu,"realname",'width=335,height=230,resizable=no,scrollbars=no');
   	return;
}

function OpenWindow(url) {
   	window.open(url,"home",'width=700,height=500,resizable=yes,scrollbars=yes,top=100,left=100');
   	return;
}

function OpenDel(url) {
   	window.open(url,"del",'width=298,height=188,resizable=no,scrollbars=no,top=300,left=300');
   	return;
}

function OpenPrint(url) {
   	window.open(url,"print",'width=700,height=600,resizable=yes,toolbar=yes, menubar=yes, scrollbars=yes,top=100,left=300');
   	return;
}

function LogPop(url) {
   	window.open(url,"logpop",'width=300,height=190,resizable=no,scrollbars=no,top=300,left=300');
   	return;
}

function OpenConf(url) {
	    window.open(url,"recomm",'width=300,height=150,resizable=no,scrollbars=no,top=300,left=300');
		return;
}

function OpenConf2(code,data) {
	if(data == 'Y')
		window.open("/myset/bbset/item_form.jsp?code=" + code,"check",'width=340,height=360,resizable=no,scrollbars=no,top=300,left=300');
	if(data == 'Y|ancode')
		window.open("/myset/bbset/item_form.jsp?code=" + code + "&amp;ancode=Y","check",'width=340,height=360,resizable=no,scrollbars=no,top=300,left=300');
	else if(data =='N')
		window.open("/myset/bbset/item_regist.jsp?code=" + code + "&amp;del=del","check",'width=340,height=360,resizable=no,scrollbars=no,top=300,left=300');

	return;
}

function OpenConf2_log(code,data,gcode) {
	if(data == 'Y')
		window.open("/myset/bbset/item_form.jsp?Gcode="+gcode+"&amp;code=" + code,"check",'width=340,height=360,resizable=no,scrollbars=no,top=300,left=300');
	if(data == 'Y|ancode')
		window.open("/myset/bbset/item_form.jsp?Gcode="+gcode+"&amp;code=" + code + "&amp;ancode=Y","check",'width=340,height=360,resizable=no,scrollbars=no,top=300,left=300');
	else if(data =='N')
		window.open("/myset/bbset/item_regist.jsp?Gcode="+gcode+"&amp;code=" + code + "&amp;del=del","check",'width=340,height=360,resizable=no,scrollbars=no,top=300,left=300');

	return;
}

function OpenChildS(s_url) {
   //window.open(s_url, "siseWin", "height=600,width=960,resizable=1,status=1,menubar=0,toolbar=1,screenX=20,screenY=10,scrollbars=1");
   window.open("http://stock.koscom.co.kr/kse_sise/kse_totalsise.html", "siseWin", "");
   return;
}

function OpenChat() {
	window.open('http://www.thinkpool.com/etc/chat/chat.jsp','chat','toolbar=no,status=no,width=800,height=600,directories=no,scrollbars=no,location=no,resizable=yes,menubar=no');
	return;
}

function OpenChatWeb() {
	window.open("http://www.thinkpool.com/chat/webchat.jsp","chatweb","toolbar=no,width=260,height=200,directories=no,status=no,scrollbars=no,resize=no,menubar=no")
	return;
}

function OpenChatWebClub(userid,type,code,name) {
	window.open('http://www.thinkpool.com/chat/webchat.jsp?type=' + type + '&amp;code=' + code + '&amp;name=' + Replace(name,'+','%2B'),'chat','toolbar=no,width=260,height=200,directories=no,status=no,scrollbars=no,resize=no,menubar=no')
	return;
}

function OpenChatBroad() {
	var width_ = 440;
	var height_ = 135;
	var left_ = screen.width-10;
	var top_ = screen.height-63;
	left_ = left_/2 - (width_/2);
	top_ = top_/2 - (height_/2);
	window.open('http://www.thinkpool.com/chat/anchor_chat.jsp','anchor_chat','toolbar=no,width='+width_+',height='+height_+',left='+left_+',top='+top_+',directories=no,status=no,scrollbars=no,resize=no,menubar=no')
	return;
}

function OpenChatBroadClub(userid,type,code,name) {
	var width_ = 440;
	var height_ = 135;
	var left_ = screen.width-10;
	var top_ = screen.height-63;
	left_ = left_/2 - (width_/2);
	top_ = top_/2 - (height_/2);
	window.open('http://www.thinkpool.com/chat/anchor_chat.jsp?type=' + type + '&amp;code=' + code + '&amp;name=' + Replace(Replace(name,'+','%2B'),'&amp;','%26'),'anchor_chat','toolbar=no,width='+width_+',height='+height_+',left='+left_+',top='+top_+',directories=no,status=no,scrollbars=no,resize=no,menubar=no')
	return;
}

function OpenChatBroadClub2(sn,type,code,name) {
	var width_ = 440;
	var height_ = 135;
	var left_ = screen.width-10;
	var top_ = screen.height-63;
	left_ = left_/2 - (width_/2);
	top_ = top_/2 - (height_/2);
	window.open('http://www.thinkpool.com/chat/anchor_chat.jsp?roomnum=' + sn + '&amp;type=' + type + '&amp;code=' + code + '&amp;name=' + Replace(Replace(name,'+','%2B'),'&amp;','%26'),'anchor_chat','toolbar=no,width='+width_+',height='+height_+',left='+left_+',top='+top_+',directories=no,status=no,scrollbars=no,resize=no,menubar=no')
	return;
}

function OpenChatWebClub_G(userid,type,code,name) {
	window.open('http://www.thinkpool.com/chat/webchat_club.jsp?type=' + type + '&amp;code=' + code + '&amp;name=' + Replace(name,'+','%2B'),'chat','toolbar=no,width=260,height=200,directories=no,status=no,scrollbars=no,resize=no,menubar=no')
	return;
}

function OpenChatBroadClub_G(userid,type,code,name) {
	var width_ = 440;
	var height_ = 135;
	var left_ = screen.width-10;
	var top_ = screen.height-63;
	left_ = left_/2 - (width_/2);
	top_ = top_/2 - (height_/2);
	window.open('http://www.thinkpool.com/chat/anchor_chat_club.jsp?type=' + type + '&amp;code=' + code + '&amp;name=' + Replace(Replace(name,'+','%2B'),'&amp;','%26'),'anchor_chat','toolbar=no,width='+width_+',height='+height_+',left='+left_+',top='+top_+',directories=no,status=no,scrollbars=no,resize=no,menubar=no')
	return;
}

function openPop(url){
	window.open(url,'open','width=400,height=400,resizable=no,scrollbars=no,top=100,left=100');
	return;
}

function openFuture(linkurl){
	window.open(linkurl+'&amp;authpos='+smsAuthPosNum(),'open','width=350,height=360,resizable=no,scrollbars=no,top=100,left=100');
	return;
}

function profileView(penid, menu){
	if(menu == "ftrade"){
		window.open('/profile/ftrade_read.jsp?penid=' + penid + '&amp;menu=' + menu,'profile','width=456,height=492,resizable=no,scrollbars=yes');
	} else if(menu == "spcenter"){
		window.open('/profile/read.jsp?penid=' + penid,'profile','width=456,height=492,resizable=no,scrollbars=yes');
	} else {
		window.open('/profile/read.jsp?penid=' + penid,'profile','width=456,height=492,resizable=no,scrollbars=yes');
	}
}

function smsPop(url) {
	    window.open(url,'sms','toolbar=no,status=no,width=300,height=219,resizable=no,scrollbars=no,top=100,left=100');
		return;
}

function setRecomm(url,DbName,sn) {

    if (getCookie(DbName + sn) != "R") {
    	setCookie(DbName + sn,'R',recomm_expires_date);
    	document.location.href = url;
    } else {
    	alert(recomm_msg);
    }
   	return;
}



function setOpp(add,DbName,sn) {

    if (getCookie(DbName + sn) != "R") {
		OpenPublic('/bbs/oppInput.jsp?name=' + DbName + "&amp;number=" + sn + add,'bbs', 610, 550,'no','no')

    } else {
    	alert(recomm_msg);
    }
   	return;
}

function imageViewer(filePath)
{
	OpenPublic('http://www.thinkpool.com/bbs/imageView.html?filepath='+filePath,'bbsImage', 100, 100,'no','no');
}

function OpenPublic(url,winname,width,height,resize,scroll) {
   	window.open(url,winname,"width=" + width + ",height=" + height + ",resizable=" + resize + ",scrollbars=" + scroll + "");
   	return;
}


function OpenPopup(url,winname,top,left,width,height,resize,scroll) {
   	rslt = window.open(url,winname,"top=" + top + ",left=" + left + ",width=" + width + ",height=" + height + ",resizable=" + resize + ",scrollbars=" + scroll + "");
   	return rslt;
}


function hideA(url) {
	window.open(url,'hideA','width=298,height=188,resizable=no,scrollbars=no');
	return;
}


function banner206x45(pos) {
	document.writeln("&lt;IFRAME title='광고' WIDTH=206 HEIGHT=45 NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 name=frm_banner206x45 SRC=http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/www.thinkpool.com/" + pos + "@Middle1 &gt;");
	document.writeln("&lt;A HREF=http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/www.thinkpool.com/" + pos + "@Middle1&gt;");
	document.writeln("&lt;IMG SRC=http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/www.thinkpool.com/" + pos + "@Middle1&gt;&lt;/a&gt;");
	document.writeln("&lt;/IFRAME&gt;");
}

function banner206x45_replace(pos) {
	frm_banner206x45.location.replace("http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/www.thinkpool.com/" + pos + "@Middle1");
}

function banner240x200(pos) {
	
	document.writeln("&lt;iframe src='http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/"+pos+"@Top1' width='240' height='200' frameborder='0' NORESIZE scrolling='no' scrolling='0' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'  title='광고' name='frm_banner240x200' &gt;");
	document.writeln("&lt;/IFRAME&gt;");
}

function banner240x200_replace(pos) {

	frm_banner240x200.location.replace("http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/"+pos+"@Top1");

}

function banner468x60(pos) {
	document.writeln("&lt;iframe src='http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/"+pos+"@Frame1' width='468' height='60' frameborder='0' NORESIZE scrolling='no' scrolling='0' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'  title='광고' name='frm_banner468x60' &gt;");
	document.writeln("&lt;/IFRAME&gt;");
}


function banner468x60_replace(pos) {
	var curl = document.location.href;

	if (curl.indexOf('pdsInput.jsp') == -1)
		frm_banner468x60.location.replace("http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/"+pos+"@Frame1");

}


function banner803x63(pos) {
	
	if(pos=="outinimg")
		banner = "outinimg";
	else
		banner = "etc";	

	document.writeln("&lt;iframe src='http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/" + banner + "@Top2' width=803 height=63 frameborder='0' NORESIZE scrolling='no' scrolling='no' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' title='광고' name='frm_banner803x63Top2' &gt;");
	document.writeln("&lt;/iframe&gt;");
	
}


function banner803x63_replace(pos) {

	if(pos=="outinimg")
		banner = "outinimg";
	else
		banner = "etc";	
		
	var curl = document.location.href;

	if (curl.indexOf('pdsInput.jsp') == -1)
		frm_banner803x63Top2.location.replace("http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/" + banner + "@Top2");

}

function banner170x230(pos) {


	document.writeln("&lt;iframe src='http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/"+pos+"@Position3'  WIDTH='170' HEIGHT='230' name='frm_banner170x230' frameborder='0' NORESIZE scrolling='no' scrolling='no' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' title='광고' &gt;");
	document.writeln("&lt;/IFRAME&gt;");
}

function banner170x230_stockloan() {

	document.writeln("&lt;iframe src='http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/etc@Position3'  WIDTH='170' HEIGHT='230' frameborder='0' NORESIZE scrolling='no' scrolling='no' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' title='광고'&gt;");
	document.writeln("&lt;/IFRAME&gt;");

}

function banner170x230_replace(pos) {

	var curl = document.location.href;

	if (curl.indexOf('pdsInput.jsp') == -1)
		frm_banner170x230.location.replace("http://yellow.contentsfeed.com/RealMedia/ads/adstream_sx.ads/thinkpool.com/"+pos+"@Position3");

}



 function OpenReal(url) {
 	window.open(url,'home','width=650,height=550,resizable=yes,scrollbars=yes');
 	return;
 }



 function OpenNewsV(url) {
	window.open(url,'home','width=500,height=400,resizable=yes,scrollbars=yes');
	return;
 }

 function OpenAllItem() {

	window.open('http://www.thinkpool.com/itemanal/popall/pop_aobj.jsp','allItem','width=667,height=500,resizable=no,scrollbars=yes');
}

 function chkByte(obj,subject,bt)
{
	var tmpStr;
	var temp=0;
	var onechar;
	var tcount;
	tcount = 0;

	str = obj.value;

	tmpStr = new String(str);
	temp = tmpStr.length;

	for (k=0;k&lt;temp;k++)
	{
		onechar = tmpStr.charAt(k);

		if (escape(onechar).length &gt; 4) {
			tcount += 2;
		}
		else if (onechar!='\r') {
			tcount++;
		}
	}

	if(tcount&gt;bt) {

		reserve = tcount-bt;
		alert("내용은 " + bt + "바이트까지 입력 가능합니다.");
		cut_str(obj,subject,bt);
		obj.focus();
		return;
	}
}

 function chkBytes(obj,subject,bt)
{
	var tmpStr;
	var temp=0;
	var onechar;
	var tcount;
	tcount = 0;

	str = obj.value;

	tmpStr = new String(str);
	temp = tmpStr.length;

	for (k=0;k&lt;temp;k++)
	{
		onechar = tmpStr.charAt(k);

		if (escape(onechar).length &gt; 4) {
			tcount += 2;
		}
		else if (onechar!='\r') {
			tcount++;
		}
	}

	if(tcount&gt;bt)
	{

		reserve = tcount-bt;
		alert("내용은 " + bt + "바이트까지 입력 가능합니다.");
		cut_str(obj,subject,bt);
		obj.focus();
		return false;
	}
	else
	{
		return true;
	}
}



function Openportfolio(url) {
	window.open(url,'port','width=770,height=573,resizable=no,scrollbars=no,top=200,left=100');
	return;
}


function cut_str(obj,subject,bt)
{
	var tmpStr;
	var temp=0;
	var onechar;
	var tcount;
	tcount = 0;

	str = obj.value;
	tmpStr = new String(str);
	temp = tmpStr.length;

	for(k=0;k&lt;temp;k++)
	{
		onechar = tmpStr.charAt(k);

		if(escape(onechar).length &gt; 4) {
			tcount += 2;
		}
		else if(onechar!='\r') {
			tcount++;
		}
		if(tcount&gt;bt) {
			tmpStr = tmpStr.substring(0,k);
			break;
		}
	}

	obj.value = tmpStr;
	chkByte(obj,subject,bt);
	return;
}


 function dateValid(src) {
	var year = 0;
	var month = 0;
	var day = 0;

	if (src.length != 8) return false;

	year = src.substring(0,4);
	month = src.substring(4,6);
	day = src.substring(6);


	var flag = false;

	if (year % 4 == 0) {
		flag = true;
		if (year % 100 == 0) {
			flag = false;
			if (year % 400 == 0) {
				flag = true;
			}
		}
	}

	var dayArray = new Array();

	dayArray[0] = 31;
	dayArray[1] = (flag) ? 29 : 28;
	dayArray[2] = 31;
	dayArray[3] = 30;
	dayArray[4] = 31;
	dayArray[5] = 30;
	dayArray[6] = 31;
	dayArray[7] = 31;
	dayArray[8] = 30;
	dayArray[9] = 31;
	dayArray[10] = 30;
	dayArray[11] = 31;

	if (month &lt; 1 || month &gt; 12)
		return false;

	if (day &lt; 1 || day &gt; dayArray[month-1])
		return false;

	return true;
 }


function Replace(str,ch1,ch2) {

	var ret = str;

	while (ret.indexOf(ch1) != -1) {
		ret = ret.replace(ch1,ch2);
	}

	return ret;
}

function wireless(){
	window.open('/etc/wireless/wireless.jsp','wireless','width=800,height=680,resizable=no,scrollbars=no,top=100,left=100');
	return;
}


// 선물 진검승부 관련 시작
function OpenMatchUp(penid, nick, menu) {
	OpenPublic('http://fw.thinkpool.com/futures/index.asp?analID='+penid+'&amp;analNick='+nick+'&amp;menu='+menu,penid,'797','600','no','yes');
	return;

}

function open_future_settle_mem(penid)
{
	var url = "/future/settle/settle_mem.jsp?penid=" + penid;
	window.open( url, "settle_mem", "width=326,height=390,scrollbars=no,resizable=no");
}

function OpenFutureTool(penid) {
	//alert("잠시 시세오류로 불편을 드려 죄송합니다..조금 후에 사용하십시오.");
	var url = "/future/match_up/chkTool.jsp?penid=" + penid;
	document.future_frame.location.replace(url);

}
// 선물진검승부 관련 끝

// 아카데미 결제 시작

//김동조소장결제
function open_academy_power_public()
{
	var url = "/discuss/academy/power/billing.jsp?academy=power_public";
	window.open( url, "billing", "width=700,height=565,scrollbars=no,resizable=no");
}

//새강자결제
function open_academy_center_public()
{
	var url = "/discuss/academy/power/billing.jsp?academy=center_public";
	window.open( url, "billing", "width=700,height=565,scrollbars=no,resizable=no");
}

function open_academy_power()
{
	var url = "/discuss/academy/power/billing.jsp";
	window.open( url, "power", "width=700,height=565,scrollbars=no,resizable=no");
}

function open_academy_mukeuk()
{
	var url = "/discuss/academy/course/course_billing.jsp?gubun=mukeuk";
	window.open( url, "mukeuk", "width=700,height=565,scrollbars=no,resizable=no");
}

function open_academy_elliott()
{
	var url = "/discuss/academy/elliott/billing.jsp";
	window.open( url, "elliott", "width=700,height=565,scrollbars=no,resizable=no");
}

function OpenTakeXfile(cpcode,lecture) {
	document.location.replace('/discuss/academy/take/take_xfile.jsp?cpcode=' + cpcode + '&amp;lecture=' + lecture,'takecplecture');
	return;
}

// 아카데미 결제 끝

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function OpenAcademyTip() {
   	window.open("/discuss/academy/study_tip/study_tip.jsp","study_tip",'width=682,height=693,resizable=no,scrollbars=yes');
   	return;
}

function OpenPreview(gb_code,sn) {
   	/*
   	alert("내부사정으로 당분간 이용하실 수 없습니다.");
   	*/
   	window.open("/discuss/academy/player/preview.jsp?gb_code=" + gb_code + "&amp;sn=" + sn,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;

}
function OpenPreviewDW(gb_code,sn) {
   	window.open("/discuss/academy/gmdw/player/preview.jsp?gb_code=" + gb_code + "&amp;sn=" + sn,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;
}
function OpenViewDayLecture(userid,title,filename) {
	window.open('http://www.nanoomtrade.com/cyber/think_vod.asp?userid=' +userid+ '&amp;title=' +title+ '&amp;filename='+filename,'academy','width=667, height=625, scrollbars=no, resizable=no');
}

function OpenLectureRoom(gb_code,sn,mseq,seq) {
   	/*
   	alert("내부사정으로 당분간 이용하실 수 없습니다.");
   	*/
   	window.open("/discuss/academy/player/lecture_room.jsp?gb_code=" + gb_code + "&amp;sn=" + sn + "&amp;mseq=" + mseq + "&amp;seq=" + seq,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;

}

function OpenLectureRoomDW(gb_code,sn,mseq,seq) {
   	window.open("/discuss/academy/gmdw/player/lecture_room.jsp?gb_code=" + gb_code + "&amp;sn=" + sn + "&amp;mseq=" + mseq + "&amp;seq=" + seq,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;
}

function OpenMedicalLectureRoom(gb_code,sn,mseq,seq) {
   	window.open("/medical/clinic_program/research/lecture_room.jsp?gb_code=" + gb_code + "&amp;sn=" + sn + "&amp;mseq=" + mseq + "&amp;seq=" + seq,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;
}


function OpenDizzoLectureRoom(gb_code,sn,mseq,seq) {
   	window.open("/concert/dizzo/academy/player/lecture_room.jsp?gb_code=" + gb_code + "&amp;sn=" + sn + "&amp;mseq=" + mseq + "&amp;seq=" + seq,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;
}

function OpenMpplusLectureRoom(gb_code,sn,mseq,seq) {
   	window.open("/mpplus/academy/lecture_room.jsp?gb_code=" + gb_code + "&amp;sn=" + sn + "&amp;mseq=" + mseq + "&amp;seq=" + seq,"lecture_room",'width=964,height=693,resizable=no,scrollbars=no');
   	return;
}

function OpenTakeRoom(gb_code,sn,mseq,seq) {
   	window.open("/discuss/academy/take/selectpay.jsp?gb_code=" + gb_code + "&amp;sn=" + sn + "&amp;mseq=" + mseq + "&amp;seq=" + seq,"selectpay",'width=350,height=195,resizable=no,scrollbars=no');
   	return;
}

function OpenQna(lecturer) {
	window.open('/discuss/academy/lectureQna/pdsView.jsp?lid=' + lecturer,'lectureQna','width=665,height=600,resizable=no,scrollbars=yes,top=100,left=100');
	return;
}

function OpenDizzoQna(lecturer) {
	window.open('/concert/dizzo/academy/lectureQna/pdsView.jsp?lid=' + lecturer,'lectureQna','width=665,height=600,resizable=no,scrollbars=yes,top=100,left=100');
	return;
}

function OpenTakeLecture(ref,gb_code,sn,mseq,seq) {
	window.open('/discuss/academy/take/takelecture.jsp?ref=' + ref + '&amp;gb_code=' + gb_code + '&amp;sn=' + sn + '&amp;mseq=' + mseq + '&amp;seq=' + seq,'takelecture','width=350,height=255,resizable=no,scrollbars=no');
	return;
}

function OpenTakeCpLecture(cpcode,lecture) {
	window.open('/discuss/academy/take/takecplecture.jsp?cpcode=' + cpcode + '&amp;lecture=' + lecture,'takecplecture','width=350,height=255,resizable=no,scrollbars=no');
	return;
}

function changeChart(gb,code) {

	if (gb == "1day") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stock1day/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_1_1.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_2.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_3.gif'");
	} else if (gb == "week") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stockweek/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_1.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_2_1.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_3.gif'");
	} else {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stock5min/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_1.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_2.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/sub_chart_tab_3_1.gif'");
	}

}

function changeChartNew(gb,code) {

	if (gb == "1day") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stock1day/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_01_on.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_02.gif'");
		eval("btn_mon_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_03.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_04.gif'");
		eval("btn_mamul_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_05.gif'");
	} else if (gb == "week") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stockweek/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_01.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_02_on.gif'");
		eval("btn_mon_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_03.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_04.gif'");
		eval("btn_mamul_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_05.gif'");
	} else if (gb == "mon") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stockmonth/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_01.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_02.gif'");
		eval("btn_mon_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_03_on.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_04.gif'");
		eval("btn_mamul_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_05.gif'");
	} else if (gb == "5min") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stock5min/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_01.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_02.gif'");
		eval("btn_mon_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_03.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_04_on.gif'");
		eval("btn_mamul_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_05.gif'");
	} else if (gb == "mamul") {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stock1day_volume/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_01.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_02.gif'");
		eval("btn_mon_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_03.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_04.gif'");
		eval("btn_mamul_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_05_on.gif'");
	} else {
		eval("chart_img_" + code + ".src = 'http://webchart.thinkpool.com/stock1day/A" + code + ".gif'");
		eval("btn_1day_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_01_on.gif'");
		eval("btn_week_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_02.gif'");
		eval("btn_mon_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_03.gif'");
		eval("btn_5min_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_04.gif'");
		eval("btn_mamul_" + code + ".src = 'http://img.thinkpool.com/itemanal/chart/chart_tab_05.gif'");
	}

}


function Tech_anal(code,market) {
	window.open("http://stock.koscom.co.kr/common_sise/hyun_chartX.jsp?code=A" + code + "&amp;market=" + market,"Chart","width=700,height=550,resizable=no,scrollbars=no");
}

function open_edusite_mem(penid)
{
	var url = "/discuss/academy/edusite/edu_mem.jsp?penid=" + penid;
	window.open( url, "edusite_mem", "width=350,height=270,scrollbars=no,resizable=no");
}

// 실전매매 신청
function open_atrade_proposal(code)
{
	//alert("현재 사용자가 많아 서비스 신청을 할 수 없습니다.\n\n빠른 시간 내에 조치를 취하겠습니다.\n\n이용에 불편을 드려 대단히 죄송합니다.");
	var url = "/atrade/pop/proposal.jsp?pcode=" + code;
	window.open(url, "atrade_proposal", "width=350,height=270,scrollbars=no,resizable=no");
}

// 메신져 설치
function OpenMesg(f) {
	window.open('http://www.thinkpool.com/etc/thinke/thinke.jsp?Gcode='+f,'thinkm','width=618, height=500, toolbar=no, scrollbars=yes, resizable=no');
}

function OpenMsg() {
	window.open('http://www.thinkpool.com/etc/thinke/thinke.jsp','thinke','width=618, height=500, toolbar=no, scrollbars=yes, resizable=no');
}

//증권용어사전
function Opendic(url) {
	window.open(url,'dic','width=600,height=480,resizable=no,scrollbars=no,top=200,left=100');
	return;
}

//악성코드
function OpenCleani() {
	window.open('http://www.thinkpool.com/etc/cleani','cleani','width=830,height=800,resizable=no,scrollbars=yes,top=200,left=100');
	return;
}

//신고함
function OpenPolice() {
	window.open('/customer/tp_police.jsp','thinke','width=430, height=440, toolbar=no, scrollbars=no, resizable=no')
}

function bbsDel(p) {

   	if (confirm('정말로 삭제하시겠습니까?')) {

   		document.location.href = "pdsDel.jsp?"+p;

   	}

}

function bbsDel_ic(p) {
   	if (confirm('정말로 삭제하시겠습니까?')) {
   		window.open('/discuss/itemconsult/pdsDel.jsp?'+p,'bbsDelic','width=230,height=180,toolbar=no,scrollbars=no,resizable=no,status=no')
   	}
}

function bbsDel_ic2(p) {
   	if (confirm('삭제하시겠습니까?')) {
   		window.open('/itemanal/i/itemconsult/pdsDel.jsp?'+p,'bbsDelic','width=230,height=180,toolbar=no,scrollbars=no,resizable=no,status=no')
   	}
}

function isEmail(email) {

	for (i=0; i&lt;email.length; i++) {
		if (email.charCodeAt(i)&gt;127)
			return "한글을 사용할수 없습니다.";
	}


	if (email.indexOf("@") &lt; 3)
		return "이메일 형식이 잘못 되었거나 @가 빠졌습니다.";


	if ((email.indexOf(".com")&lt;5)&amp;&amp;(email.indexOf(".org")&lt;5)
		&amp;&amp;(email.indexOf(".gov")&lt;5)&amp;&amp;(email.indexOf(".net")&lt;5)
		&amp;&amp;(email.indexOf(".mil")&lt;5)&amp;&amp;(email.indexOf(".edu")&lt;5)
		&amp;&amp;(email.indexOf(".kr")&lt;4)&amp;&amp;(email.indexOf(".st")&lt;4)
		&amp;&amp;(email.indexOf(".tv")&lt;4)&amp;&amp;(email.indexOf(".ro")&lt;4)
		&amp;&amp;(email.indexOf(".arpa")&lt;6)&amp;&amp;(email.indexOf(".biz")&lt;5)
		&amp;&amp;(email.indexOf(".aero")&lt;6)&amp;&amp;(email.indexOf(".name")&lt;6)
		&amp;&amp;(email.indexOf(".coop")&lt;6)&amp;&amp;(email.indexOf(".info")&lt;6)
		&amp;&amp;(email.indexOf(".pro")&lt;5)&amp;&amp;(email.indexOf(".museum")&lt;7)
		)
	{
	return "이메일 형식의 최상위 도메인형식이 잘못되었습니다.";
	}
	return "";
}


//종목명코드검색
function signalFocus(obj) {
	if (obj.value == '종목명/코드') {
		obj.value = "";
	}
}
function signalBlur(obj) {
	if (obj.value == '') {
		obj.value = "종목명/코드";
	}
}

function favor(furl,subj) {
window.external.AddFavorite(furl,subj);
}

function OpenAllMiniHome() {

	OpenPublic('/mini/pop/all_list.jsp','all_list',644,392,'no','yes');

}

function open_mcall_settle_mem(f) {

	var url = "/consultant/mcall/m_settle_mem.jsp?term=" + f;
	window.open( url, "m_settle_mem", "width=350,height=295,scrollbars=no,resizable=no");

}

function OpenRepay() {
	window.open('/spcenter/mship/repay.htm','repay','width=550, height=495, scrollbars=no, resizable=no');
}

function mysetSRegist(penid){
	OpenPublic('/myset/pop/myset_form.jsp?penid='+penid+'&amp;authpos='+smsAuthPosNum(),'myset','336','284','no','no');
	return;
}

function mysetCRegist(code){
		OpenPublic('/myset/pop/item_form.jsp?code='+code+'&amp;authpos='+smsAuthPosNum(),'myset','336','284','no','no');
	return;
}

function mysetSaleRegist(valueKey){
		OpenPublic('/myset/pop/myset_sale_form.jsp?valueKey=' + valueKey,'myset1','336','284','no','no');
	return;
}

function click_onair(ars_num) {
	OpenPopup('/spcenter/livecall/pop_join.jsp?ars_num='+ars_num,'info','450','500','304','160','no','no');
}

//불량글 신고
function open_BadBbs(linkStr, Numb)
{
	var url = "/badbbs/badbbs_input.jsp?" + linkStr +"&amp;number=" + Numb;
	window.open( url, "BADBBS_REPORT", "width=400,height=460,scrollbars=no,resizable=yes");
}

//불량글 신고
function Open_BadMail(email)
{
	var url = "/admin/badbbs_report/mailInput.jsp?email=" + email;
	window.open( url, "BADBBS_Mail", "width=320,height=255,scrollbars=no,resizable=yes");
}

//펀드 신고
function open_FundBadBbs()
{
	var url = "/finance/badbbs/badbbs_input.jsp";
	window.open( url, "BADBBS_REPORT", "width=400,height=300,scrollbars=no,resizable=yes");
}


function ftradeView(penid,lg_gb,sn){
	OpenPublic('/future/ftrade/lg_trade_view.jsp?penid='+penid +'&amp;ft_lg='+lg_gb+'&amp;ft_sn='+sn,'ftradeView','642','400','yes','no');
	return;
}


function analTtradeView(penid,lg_gb,sn){
	OpenPublic('/future/ftrade/tool/chkConn.jsp?penid='+penid +'&amp;lg_gb='+lg_gb+'&amp;lg_sn='+sn,'analTtradeView','609','632','no','no');
	return;
}

function analTtradeViewR(){
	OpenPublic('/future/ftrade/tool/chkConnR.jsp','analTtradeView','609','632','no','no');
	return;
}

function open_ftrade_settle_mem(lg_gb, penid, lg_sn)
{
	var url = "/future/ftrade/settle/ftrade_settle_pre.jsp?lg_gb=" + lg_gb + "&amp;penid=" + penid + "&amp;lg_sn=" + lg_sn;
	window.open( url, "ftrade_bill", "width=350,height=270,scrollbars=no,resizable=no");
}

// 투자전략 의견 전문가보기
function sp_view(f) {
	window.open("/bbs/common/outlook_detail.jsp?choice="+f,"outlook","width=346,height=367,resizable=no,scrollbars=yes");
}

function writeHtml(str) {

document.writeln(str);

}

function fnfMiniHome(fnfid,spop_menu) {

	window.open('/finance/fnf/sdiary/spop_home.jsp?fnfid=' + fnfid+'&amp;spop_menu='+spop_menu,'','width=500,height=700,resizable=no,scrollbars=no,status=yes');
}

function fnf_vod_player(sn){
	href = '/finance/fnf/fnf_picture/vod_player.jsp?number='+sn;
	option = 'toolbar=no,scrollbars=no,resizable=no,width=555,height=437,left=0,top=0';
	win_name = 'vod_player'

	window.open( href, win_name, option );
}

function exec_mirae_realtrade() {

		window.open('http://securities.miraeasset.co.kr/coop/think/down.jsp','','width=830,height=760');

}

function gcoin_question_event() {

	window.open('/CM/gcoin/gcoin_q_join.jsp','gcoin_question','width=360,height=310');

}

function gcoinlayer(layername,gb){

	if(gb=="C"){
		setCookie(layername+'_maindiv', 'done', 1);
		document.all[layername].style.visibility = "hidden";
	}else{
		if(layername != "popuplayer_j"){
			gcoin_question_event();
			document.getElementById(layername).style.display="none";

		}else{
			window.open('http://www.thinkpool.com/CM/gcoin/index.jsp','','');
		}
	}
}

function OpenKosWeb(code) {
	var KosWeb = window.open('http://www.thinkpool.com/concert/thinkpool/realtime/pay_check.jsp?code='+code,'kosweb_pop','toolbar=0,menubar=0,scrollbars=no,resizable=yes,width=680,height=730');
	KosWeb.focus();
}

function OpenKosWeb_log(code,gcode) {
	var KosWeb = window.open('http://www.thinkpool.com/concert/thinkpool/realtime/pay_check.jsp?Gcode='+gcode+'&amp;code='+code,'kosweb_pop','toolbar=0,menubar=0,scrollbars=no,resizable=yes,width=680,height=730');
	KosWeb.focus();
}

//KTF매매신호 알리미
function KtfPhone(){
    var _left = parseInt((document.body.clientWidth/2)-(350/2));
    var _top = parseInt((document.body.clientHeight/2)-(440/2));
    var _options = "'resizable=no,width=350,height=440,scrollbars=no,top="+_top+",left="+_left+"'";
    window.open('/itemanal/ktf/popup.jsp','ktf',_options);
}


function comm_replyView(sn) {
	window.open("/mypage/comm/replyRead.jsp?number=" + sn,"commReplytagview","");
}

function comm_tagViewPop(sn) {
	window.open('/mypage/comm/pop/tagViewPop.jsp?number='+sn,'commTagViewPop','toolbar=0,menubar=0,scrollbars=no,resizable=yes,width=400,height=500');
	parent.location.reload();
}

function comm_replyContl() {
	window.open('/mypage/comm/pop/tagViewPop.jsp?number='+sn,'commTagViewPop','toolbar=0,menubar=0,scrollbars=no,resizable=yes,width=400,height=500');
}

function comm_TagSend(receiveid) {
	window.open('/mypage/comm/pop/tagInput.jsp?receiveid='+receiveid,'commTagSend','toolbar=0,menubar=0,scrollbars=no,resizable=yes,width=400,height=430');
}

function comm_frdAdd(friendid) {
	window.open('/mypage/comm/pop/frdAdd.jsp?friendid=' + friendid,'commFrdAdd','scrollbars=no,titlebar=no,status=no,resize=no,width=400,height=270');
}

function comm_grpReName(grpsn) {
	window.open('/mypage/comm/pop/grpReName.jsp?grpsn=' + grpsn,'grpReName','scrollbars=no,titlebar=no,status=no,resize=no,width=400,height=230');
}

function comm_grpDelete(grpsn) {
	window.open('/mypage/comm/pop/grpDelete.jsp?grpsn=' + grpsn,'grpDelete','scrollbars=no,titlebar=no,status=no,resize=no,width=400,height=310');
}

function comm_frdDelete(friendid,nick){
	if(confirm(nick+"님을 친구목록에서 삭제합니다")){
		window.open('/mypage/comm/pop/frdDelete_insert.jsp?friendid=' + friendid,'frdDelete','scrollbars=no,titlebar=no,status=no,resize=no,width=400,height=200');
	}
}

function comm_grpChange(friendid) {
	window.open('/mypage/comm/pop/grpChange.jsp?friendid=' + friendid,'grpDelete','scrollbars=no,titlebar=no,status=no,resize=no,width=400,height=250')
}

function comm_profileView(friendid) {
	window.open('/mypage/comm/pop/profileView.jsp?friendid=' + friendid,'commProfileView','scrollbars=no,titlebar=no,status=no,resize=no,width=400,height=523')
}

function discuss_conotice() {
	alert("씽크풀 종목토론은 네이트 증권 종목토론 및 신한금융투자, 동부증권, SK증권, 유진투자증권, HMC투자증권의 증권사 커뮤니티와 공유됩니다.\n\n씽크풀에서 작성하신 게시물을 수정 또는 삭제하시는 경우에는 공유 제휴사의 게시물도 수정/삭제가 이루어집니다.\n\n감사합니다.\n\n(문의 1666-6300, tpmail@thinkpool.com)");
}

function realnews(f) {
	window.open('http://www.thinkpool.com/nnews/realtime/index.jsp?Gcode='+f,'realnews','resizable=yes,scrollbars=no');
	return;
}

function open_app_vcard() {
	window.open("http://www.thinkpool.com/etc/v_card/app_tel.jsp", "vcard", "width=623,height=371,scrollbars=no,resizable=no");
	return;
}

function TableChange12(objSub) {

	if (sub_11.style.display == "block" &amp;&amp; objSub != sub_11) {
		sub_11.style.display = "none";
	}

	if (sub_12.style.display == "block" &amp;&amp; objSub != sub_12) {
		sub_12.style.display = "none";
	}

	if(objSub.style.display == "none") {
		objSub.style.display = "block";
	} else {
		objSub.style.display = "none";
	}
}

function TableChange12(objSub) {

	if(objSub == "sub_11") {
		document.getElementById('sub_11').style.display = 'block';
		document.getElementById('sub_12').style.display = 'none';
	} else if(objSub == "sub_12") {
		document.getElementById('sub_11').style.display = 'none';
		document.getElementById('sub_12').style.display = 'block';
	} else if(objSub == "sub_21") {
		document.getElementById('sub_21').style.display = 'block';
		document.getElementById('sub_22').style.display = 'none';
	} else if(objSub == "sub_22") {
		document.getElementById('sub_21').style.display = 'none';
		document.getElementById('sub_22').style.display = 'block';
	}

}

function OpenPclubAcc(p_name,gb) {
	window.open('/pclub/settle/pclub_settle_mem.jsp?p_name='+p_name+'&amp;gb='+gb, 'pclub', 'width=320, height=355, scrollbars=no, resizable=no');
}

function OpenPclubAccEvent(p_name, pos) {
	window.open('/pclub/settle/pclub_ev_settle_mem.jsp?p_name='+p_name + '&amp;pos=' + pos, 'pclubev', 'width=320, height=355, scrollbars=no, resizable=no');
}

function OpenPclubEvent() {
	window.open('/pclub/settle/mgclub_openEvent.jsp?authpos='+smsAuthPosNum(), 'pclubev2', 'width=350,height=355, scrollbars=no, resizable=no');
}

function OpenPclubOutEvent(p_name, gb) {
	window.open('/pclub/settle/outEventInput.jsp?authpos='+smsAuthPosNum()+'&amp;gb='+gb, 'pclubev3', 'width=435,height=380, scrollbars=no, resizable=no');
}

function OpenPclubSms(p_name) {
	window.open('/pclub/smssend/sms_send.jsp?p_name='+p_name, 'pclub', 'width=640, height=460, scrollbars=no, resizable=no');
}

function OpenPclubTrade(p_name) {

	if(p_name == 'trsk')
		window.open('/pclub/trade/trade_list_trsk.jsp?p_name='+p_name, 'pclub_Trade', 'width=720, height=600, scrollbars=yes, resizable=no');
	else
   		window.open('/pclub/trade/trade_list.jsp?p_name='+p_name, 'pclub_Trade', 'width=720, height=600, scrollbars=yes, resizable=no');
}

function OpenPclubFTrade(p_name) {

	window.open('/pclub/trade/ftrade_list_trsk.jsp?p_name='+p_name, 'pclub_FTrade', 'width=720, height=600, scrollbars=yes, resizable=no');
}

function OpenVar(windowName,width,height) {
    newWindow = window.open(windowName, 'OpenVarWin','toolbar=no,menubar=no,width='+width+',height='+height+',scrollbars=yes,resizable=yes');
    newWindow.window.focus();
}


function resizeImage(obj, thumbWidth, thumbHeight)
{
	var Size = GetImageSize(obj);
	var thumbRatio = thumbWidth / thumbHeight;
	var imageWidth = Size.Width;
	var imageHeight = Size.Height;
	var imageRatio = imageWidth / imageHeight;

	if(thumbRatio &lt; imageRatio)
	{
		thumbHeight = parseInt(thumbWidth / imageRatio);
		if(thumbHeight &gt; imageHeight)//원본 이미지가 썸네일 사이즈보다 작을경우 원본 크기를 적용
		{
			thumbWidth = imageWidth;
			thumbHeight = imageHeight;
		}
	}
	else
	{
		thumbWidth = parseInt(thumbHeight * imageRatio);
		if(thumbWidth &gt; imageWidth)//원본 이미지가 썸네일 사이즈보다 작을경우 원본 크기를 적용
		{
			thumbWidth = imageWidth;
			thumbHeight = imageHeight;
		}
	}

	obj.style.width =  (thumbWidth+'px');
	obj.style.height =  (thumbHeight+'px');
}


function GetImageSize(obj)
{
	with(tempImage = document.body.appendChild(document.createElement('img')))
	{
		src = obj.src;
		var Width = offsetWidth;
		var Height = offsetHeight;
	}

	document.body.removeChild(tempImage);

	return { Width : Width, Height : Height };
}

function Open_FundDic(f) {
	window.open('/finance/fund/pop_dic.jsp?dcode=' + f,'funddic','width=370,height=570,resizable=yes,scrollbars=yes,top=100,left=100');
	return;
}

function admCourseAcc(penid,jockey) {
	window.open('/etc/course/course_input.jsp?penid='+penid+'&amp;jockey='+jockey,'admCourseAcc','width=360,height=405,resizable=no,scrollbars=auto,top=100,left=100');
	return;
}

function varoTrade(f) {
	window.open('/concert/koscom/varo/varo_trade.html?Gcode='+f,'varoTrade','width=653,height=796,resizable=no,scrollbars=auto,top=100,left=100');
	return;
}

function varoTradeMeritz() {
	window.open('/concert/koscom/varo/varo_event.html','varoTrade','width=653,height=796,resizable=no,scrollbars=auto,top=100,left=100');
	return;
}

function smsAuthPosNum() {
	var dt = new Date();
	var num = ""+parseInt(Math.random()*88+10) + parseInt(Math.random()*88+10) + parseInt(Math.random()*88+10);
	var ctime = ""+(dt.getMinutes()+10);
	return ctime+num
}


function checkSMSAuth(nexturl,source) {
	window.open('/myset/pop/smsauth_pass.jsp?authpos='+smsAuthPosNum()+"&amp;nexturl="+nexturl+"&amp;source="+source,'smsauth','toolbar=no,width=336,height=478,directories=no,status=no,scrollbars=no,resize=no');
	return;
}

function swf(src, w, h)
{
	html = '';
	html += '&lt;object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'"&gt;';
	html += '&lt;param name="movie" value="'+src+'"&gt;';
	html += '&lt;param name="quality" value="high"&gt;';
	html += '&lt;param name="swliveconnect" value="true"&gt;';
	html += '&lt;param name="allowScriptAccess" value="always" &gt;';
	html += '&lt;param name="wmode" value="transparent"&gt;';
	html += '&lt;embed src="'+src+'" quality=high bgcolor="#FFFFFF" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" wmode="transparent" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"&gt;&lt;\/embed&gt;';
	html += '&lt;\/object&gt;';
	document.write(html);
}

function admCourseAccContract(penid, jockey)
{
	window.open('/etc/course/contract.jsp?penid='+penid+'&amp;jockey='+jockey,'admCourseAccContract','width=640,height=600,resizable=no,scrollbars=no,top=100,left=100');
}

function admCourseMovie(fileName)
{
	window.open('/etc/course/WMPlayer.jsp?filename='+fileName,'admCourseAccContract','width=622,height=490,resizable=no,scrollbars=no,top=100,left=100');
}
function pageView(args)
{
	n_click_logging('/common/pageview.jsp?Gcode=' + args);
}

function loanServiceGo()
{
	window.open("/stockloan/service/");
	window.close();
}

function pop_juso() {
	window.open('/CM/juso_modify/pop_juso.jsp','pop_juso','toolbar=no,width=360,height=210,directories=no,status=no,scrollbars=no,resize=no');
	return;
}

function pop_refund() {
	window.open('/CM/juso_modify/pop_refund.jsp','pop_refund','toolbar=no,width=360,height=210,directories=no,status=no,scrollbars=no,resize=no');
	return;
}

function changePerson() {
	var url = 'http://www.signkorea.com/cer_manage/certchangePerson/certchange_person.htm';
	window.open( url, private_list, width=587,height=670,scrollbars=no,resizable=yes);
}

function pop_6week(f) {
	window.open('/itemanal/i/pop_6week.jsp?code='+f,'pop_6week','toolbar=no,width=680,height=640,directories=no,status=no,scrollbars=yes,resize=no');
	return;
}

function pop_time(f) {
	window.open('/itemanal/i/pop_time.jsp?code='+f,'pop_time','toolbar=no,width=680,height=640,directories=no,status=no,scrollbars=no,resize=no');
	return;
}

function theme201103() {
	window.open('/CM/theme2011/201103/index.jsp','theme201103','toolbar=no,width=1004,height=650,directories=no,status=no,scrollbars=yes,resize=no');
	return;
}


//Stockloan - consult
function openStock_loan(pCode) {
	var url = "/stockloan/consult/indexConsult.jsp?code=" + pCode;
	window.open(url, "StockLoan_Consult");
}
function openStock_consult(pCode) {
	var url = "/stockloan/consult/indexConsult.jsp?code=" + pCode + "&amp;consultType=consult";
	window.open(url, "StockLoan_Consult");
}

function open_theme()
{
	window.open("/CM/theme2011/201104/index.jsp", "theme201104", "width=980,height=798,scrollbars=no,resizable=no");
}
function open_theme201106()
{
	window.open("/CM/theme2011/201106/index.jsp", "theme201106", "width=955,height=800,scrollbars=no,resizable=no");
}

/**
브라우저 별로 팝업여백이 달라 이에 따라 리사이즈할때 창크기를 브라우저에 맞게 반환한다.
*/
function getIEPopupMarginPx(popup_width)
{
	var isIE = Prototype.Browser.IE
	var browserVersion = Browser.Version();
	//alert(isIE +' = ' + browserVersion);
	if(isIE &amp;&amp; browserVersion == 7)
	{
		return popup_width - 15;
	}
	else if(isIE &amp;&amp; browserVersion == 8)
	{
		return popup_width - 10;
	}
	else if(isIE &amp;&amp; browserVersion &gt;= 9)
	{
		return popup_width;
	}
	else
	{
		return popup_width;
	}
}


var Browser = {  
	Version: function() {    
		var version = 999; 
		// we assume a sane browser    
		if (navigator.appVersion.indexOf("MSIE") != -1)      
		// bah, IE again, lets downgrade version number      
		version = parseFloat(navigator.appVersion.split("MSIE")[1]);
		return version;
	}
}

function anchor_bevent()
{
	window.open("/anchor/event/e_regist.jsp", "e_regist", "width=350,height=300,scrollbars=no,resizable=no");
}

function OpenInvestor() {
	window.open('/sdata/tpquota/pop_index.jsp','allItem','width=667,height=500,resizable=no,scrollbars=yes');
}

function breakingnewsSendReg() {
	window.open('/discuss/breakingnews/senderReg.jsp','senderReg','width=677,height=750,resizable=no,scrollbars=no');
}

function vodplay(f1,f2) {
	window.open('/discuss/itemconsult/sb_view/start.jsp?type=playvod&amp;date='+f1+'&amp;vodpath='+f2,'vodplay','width=350,height=220,resizable=no,scrollbars=no');
}

function nocopy() {
	alert("알립니다. 최근 당사(씽크풀)의 온라인 저작물을 상업적인 목적으로 포털 블로그 및 카페 등에서 불법 복사/편집하여\n전용하는 사례가 증가하고 있습니다.  이러한 행위는 명백한 저작권침해에 해당하는 불법적인 행위입니다. 기존에 불법\n게재되었던 당사의 저작물을 자진삭제 및 향후 재발방지에 노력할 경우에는 문제삼지 않겠습니다.  당사는 향후 저작권\n침해사례에 대한 법률적 대응방안을 준비중에 있음을 공지합니다.");
}

function openAdultConfirm()
{
	var _adultCfm = window.open('http://www.thinkpool.com/customer/user/adult_confirm.jsp','IPINWindow','scrollbars=no,titlebar=no,status=no,resize=no,width=350,height=410');
	return _adultCfm;
}

function dart(code) {
	window.open('http://dart.fss.or.kr/html/search/SearchCompany_M2.html?textCrpNM='+code,'dart','width=800,height=600,resizable=yes,scrollbars=yes');
}

function info_buysell() {
	window.open('/itemanal/i/info_buysell.jsp','info_buysell','width=660,height=600,resizable=no,scrollbars=yes');
}

function open_smsclub_freeevent(evtname)
{
	var url = "/smsclub/event/event_free_pop.jsp?evtname=" + evtname;
	window.open( url, "smsclub_freeevent", "width=326,height=270,scrollbars=no,resizable=no");
}

function sign_edu_profile()
{
	var url = "/signkorea/guide/pop_edu_profile.jsp";
	window.open( url, "pop_edu_profile", "width=612,height=545,scrollbars=no,resizable=no");
}

function companyInfo(code) {
	window.open('http://media.kisline.com/highlight/mainHighlight.nice?nav=1&amp;paper_stock='+code,'companyInfo','width=1000,height=600,resizable=yes,scrollbars=yes');
}

function specialInfoView(penid,svc)
{
	var url = "/live/specialist/special_info.jsp?penid=" + penid + "&amp;svc=" + svc;
	window.open( url, "specialInfoView", "width=750,height=600,scrollbars=yes,resizable=no");
}

function liveBookConfirm(penid)
{
	
	if(penid == "taikun"){
		var url = "/live/event/book/book_confirm.jsp?penid="+penid;
		window.open( url, "liveBookConfirm", "width=354,height=268,scrollbars=no,resizable=no");
		return;
	}
	if(penid == "trixman"){
		var url = "/live/event/lovefund/lovefund_confirm.jsp?penid="+penid;
		window.open( url, "liveBookConfirm", "width=354,height=268,scrollbars=no,resizable=no");
		return;
	}
}

function open_bizlive_view(broadNumCode){
	var url = "http://www.thinkpool.com/club/biz/anchorA/a_live.jsp?broadnum=" + broadNumCode+ "&amp;authpos=" +smsAuthPosNum() ;
	window.open( url, "bizlive_room", "width=230,height=130,scrollbars=no,resizable=yes");
} 


function banner468x60test(pos) {
	document.writeln("&lt;iframe src='//nscreen.neoebiz.co.kr/_extend/thinkpool_468_60.php' frameborder='no' scrolling='no' style='width:468px;height:60px;border:none;margin:0px;padding:0px'&gt;&lt;/iframe&gt;");
}
</pre></body></html>