<!--»èÁ¦½Ã ½ÃÀÛ-->
function del($href) {
  if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
    document.location.href = $href;
  }
}
<!--»èÁ¦½Ã ³¡-->
function my_wish($href) {
  if(confirm("°ü½É¹°Ç° ¸ñ·Ï¿¡ µî·ÏÇÕ´Ï´Ù.")) {
    document.location.href = $href;
  }
}
<!-- Ä¿¼­¸¦ ·Î±×ÀÎÄ­À¸·Î ½ÃÀÛ-->
function fff() { 
if (document.zb_login) 
document.zb_login.user_id.focus() 
} 
<!-- Ä¿¼­¸¦ ·Î±×ÀÎÄ­À¸·Î ³¡

  var Toggle =1;

  function DWtop(chk) {
    Toggle = 0;
    switch(chk) {
          case 1: pf.stop(); break;
          case 2: pf.stop(); break;
    }
  }

  function DWstart(chk) {
    Toggle = 1;
    switch(chk) {
          case 1: pf.start(); break;
          case 2: pf.start(); break;
    }
  }

function frm1_check(f) {
	if((f.baguni_qty.value.search(/[^0-9]+/) != -1) || (f.baguni_qty.value<'1')) {
		alert('¼ö·®À» ¹Ù¸£°Ô ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.'); f.baguni_qty.focus(); return false; }
    return true;
}

function up (inx) {
	document.form.baguni_qty.value = parseInt (document.form.baguni_qty.value) + 1;
}
function down (inx) {
	if (parseInt(document.form.baguni_qty.value) == 0)
	return;
	document.form.baguni_qty.value = parseInt (document.form.baguni_qty.value) - 1;
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
        thefield.value = ""
} 

function enforcechar(what,limit){
if (what.value.length>=limit)
return false
}

function OpenWindow(url)
{   
  if(!url)url='';
  var winopts  = 
  "width=550,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes";
  var popWindow = window.open(url,'POPWIN', winopts);
}

function OpenWindow2()
{
	window.name = "BTPG_CLIENT";
	BTPG_WALLET = window.open("", "BTPG_WALLET", "width=380,height=420");
	BTPG_WALLET.focus();
}



function OpenColorP(target)
{   
 var url='http://pit911.net/wt/admin/ColorPicker.html';

  var nTest = window.showModalDialog(url,"","help=no; scroll=no; dialogWidth=350px; dialogHeight:320px; center:yes");
if (nTest) target.value = nTest;
}


function check_sms(f) {
    if(f.hp1.value.length<1||f.hp2.value.length<1||f.hp3.value.length<1) {
      alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À."); f.hp1.focus(); return false;
    } else if( f.s_memo.value.length<1 ) {
      alert("Àü´ÞÇÒ ¸Þ¼¼Áö¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À."); f.s_memo.focus(); return false;
    } 
    return true;
}

