<!--
function update(form)
{//default is 0; what loads is determined by OPTION SELECTED VALUE
	var formindex=form.thislocation.selectedIndex;
	parent.location = form.thislocation.options[formindex].value;
}

function logout()
{
    document.location.href = "/banking/logout.jsp";

}


function GoMenu(name, win, features)
{
	if (eval(name) == "")
	{
		alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
		return;
	}
	else
	{
		if (features == null)
		{
			if (win == null)
			{
				//alert(eval(name));
				if(name !="/banking/homepage/index.jsp"){
					document.location.href = eval(name);
				}else{
					try{
					top.secureframe = null;
					top.contentframe = null;
					}catch(e){
					}
					top.location.href= name;

				}
			}
			else
			{
				window.open(eval(name), win);
			}
		}
		else
		{
			window.open(eval(name), win, features);
		}
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function win(src)
{
	window.open(src,"cal",'menubar=0,resizable=0,scrollbars=no,width=680, height=575, left=0, top=0');
}
function CertPage() {
	window.open("http://kjbank.banktown.com/activex/iWalletFrame.html", "CA", "width=500, height=550");
}
// height 450 -> 500 ¼öÁ¤ (Äü¼­ºñ½º)20041126
function go_simple(str){
        document.newopen.next_open_page.value = str;

        window.open("", "newopen", "width=867,height=620,top=30,left=150,scrollbars=yes");
        document.newopen.target = "newopen";
        document.newopen.submit();
}
function go_simple2(str){
        document.newopen.next_open_page.value = str;
		/*
		if( self.newWin && !newWin.closed ) {
			newWin.iWallet.isMovePage=true;
			newWin.focus();
		} else {
			newWin=window.open("", "newopen", "width=700,height=450,top=30,left=150,scrollbars=yes");
		}*/
		window.open("", "newopen", "width=700,height=500,top=30,left=150,scrollbars=yes");

        document.newopen.target = "newopen";
        document.newopen.submit();
}
var simplewin = null
var str = ""
var url = ""
function go_simple1(){
		this.str = document.simple.selSite.options[document.simple.selSite.selectedIndex].value;
	if( str != '' ) {

		if(simplewin != null) {
		  simplewin.close();

		  setTimeout('dowin()',1000)
		  }
		  else {
		  dowin();
		  }
		document.simple.selSite.options[0].selected = true;
	}
}
function go_simple3(){
		this.str = document.simple.selSite.options[document.simple.selSite.selectedIndex].value;
	if( str != '' ) {

		if(simplewin != null) {
		  simplewin.close();

		  setTimeout('dowin1()',1000)
		  }
		  else {
		  dowin1();
		  }
	}
}
function go_up(str){
        window.open('', 'upopen', 'width=700,height=450,top=100,left=400,scrollbars=yes');
        document.upopen.up_open_page.value = str;
        document.upopen.target = "upopen";
        document.upopen.submit();
}
// height 450 -> 500 ¼öÁ¤ (Äü¼­ºñ½º)20041126
function dowin() {
	  simplewin=window.open('', 'newopen', 'width=700,height=500,top=30,left=150,scrollbars=yes, resizable=yes');
	  document.newopen.next_open_page.value = str;
      document.newopen.target = "newopen";
      document.newopen.submit();
}
function dowin1() {
	  simplewin=window.open('', 'newopen', 'width=700,height=500,top=30,left=150,scrollbars=yes, resizable=yes');
	  document.newopen.next_open_page.value = str;
      document.newopen.target = "newopen";
      document.newopen.submit();
}
function tab1() {
	document.img1.src='/banking/images/tab_01_o.jpg';
	document.img2.src='/banking/images/tab_02.jpg';
	document.img3.src='/banking/images/tab_03.jpg';
	span_img1.style.visibility='visible';
	span_img2.style.visibility='hidden';
	span_img3.style.visibility="hidden";
}
function tab2() {
	 document.img1.src='/banking/images/tab_01.jpg';
	 document.img2.src='/banking/images/tab_02_o.jpg';
	 document.img3.src='/banking/images/tab_03.jpg';
	 span_img1.style.visibility='hidden';
	 span_img2.style.visibility='visible';
	 span_img3.style.visibility="hidden";
}
function tab3() {
	 document.img1.src='/banking/images/tab_01.jpg';
	 document.img2.src='/banking/images/tab_02.jpg';
	 document.img3.src='/banking/images/tab_03_o.jpg';
	 span_img1.style.visibility='hidden';
	 span_img2.style.visibility='hidden';
	 span_img3.style.visibility="visible";
}
function go_quick(top,left,body){
	document.next_page.next_top_page.value = top;
	document.next_page.next_left_page.value = left;
	document.next_page.next_body_page.value = body;

	document.next_page.submit();
}
function go_quick2(category,link)
{

	document.go_quick2.action="/banking/"+category+"/"+link+".jsp";
	document.go_quick2.submit();
}
function GoPop(name) {
	if (eval(name) == "") {
		alert("ÆäÀÌÁö¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		return;
	} else {
		document.location.href = eval(name);
    }
}
function goSite1()
{
	window.open(document.fmSite1.selSite1.value,"_new","screenX=10,screenY=10,menubar=yes,toolbar=yes,location=yes");
}
function pfmDemo(demoNo)  {
	demoUrl = "/personal/pfmDemo" + demoNo + ".html";

	popWindow =  window.open(demoUrl,'popup','top=5,left=5,width=749,height=528,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no');
}
function go_familysite(form){

	var formindex=form.selectedIndex;

	if ( formindex != 0 )
	{
		window.open(form.options[formindex].value,'_blank','screenX=10,screenY=10,menubar=yes,toolbar=yes,location=yes');
	}

}
function go_search(query){

	if (query == null || query == "" )
	{
			alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
	} else {
		document.searchForm.query.value = query;
		document.searchForm.submit();
	}

}
//ÄíÅ°°ªÀ» °¡Á®¿À´Â ÇÔ¼ö
function getCookie(name) {
   var from_idx = document.cookie.indexOf(name+'=');
   if (from_idx != -1) {
      from_idx += name.length + 1
      to_idx = document.cookie.indexOf(';', from_idx)

      if (to_idx == -1) {
            to_idx = document.cookie.length
      }
      return unescape(document.cookie.substring(from_idx, to_idx))
   }
   else return null;
}
var quickform="<form name=next_page method=post target='_top'>" +
	      "<input type=hidden name=next_top_page>" +
              "<input type=hidden name=next_left_page>" +
              "<input type=hidden name=next_body_page>" +
              "</form>" +
              "<form name=newopen method=post action='/banking/quick_start.jsp'>" +
              "<input type=hidden name=next_open_page>"+
              "</form>" +
              "<form name=upopen method=post action='http://banking.kjbank.com/cgi-kjbank/get_document?O=iWalletFrame_up'>" +
              "<input type=hidden name=up_open_page>" +
              "</form>" +
		      "<form name=go_quick2 method=post action=''>" +
              "</form>" +
              "<link rel='SHORTCUT ICON' href='/images/kjbank.ico'>";

var old_help = '';
var old_cell = '';
function helpclick( subhelp ,cellbar) {
	if( old_help != subhelp ) {
		if( old_help !='' ) {
			old_help.style.display = 'none';
		}
		if( old_help =='') {
		subhelp0.style.display = 'none';
		}
		subhelp.style.display = 'block';
		old_help = subhelp;
		old_cell = cellbar;
	} else {
		subhelp.style.display = 'none';
		old_help = '';
		old_cell = '';
	}
}

var old_mymenu = '';
function mymenuclick( mymenu ,cellbar) {
        if( old_mymenu != mymenu ) {
                if( old_mymenu !='' ) {
                        old_mymenu.style.display = 'none';
                }
                mymenu.style.display = 'block';
                old_mymenu = mymenu;
        } else {
                mymenu.style.display = 'none';
                old_mymenu = '';
        }
}

// secureframe¿¡¼­ ¿Ã¶ó¿Â ÆäÀÌÁö°¡ ¾Æ´Ñ °æ¿ì false
function checkSecureFrame()
{
	if ( String(top.secureframe) == "undefined" )
	{
		return false;
	}
	else
	{
		return true;
	}
}
//-->

