<!--


if (opener==null)
{
	if (!parent.tophead) 
	{
		location.href='http://www.headbank.co.kr/';
	}		
}



var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";




/************* ÇÃ·¡½¬ Å×µÎ¸® Á¦°Å ½ºÅ©¸³Æ®******************/

function openflash(width,height,src){ 
    return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+width+" height="+height+"><param name=movie value="+src+"><param name=quality value=high ><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>"; 
} 

document.write("<style type=\"text/css\">object, embed {display:none}</style>");

window.attachEvent('onload', function() 
{ 
    var objs = document.all.tags('OBJECT'); 
    var embs = document.all.tags('EMBED'); 
    for (var i=0,cnt=objs.length; i<cnt; i++) 
	{
        objs[i].outerHTML = objs[i].outerHTML; 
		objs[i].style.display = 'block';
	}
    for (var i=0,cnt=embs.length; i<cnt; i++) 
	{
        embs[i].outerHTML = embs[i].outerHTML; 
		embs[i].style.display = 'block';
	}
}); 


/************************************************************/



function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

//function getSty(id) {
//	x = getRef(id);
//	return (isNS4 ? getRef(id) : getRef(id).style);
//}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;



function startVScroll() {
//    if (isNS4)
//        vSecond.top = scrollerHeight + 5;
//    else
//        vSecond.style.top = scrollerHeight + 5;
   // moveVFirstImage(vFirst);
}

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		// yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 30; // À§ÂÊ À§Ä¡
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop)+ 320; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ('moveRightEdge()', timeoutNextCheck);
}




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))
	}
	return 0;
}



function checkkey(formname)
{
        if (event.keyCode == 13)
		sub_mit1(formname);
    	else        
    		return;

 }

function sub_mit1(formname) {

        if(!formname.login_id.value) {
                alert('¾ÆÀÌµð¸¦  ÀÔ·ÂÇÏ¼¼¿ä.');
                formname.login_id.focus();
                return;
        }
        if(!formname.login_pswd.value) {
                alert('ºñ¹Ð¹øÈ£¸¦  ÀÔ·ÂÇÏ¼¼¿ä.');
                formname.login_pswd.focus();
                return;
        }

	if(formname.ssl_login.checked)
		formname.action = 'https://www.headbank.co.kr/edow3xv343gu9xiypkfhwkw893kflfks2Ywq5lqixgLi/login.html';
	else
		formname.action = 'login.html';

        formname.submit();
}






function sub_mit2()
{

 if(!form3.subject.value) {
        alert('±ÛÁ¦¸ñÀ» ³Ö¾îÁÖ¼¼¿ä.');
        form3.subject.focus();
        return;
 }
 if(!form3.content.value) {
        alert('º»¹® ³»¿ëÀÌ ¾ø½À´Ï´Ù.');
        form3.content.focus();
        return;
 }
 form3.submit();
}

function setFocus(formNo, elementNo) {
  if (document.forms.length > 0) {
   document.forms[formNo].elements[elementNo].focus();
  }
}


var msg = ''; 
function hideURL() {
    window.status = msg;
    setTimeout('hideURL()', 0);
}
hideURL();

 
function wopen(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  openwin=window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
 
function tutor_leclist_go(value)
{
	if (value!='')
		location.href='tutor_leclist.html?tutorid='+value;
}


function bbslist_go(value)
{
	if (value!='')	
		location.href='bbslist.html?bbs='+value;
}
	

function pub_change(value)
{
	if (value!='')	
		location.href='pub_u.html?pub='+value;
}




function team_change(value)
{
	location.href='team_cookie_u.html?team='+value;
}



function leclist_submit(frm)
{
	var ischeck=0, i, chkbox;

	// ¼ö°­½ÅÃ» Ã¼Å©¹Ú½º¿¡ Ã¼Å©°¡ µÇ¾î ÀÖ´ÂÁö È®ÀÎ
	for (i=0; i<frm.cnt.value ;i++) 
	{
		chkbox=frm.elements['paychk['+i+']'];
		if (chkbox.checked) ischeck=1;
	}
	if (!ischeck)
	{
		alert('¼ö°­½ÅÃ»ÇÒ °­ÀÇ¸¦ ¼±ÅÃÇÏ¼¼¿ä.');
		return false;
	}		
	return true;
}	




function chap_s_submit()
{
	if (!confirm('ÀÌ ´Ü¿øÀ» »ùÇÃ°­ÀÇ·Î µî·ÏÇÏ½Ã°Ú½À´Ï±î?')) 
		return false;
	return true;
}



function chap_d_submit()
{
	if (!confirm('ÀÌ ´Ü¿øÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) 
		return false;
	return true;
}


function sugang_cncl_submit()
{
	if (!confirm('ÀÌ °­ÀÇ¿¡ ´ëÇÑ ¼ö°­½ÅÃ»À» Ãë¼ÒÇÏ½Ã°Ú½À´Ï±î?')) 
		return false;
	return true;
}


function liveconv_submit(frm)
{
	if (!confirm('ÀÌ VOD°­ÀÇ¸¦ ¶óÀÌºê°­ÀÇ·Î ÀüÈ¯ÇÏ½Ã·Á¸é\n\n'+frm.total.value+'¿øÀ» Ãß°¡·Î °áÁ¦ÇÏ¼Å¾ß ÇÕ´Ï´Ù.\n\n°áÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) 
		return false;
	return true;
}




function printWin() 
{
   if(window.print){
	window.print();
   }
   else
   {
	alert('³Ý½ºÄÉÀÌÇÁ4.0 ÀÌ³ª ÀÍ½ºÇÃ·Î·¯ 5.0ÀÌ»ó¿¡¼­¸¸ Áö¿øµË´Ï´Ù.');
   }
}



function closeWin() 
{
   window.close();
}





function join_submit(frm) 
{
   	if (!frm.chk1.checked)
   	{
		alert('¾à°ü¿¡ µ¿ÀÇÇÏ¼Å¾ß È¸¿ø°¡ÀÔÀ» ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
		return false;	
   	}	
   
   	if (!frm.chk2.checked)
   	{
		alert('°³ÀÎÁ¤º¸ ¼öÁý.ÀÌ¿ë¸ñÀû¿¡ µ¿ÀÇÇÏ¼Å¾ß È¸¿ø°¡ÀÔÀ» ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
		return false;
	   }
   
	ischecked=false;
	for(i=0;i<2;i++) if (frm.kind[i].checked) {ischecked=true; break; }
	if (!ischecked)
	{
		alert('Á¦ÀÚÈ¸¿øÀ¸·Î °¡ÀÔÇÒÁö, ¼±»ý´ÔÈ¸¿øÀ¸·Î °¡ÀÔÇÒÁö¸¦ ¼±ÅÃÇÏ¼¼¿ä.');
		return false;			
	}	
   	return true;   

}



//-->