function zipcode(form,address) {
  window.open('../zipcode/zipcode.php?form='+form+'&address='+address,'searchaddress','left=100,top=100,width=445,height=400,scrollbars=yes');
}
function OpenImage(s){
        //
        // º¯¼ö Á¤ÀÇ
        // 
        srcImg = new Image();
        clientWidth = screen.width;
        clientHeight = screen.height;
        srcImg.src = s;
  //
  // ¿­·Á´Â ÆÄÀÏÀ» ÀÌ¸§
  //
        var srcFileName = srcImg.src.substr(srcImg.src.lastIndexOf("/")+1, srcImg.src.length);
        //
        // »õÃ¢ ¶ç¿ì°í ÀÌ¹ÌÁö »ðÀÔ
        //
        win = window.open("","","width=15,height=15,scrollbars=no,resizable=no,left="+(clientWidth/2-15)+",top="+(clientHeight/2-15)+"");
        win.document.writeln("<html>");
        win.document.writeln("<head>");
        win.document.writeln("<title>"+document.title+" ["+srcFileName+"]</title>");
        win.document.writeln("</head>");
        win.document.writeln("<body style='margin:0px;' bgcolor='#333333'>");
        win.document.writeln("<table border='0' cellpadding='0' cellspacing='0' style='cursor:hand' onclick='self.close()'>");
        win.document.writeln(" <tr>");
        win.document.writeln("  <td align='center'><img src="+s+" name='winImg' style='cursor:hand' onclick='self.close()' alt='Å¬¸¯ÇÏ¸é »ç¶óÁý´Ï´Ù'></td>");
        win.document.writeln(" </tr>");
        win.document.writeln("</table>");
        win.document.writeln("</body>");
        win.document.writeln("</html>");

        srcImg = win.document.winImg;
        //
        // ÀÌ¹ÌÁö°¡ ¸ðµÎ ·ÎµùµÉ¶§±îÁö ±â´Ù¸²
        //
        while(true)
                if(srcImg.readyState == "complete")
                        break;
        
        //
        // »õÃ¢ÀÇ Å©±â ¼³Á¤
        //
        var winWidth = srcImg.width+10;
        var winHeight = srcImg.height+29;
        //
        // »õÃ¢ÀÌ ¶ç¿öÁú À§Ä¡ ¼³Á¤
        //
        var left = (clientWidth/2)-(srcImg.width/2);
        var top = (clientHeight/2)-(srcImg.height/2);
        //
        // ÀÌ¹ÌÁöÀÇ Å©±â overflow È®ÀÎÈÄ »õÃ¢ÀÇ Å©±â¿Í À§Ä¡ Àç¼³Á¤
        //
        if(clientWidth <= srcImg.width){
                winWidth = clientWidth;
                left = 0;
                win.document.body.scroll = "auto";
        }
        if(clientHeight <= srcImg.height){
                winHeight = clientHeight-30;
                top = 0;
                win.document.body.scroll = "auto";
        }
        //
        // ÀÌ¹ÌÁö·ÎµùÀÌ ³¡³µÀ½À¸·Î ÀÌ¹ÌÁöÀÇ Å©±â¸¦ »ç¿ëÇÒ¼ö ÀÖ´Ù.
        // ÇØ´ç ÀÌ¹ÌÁöÀÇ »çÀÌÁî¿¡ ¸Â°Ô À©µµ¿ì¸¦ Àç¼³Á¤ÇÑ´Ù.
        win.moveTo(left, top);
        win.resizeTo(winWidth, winHeight);
}
function img_up(img,no,alt)
{
	t = eval("this.img"+no);
//	ts = eval("this.imgs"+no);
t.innerHTML = "<img src=\""+img+"\" onclick=\"OpenImage(this.src)\" width=30 height=30 alt=\""+alt+"\" style=cursor:hand>";
//if(alt=='')ts.innerHTML = "<img src=\""+img+"\" onclick=\"OpenImage(this.src)\" width=30 height=30 alt=\""+alt+"\" style=cursor:hand>";
}





/***************************************************************
*¾àµµ »õÃ¢¶ç¿ì±â
***************************************************************/
var popbackground="ivory" //¹è°æ»ö»ó
var windowtitle="¾àµµº¸±â" //Å¸ÀÌÆ² ¸í

function detectexist(obj){
return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight, textdescription){

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}

getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{
//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
//jkpopwin.moveTo(leftpos, toppos)
jkpopwin.resizeTo(popwidth, popheight+30)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><head><title>'+windowtitle+'</title><style type=text/css>body{font-size:9pt; font-family:Verdana,Tahoma,±¼¸²;letter-spacing:-1px;}</style></head><body topmargin=0 leftmargin=0 '+bodyattribute+'><center><img src="'+imgpath+'" style="margin-bottom: 0.5em;cursor:hand" onclick=window.close()><br>'+textdescription+'</body></html>')
jkpopwin.document.close()
jkpopwin.focus()
}



// Àû¿ëÂ÷Á¾ º¸¿´´Ù ¸»¾Ò´Ù ÇÏ±â
	var old='';

	function menu(name){

		submenu=eval("submenu_"+name+".style");
		if(old!=submenu)
		{
			if(old!='')
			{
				old.display='none';
			}
			submenu.display='block';
			old=submenu;
		}
		else
		{
			submenu.display='none';
			old='';
		}
	}


// ·¹ÀÌ¾î º¸¿´´Ù ¸»¾Ò´Ù ÇÏ±â
function showInfo(div, bool)
{
	var oInfo = eval("document.all.info" + div);
	if (bool){
		oInfo.style.display = "";
	}else{
		oInfo.style.display = "none";
	}
}






/*********************************************
* ÆÄÀÏ¸í: lib.validate.js
* ±â´É: À¯¿¬ÇÑ ÀÚµ¿ Æû °Ë»ç±â
* ¸¸µçÀÌ: °ÅÄ£¸¶·ç <comfuture@maniacamp.com>
* ³¯Â¥: 2002-10-01
* == change log ==
* 2003-10-02 ¿©·¯Ä­À¸·Î ³ª´²Áø Ç×¸ñ¿¡ ´ëÇÑ °Ë»ç±â´É Ãß°¡
* 2003-10-02 ÆÐ½º¿öµåµî µÎ°³ Ç×¸ñ¿¡ ´ëÇÑ ºñ±³ ±â´É Ãß°¡
**********************************************/

/// ¿¡·¯¸Þ½ÃÁö Æ÷¸ä Á¤ÀÇ ///
var NO_BLANK = "{name+Àº´Â} ÇÊ¼öÇ×¸ñÀÔ´Ï´Ù";
var NOT_VALID = "{name+ÀÌ°¡} ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù";
// var TOO_LONG = "{name}ÀÇ ±æÀÌ°¡ ÃÊ°úµÇ¾ú½À´Ï´Ù (ÃÖ´ë {maxbyte}¹ÙÀÌÆ®)";

/// ½ºÆ®¸µ °´Ã¼¿¡ ¸Þ¼Òµå Ãß°¡ ///
String.prototype.trim = function(str) { 
	str = this != window ? this : str; 
	return str.replace(/^\s+/g,'').replace(/\s+$/g,''); 
}

String.prototype.hasFinalConsonant = function(str) {
	str = this != window ? this : str; 
	var strTemp = str.substr(str.length-1);
	return ((strTemp.charCodeAt(0)-16)%28!=0);
}

String.prototype.bytes = function(str) {
	str = this != window ? this : str;
	for(j=0; j<str.length; j++) {
		var chr = str.charAt(j);
		len += (chr.charCodeAt() > 128) ? 2 : 1
	}
	return len;
}

function validate(form) {
	for (i = 0; i < form.elements.length; i++ ) {
		var el = form.elements[i];
		if (el.tagName == "FIELDSET") continue;
		el.value = el.value.trim();

		var minbyte = el.getAttribute("MINBYTE");
		var maxbyte = el.getAttribute("MAXBYTE");
		var option = el.getAttribute("OPTION");
		var match = el.getAttribute("MATCH");
		var glue = el.getAttribute('GLUE');

		if (el.getAttribute("REQUIRED") != null) {
			if (el.value == null || el.value == "") {
				return doError(el,NO_BLANK);
			}
		}

		if (minbyte != null) {
			if (el.value.bytes() < parseInt(minbyte)) {
				return doError(el,"{name+Àº´Â} ÃÖ¼Ò "+minbyte+"¹ÙÀÌÆ® ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
			}
		}

		if (maxbyte != null && el.value != "") {
			var len = 0;
			if (el.value.bytes() > parseInt(maxbyte)) {
				return doError(el,"{name}ÀÇ ±æÀÌ°¡ ÃÊ°úµÇ¾ú½À´Ï´Ù (ÃÖ´ë "+maxbyte+"¹ÙÀÌÆ®)");
			}
		}

		if (match && (el.value != form.elements[match].value)) return doError(el,"{name+ÀÌ°¡} ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù");

		if (option != null && el.value != "") {
			if (el.getAttribute('SPAN') != null) {
				var _value = new Array();
				for (span=0; span<el.getAttribute('SPAN');span++ ) {
					_value[span] = form.elements[i+span].value;
				}
				var value = _value.join(glue == null ? '' : glue);
				if (!funcs[option](el,value)) return false;
			} else {
				if (!funcs[option](el)) return false;
			}
		}
	}
	return true;
}

function josa(str,tail) {
	return (str.hasFinalConsonant()) ? tail.substring(0,1) : tail.substring(1,2);
}

function doError(el,type,action) {
	var pattern = /{([a-zA-Z0-9_]+)\+?([°¡-Èþ]{2})?}/;
	var name = (hname = el.getAttribute("HNAME")) ? hname : el.getAttribute("NAME");
	pattern.exec(type);
	var tail = (RegExp.$2) ? josa(eval(RegExp.$1),RegExp.$2) : "";
	alert(type.replace(pattern,eval(RegExp.$1) + tail));
	if (action == "sel") {
		el.select();
	} else if (action == "del")	{
		el.value = "";
	}
	el.focus();
	return false;
}	

/// Æ¯¼ö ÆÐÅÏ °Ë»ç ÇÔ¼ö ¸ÅÇÎ ///
var funcs = new Array();
funcs['email'] = isValidEmail;
funcs['phone'] = isValidPhone;
funcs['userid'] = isValidUserid;
funcs['hangul'] = hasHangul;
funcs['number'] = isNumeric;
funcs['engonly'] = alphaOnly;
funcs['jumin'] = isValidJumin;
funcs['bizno'] = isValidBizNo;
funcs['domain'] = isValidDomain;
funcs['userDefine1'] = isValidUserDefine_1;
funcs['userDefine2'] = isValidUserDefine_2;

/// ÆÐÅÏ °Ë»ç ÇÔ¼öµé ///
function isValidEmail(el,value) {
	var value = value ? value : el.value;
	var pattern = /^[_a-zA-Z0-9-\.]+@[\.a-zA-Z0-9-]+\.[a-zA-Z]+$/;
	return (pattern.test(value)) ? true : doError(el,NOT_VALID);
}

function isValidUserid(el) {
	var pattern = /^[a-zA-Z]{1}[a-zA-Z0-9_]{3,14}$/;
	return (pattern.test(el.value)) ? true : doError(el,"{name+Àº´Â} 4ÀÚÀÌ»ó 15ÀÚ ¹Ì¸¸ÀÌ¾î¾ß ÇÏ°í,\n ¿µ¹®,¼ýÀÚ, _ ¹®ÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù");
}
// add
function isValidUserDefine_1(el) {
	var pattern = /^[a-zA-Z]{1}[a-zA-Z0-9_-]{1,19}$/;
	return (pattern.test(el.value)) ? true : doError(el,"{name+Àº´Â} 2ÀÚÀÌ»ó 20ÀÚ ¹Ì¸¸ÀÌ¾î¾ß ÇÏ°í,\n ¿µ¹®,¼ýÀÚ, _, - ¹®ÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù");
}
function isValidUserDefine_2(el) {
	var pattern = /^[a-zA-Z0-9_-]{4,15}$/;
	return (pattern.test(el.value)) ? true : doError(el,"{name+Àº´Â} 4ÀÚÀÌ»ó 15ÀÚ ¹Ì¸¸ÀÌ¾î¾ß ÇÏ°í,\n ¿µ¹®,¼ýÀÚ, _, - ¹®ÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù");
}

function hasHangul(el) {
	var pattern = /[°¡-Èþ]/;
	return (pattern.test(el.value)) ? true : doError(el,"{name+Àº´Â} ¹Ýµå½Ã ÇÑ±ÛÀ» Æ÷ÇÔÇØ¾ß ÇÕ´Ï´Ù");
}

function alphaOnly(el) {
	var pattern = /^[a-zA-Z]+$/;
	return (pattern.test(el.value)) ? true : doError(el,NOT_VALID);
}

function isNumeric(el) {
	var pattern = /^[0-9]+$/;
	return (pattern.test(el.value)) ? true : doError(el,"{name+Àº´Â} ¹Ýµå½Ã ¼ýÀÚ·Î¸¸ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù");
}

function isValidJumin(el,value) {
    var pattern = /^([0-9]{6})-?([0-9]{7})$/; 
	var num = value ? value : el.value;
    if (!pattern.test(num)) return doError(el,NOT_VALID); 
    num = RegExp.$1 + RegExp.$2;

	var sum = 0;
	var last = num.charCodeAt(12) - 0x30;
	var bases = "234567892345";
	for (var i=0; i<12; i++) {
		if (isNaN(num.substring(i,i+1))) return doError(el,NOT_VALID);
		sum += (num.charCodeAt(i) - 0x30) * (bases.charCodeAt(i) - 0x30);
	}
	var mod = sum % 11;
	return ((11 - mod) % 10 == last) ? true : doError(el,NOT_VALID);
}

function isValidBizNo(el, value) { 
    var pattern = /([0-9]{3})-?([0-9]{2})-?([0-9]{5})/; 
	var num = value ? value : el.value;
    if (!pattern.test(num)) return doError(el,NOT_VALID); 
    num = RegExp.$1 + RegExp.$2 + RegExp.$3;
    var cVal = 0; 
    for (var i=0; i<8; i++) { 
        var cKeyNum = parseInt(((_tmp = i % 3) == 0) ? 1 : ( _tmp  == 1 ) ? 3 : 7); 
        cVal += (parseFloat(num.substring(i,i+1)) * cKeyNum) % 10; 
    } 
    var li_temp = parseFloat(num.substring(i,i+1)) * 5 + '0'; 
    cVal += parseFloat(li_temp.substring(0,1)) + parseFloat(li_temp.substring(1,2)); 
    return (parseInt(num.substring(9,10)) == 10-(cVal % 10)%10) ? true : doError(el,NOT_VALID); 
}

function isValidPhone(el,value) {
	var pattern = /^([0]{1}[0-9]{1,2})-?([1-9]{1}[0-9]{2,3})-?([0-9]{4})$/;
	var num = value ? value : el.value;
	if (pattern.exec(num)) {
		if(RegExp.$1 == "010" || RegExp.$1 == "011" || RegExp.$1 == "016" || RegExp.$1 == "017" || RegExp.$1 == "018" || RegExp.$1 == "019") {
			if (!el.getAttribute('SPAN')) el.value = RegExp.$1 + "-" + RegExp.$2 + "-" + RegExp.$3;
		}
		return true;
	} else {
		return doError(el,NOT_VALID);
	}
}

/*
function isValidDomain(el) {
	var pattern = /^.+(\.[a-zA-Z]{2,3})$/;
	return (pattern.test(el.value)) ? true : doError(el,NOT_VALID);
}
*/

function isValidDomain(el,value) {
	var value = value ? value : el.value;
	var pattern = new RegExp("^(http://)?(www\.)?([°¡-Èþa-zA-Z0-9-]+\.[a-zA-Z]{2,3}$)","i");
	if (pattern.test(value)) {
		el.value = RegExp.$3;
		alert(RegExp.$3);
		return true;
	} else {
		return doError(el,NOT_VALID);
	}
}




/* ###################################### °Ë»ç±â³¡ ##############################*/



/* ###################################### Table Å×µÎ¸® µÕ±Û°Ô ##############################*/
function roundTable(objID) {
var obj = document.getElementById(objID);
var Parent, objTmp, Table, TBody, TR, TD;
var bdcolor, bgcolor, Space;
var trIDX, tdIDX, MAX;
var styleWidth, styleHeight;

// get parent node
Parent = obj.parentNode;
objTmp = document.createElement('SPAN');
Parent.insertBefore(objTmp, obj);
Parent.removeChild(obj);

// get attribute
bdcolor = obj.getAttribute('rborder');
bgcolor = obj.getAttribute('rbgcolor');
radius = parseInt(obj.getAttribute('radius'));
if (radius == null || radius < 1) radius = 1;
else if (radius > 6) radius = 6;

MAX = radius * 2 + 1;

/*
create table {{
*/
Table = document.createElement('TABLE');
TBody = document.createElement('TBODY');

Table.cellSpacing = 0;
Table.cellPadding = 0;

for (trIDX=0; trIDX < MAX; trIDX++) {
TR = document.createElement('TR');
Space = Math.abs(trIDX - parseInt(radius));
for (tdIDX=0; tdIDX < MAX; tdIDX++) {
TD = document.createElement('TD');

styleWidth = '1px'; styleHeight = '1px';
if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
else if (radius > 2) {
if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
}

if (styleWidth != null) TD.style.width = styleWidth;
if (styleHeight != null) TD.style.height = styleHeight;

if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
else if (tdIDX > Space && Space < MAX - tdIDX - 1) TD.style.backgroundColor = bgcolor;

if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
TR.appendChild(TD);
}
TBody.appendChild(TR);
}

/*
}}
*/

Table.appendChild(TBody);

// insert table and remove original table
Parent.insertBefore(Table, objTmp);
}
/* ###################################### Table Å×µÎ¸® µÕ±Û°Ô ³¡ ##############################*/

/*ÀÌ¹ÌÁö Ã¼ÀÎÂ¡*/
function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 
/*ÀÌ¹ÌÁöÃ¼ÀÎÂ¡³¡*/

					function na_preload_img()
					{ 
						var img_list = na_preload_img.arguments;
						if (document.preloadlist == null) document.preloadlist = new Array();
						var top = document.preloadlist.length;
						for (var i=0; i < img_list.length; i++) {
							document.preloadlist[top+i] = new Image;
							document.preloadlist[top+i].src = img_list[i+1];
						} 
					}
























	//-----------------------------------------------------------------------------
// Å¾À¸·Î&½ºÅ©·Ñµû¶ó ¿òÁ÷ÀÌ´Â ¹è³Ê
//-----------------------------------------------------------------------------

var stmnLEFT = 910;			// ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
var stmnGAP1 = 160;			// ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é
var stmnGAP2 = 100;			// ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
var stmnBASE = 60;			// ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
var stmnActivateSpeed = 1;	// ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
var stmnScrollSpeed = 1;	// ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)

var stmnTimer;
function ReadCookie(name) {
	var label = name + "=";
	var labelLen = label.length;
	var cLen = document.cookie.length;
	var i = 0;
	while (i < cLen) {
		var j = i + labelLen;
		if (document.cookie.substring(i, j) == label) {
		var cEnd = document.cookie.indexOf(";", j);
		if (cEnd == -1) cEnd = document.cookie.length;
			return unescape(document.cookie.substring(j, cEnd));
		}
		i++;
	}
	return "";
}

function SaveCookie(name, value, expire) {
	var eDate = new Date();
	eDate.setDate(eDate.getDate() + expire);
	document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}
function RefreshStaticMenu() {
	var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
	stmnStartPoint = parseInt(STATICMENU.style.top, 10);
	stmnEndPoint = document.body.scrollTop + stmnGAP2;
	if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
	stmnRefreshTimer = stmnActivateSpeed;
	if ( stmnStartPoint != stmnEndPoint ) {
		stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
		STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
		stmnRefreshTimer = stmnScrollSpeed;
	}
	stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}
function InitializeStaticMenu() {
	STATICMENU.style.left = stmnLEFT;
	STATICMENU.style.top = document.body.scrollTop + stmnBASE;
	RefreshStaticMenu();
}



function gotop() {
	window.scrollTo(0,0);
}

function gotop_Call() {
	document.body.ondblclick = Top;
}

var Xpos = 0;
var Ypos = 0;
var Ygravity = 0.85;
var scrollPos = 0;
var oldScrollPos = 0;


function FloatMenu(){
	docWidth = document.body.clientWidth; // Update document width
	docHeight = document.body.clientHeight; // Update document height
	oldScrollPos = scrollPos;
	scrollPos = document.body.scrollTop; // Update scrollbar position

	Xpos = 921;
	//Xpos = (docWidth - floater.offsetWidth) - 10; //¿À¸¥ÂÊ ¿©¹é ¹è³Ê°¡ ¿À¸¥ÂÊ¿¡ ºÙÀ»°æ¿ì
	//Xpos = (docWidth / 2) + 410; // Áß¾ÓÁ¤·ÄÀÏ°æ¿ì. " + 410 Àº Å×ÀÌºí Å©±â / 2 "
	Yboundary = ((scrollPos + docHeight) - floater.offsetHeight) - 96; //ÇÏ´Ü¿©¹é

	if(floater.offsetTop < Yboundary - 1){ // Object is behind boundary
		Ypos += 2;
	}

	if(floater.offsetTop > Yboundary + 1){ // Object is past boundary
		Ypos -= 1;
	}

	Ypos *= Ygravity; // Slow object down

	floater.style.pixelLeft = Xpos;
	floater.style.pixelTop += Ypos; // Make object bounce
}

	//-----------------------------------------------------------------------------
//end Å¾À¸·Î&½ºÅ©·Ñµû¶ó ¿òÁ÷ÀÌ´Â ¹è³Ê
//-----------------------------------------------------------------------------




//ÅøÆÁ¹Ú½º

var n = (document.layers) ? 1:0; 

var ie = (document.all) ? 1:0; 

 

function overTip(boxObj) { 

if (ie) { 
      boxObj.style.visibility = "visible"; 

      boxObj.filters.item(0).stop(); 

}           

} 

function outTip(boxObj) { 

if (ie) { 

boxObj.style.visibility = "visible"; 

boxObj.filters.item(0).transition = 12; 

boxObj.filters.item(0).apply(); 

boxObj.style.visibility = "hidden"; 

boxObj.filters.item(0).play(); 

} 

} 
//ÅøÆÁ¹Ú½º







function showHide(fieldName, selectNum, totRowCnt) //º¸¿´´Ù ¾Èº¸¿´´Ù ÇÏ´Â ·¹ÀÌ¾î(DIV ID¸í/¼±ÅÃÇÑ ±Û¹øÈ£/ÃÑ ROW¼ö)
{
	var selField;

	for(var i=0; i<totRowCnt; i++) {
	
		selField = eval(document.getElementById(fieldName+i));

		if (i == selectNum) {
			if ( selField.style.display == 'none' )
				selField.style.display=''
			else
				selField.style.display='none'
		}
		else
			selField.style.display='none'
	}

}

