function getCookie(cookieName) {
	var cookieValue = '';
	var posName = document.cookie.indexOf(escape(cookieName) + '=');

	if (posName != -1) {
		var posValue = posName + (escape(cookieName) + '=').length;
		var endPos = document.cookie.indexOf(';', posValue);
		if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));
		else cookieValue = unescape(document.cookie.substring(posValue));
	}
	return (cookieValue);
}

function setCookie(cookieName, cookieValue, expires, path, domain, secure) {
	document.cookie =
		escape(cookieName) + '=' + escape(cookieValue)
		+ (expires ? '; expires=' + expires.toGMTString() : '')
		+ (path ? '; path=' + path : '')
		+ (domain ? '; domain=' + domain : '')
		+ (secure ? '; secure' : '');
}

//°´Ã¼ »ý¼º
function getXMLHttpRequest() {
	if (window.ActiveXObject)			// iE 
	{
		try
		{
			return new ActiveXObject("Msxml2.XMLHTTP");  //msxml ÀÌ ¼³Ä¡ µÇ¾úÀ»½Ã
		}
		catch (e)
		{
			try
			{
				return new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e1)
			{
				return null;
			}
		}
	}
	else if (window.XMLHttpRequest)		// iE ÀÌ¿Ü ºê¶ó¿ìÀú
	{
		return new XMLHttpRequest();
	}
	else		// »ý¼º ½ÇÆÐ
	{
		return null;
	}
}

//Get ¹æ½Ä
//httpRequest.open("GET","/test.txt?id=XXX&pw=***",true);
//httpRequest.send(null);

//Post ¹æ½Ä
//httpRequest.open("POST","/test.txt", true);
//httpRequest.send("id=XXX&pw=***");


var httpRequest = null;

function load(method, url, header, syn) 
{
	if (method = "GET")
	{
		url = url + "?" + header;
		header = null;
	}
	else if(method = "POST")
	{
		//httpRequest.open(method,url,syn);
		//httpRequest.send(header);
	}
	else
	{
		alert("Àß¸øµÈ ¹æ½ÄÀ¸·Î Àü¼ÛÇÏ·Á°í ÇÕ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
		return null;
	}

	httpRequest = getXMLHttpRequest();		//°´Ã¼ »ý¼º
	httpRequest.onreadystatechange = callbackResult;		//callback ½Ã
	httpRequest.open(method,url,syn);
	httpRequest.send(header);  //µ¿±â ¹æ½ÄÀÏ °æ¿ì °á°ú¸¦ ±â´Ù¸°´Ù.(ºêÀÚ¿ìÀú ¹æ½Ä¿¡ µû¶ó Ã³¸®ºÒ´É °¡´É¼º)
										//ºñµ¿±â ¹æ½ÄÀÏ °æ¿ì ´ÙÀ½ ¸í·É ¹Ù·Î Ã³¸®.(Å©·Î½º ºê¶ó¿ìÀú ÃßÃµ)

	
}

//.readyState (»óÅÂ)¿¡ µû¶ó Ã³¸®
//ÆäÀÌÁö ¹ÌÁ¸Àç½Ã ¿ÀÆä¶ó 3À¸·Î º¯°æ ¾ÈÇÔ,  ÆÄÀÌ¾îÆø½º 3À¸·Î º¯°æµÊ
//Å©·Î½º ºê¶ó¿ìÀú : 1 °ú 4¸¸ »ç¿ë ÃßÃµ

//.status (°á°ú»óÅÂ)
// 200 : OK								¼º°ø
// 403 : Forbidden					Á¢±Ù°ÅºÎ
// 404 : Not Found					ÆäÀÌÁö ¾øÀ½
// 500 : Internal Server Error		¼­¹ö ¿À·ù ¹ß»ý

//.statusText (°á°ú »óÅÂ ¿µ¹® ¹®Àå)
// À§ ¿µ¹® ¼³¸í ¹®ÀÚ¿­
// Å©·Î½º ºê¶ó¿ìÀú : ¿ÀÆä¶ó 8.51 ÀÌÀü ¹öÀü Áö¿ø ¾ÈÇÔ



function callbackResult() //callback ÇÔ¼ö
{
	if (httpRequest.readyState == 0)	
	{
		//UNINITIALIZED °´Ã¼¸¸ »ý¼º ¹ÌÃÊ±âÈ­ 
	}
	else if (httpRequest.readyState == 1)	
	{
		//LOADING open È£Ãâ ÀÌÈÄ send È£Ãâ ÀÌÀü
	}
	else if (httpRequest.readyState == 2)	
	{
		//LOADED send È£Ãâ ÀÌÈÄ status¿Í Çì´õ µµÂøÀÌÀü »óÅÂ
	}
	else if (httpRequest.readyState == 3)	
	{
		//INTERACTIVE ÀÏºÎ µ¥ÀÌÅÍ ¼ö½Å »óÅÂ
	}
	else if (httpRequest.readyState == 4)
	{
		//COMPLETED µ¥ÀÌÅÍ ¿ÏÀü ¼ö½Å »óÅÂ
		if (httpRequest.status == 200)
		{
			// 200 : OK	¼º°ø
			// httpRequest.ResponseText ¸¦ °¡Áö°í Ã³¸®
			process();  //Ã³¸®½Ã 
		}
		else if (httpRequest.status == 403)
		{
			//403 : Forbidden					Á¢±Ù°ÅºÎ
			alert("Error 403 : Á¢±ÙÀÌ °ÅºÎµÇ¾ú½À´Ï´Ù.");
		}
		else if (httpRequest.status == 404)
		{
			// 404 : Not Found					ÆäÀÌÁö ¾øÀ½
			alert("Error 404 : ÆÄÀÏÀÌ Á¸Àç ÇÏÁö ¾Ê½À´Ï´Ù.");
		}
		else if (httpRequest.status == 500)
		{
			// 500 : Internal Server Error		¼­¹ö ¿À·ù ¹ß»ý
			alert("Error 500 : ¿À·ù°¡ ¹ß»ý ÇÏ¿´½À´Ï´Ù.");
		}
	}
}

//function process() //Ã³¸® ÇÔ¼ö{}



function focusBox(g)
{
	if(g > 0){				
		tabChange("contentTab" + g);
		if(g == 1) {		
			document.getElementById("tabL02").style.display = "none";
			document.getElementById("tabL01").style.display = "";
		}
		else if(g == 2){
			document.getElementById("tabL01").style.display = "none";
			document.getElementById("tabL02").style.display = "";
		}
	}	
}

function tabChange(tabnm)
{	
	for(var i = 1; i <= 2; i++) {
		document.getElementById("contentTab" + i).parentNode.parentNode.parentNode.className = "btn-b02";
		document.getElementById("contentTab" + i).className = "link14";
	}
	
	
	if(tabnm.length > 0){
		document.getElementById(tabnm).parentNode.parentNode.parentNode.className = "btn-b01";
		document.getElementById(tabnm).className = "link15";
	}
}


// Open New Window
function openNewWindow(url,winName,condition)
{
	eval("var " + winName);

	eval(winName + " = window.open(url,winName,condition);");
	eval(winName + ".focus();");
	// condition : top=0, left=0, width=10, height=10, toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0
}

function MM_openBrWindow(url,winName,condition)
{
   window.open(url,winName,condition);

}

function OpenWin(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable, kind){
	if(kind == 1){
		var winl = (screen.width/2)-(width/2); 
		var wint = (screen.height/2)-(height/2); 
	}
	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';
	fo = window.open(url, name, 'left='+winl+',top='+wint+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	fo.focus();
}

function Number_Format(fn)
{ 
      var str = fn.value; 
      var Re = /[^0-9]/g; 
      var ReN = /(-?[0-9]+)([0-9]{3})/; 
      str = str.replace(Re,'');              
      while (ReN.test(str)) { 
              str = str.replace(ReN, "$1,$2"); 
              } 
      fn.value = str; 
}

//¼ýÀÚ¸¸ ÀÔ·Â ¹Þ±â
function numInput() {    
    var keyCode = event.keyCode;
    if ((keyCode > 47 && keyCode < 58) || keyCode == 13) {}
    else {
         event.returnValue=false;
    }
 }

function checNumInput()
{
 var objEv = event.srcElement;
 var num ="0123456789";
 event.returnValue = true;
  
 for (var i=0;i<objEv.value.length;i++)
 {
    if(-1 == num.indexOf(objEv.value.charAt(i))){
       event.returnValue = false;	
    }
    if(!event.returnValue){
       alert("¼ýÀÚ¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù.");
       objEv.value="";
    }
 }
}

 //¼ýÀÚ¿Í ¿µ¹®ÀÚ¸¸ ÀÔ·Â ¹Þ±â
function numEngInput() {    
    var keyCode = event.keyCode;	
    if ((keyCode > 47 && keyCode < 58) || (keyCode > 96 && keyCode < 123) || (keyCode > 64 && keyCode < 91) || keyCode == 13) {}
    else {
         event.returnValue=false;
     }
 }
 
  //¼ýÀÚ¿Í ¿µ¹®ÀÚ¸¸ ÀÔ·Â ¹Þ±â
function numBlankEngInput() {    
    var keyCode = event.keyCode;
	
    if ((keyCode > 46 && keyCode < 58) || (keyCode > 96 && keyCode < 123) || (keyCode > 64 && keyCode < 91) || keyCode == 13 || keyCode == 32) {}
    else {
         event.returnValue=false;
     }
 }
 
 
  //Æ¯Á¤¹®ÀÚ ÀÔ·Â ºÒ°¡
function noinputChar() {    
    var keyCode = event.keyCode;	
   if (keyCode == 49) {		// "'"    
         event.returnValue=false;
     }
 }




 //¼ýÀÚ¿Í "-"¸¸ ÀÔ·Â ¹Þ±â(ÀüÈ­¹øÈ£ ÀÔ·Â ¹ÞÀ»½Ã)
function telDashInput() {    
    var keyCode = event.keyCode;	
    if ((keyCode > 47 && keyCode < 58) || keyCode == 45) {}
    else {
         event.returnValue=false;
     }
 }

function currentDateTime()
{
	var today = new Date()
	var tempDate;
	var tempTime;
	
	var yyyy, mm, dd, hh, mi, ss, ampm;
	
	yyyy = today.getYear();
	mm = (today.getMonth()+1) + "";
	dd = today.getDate() + "";
		
	if((today.getHours() - 12) < 0){
		ampm = "¿ÀÀü"
		hh = today.getHours() + "";
	}
	else{
		ampm = "¿ÀÈÄ"
		hh = (today.getHours() - 12) + "";
	}
	
	if(hh == "0") hh = "12";	
		
	mi = today.getMinutes() + "";
	ss = today.getSeconds() + "";
	
	if(mm.length < 2) mm = "0" + mm;
	if(dd.length < 2) dd = "0" + dd;
	if(hh.length < 2) hh = "0" + hh;
	if(mi.length < 2) mi = "0" + mi;
	if(ss.length < 2) ss = "0" + ss;
	
	tempDate = yyyy + "/" + mm + "/" + dd + " ";
	tempTime = hh + ":" + mi + ":" + ss ;

	return tempDate + " " + ampm + " " + tempTime;	
}

var timeSpan;
function onlineDateTime(obj)
{
	if(obj != null){
		timeSpan = obj;
		setInterval("timeSpan.innerHTML = currentDateTime();",1000);
	}
}

var checkNUM=0;
var checkNUM2=0;
var checkValue=false;

function allCheck(chkForm)
{
	checkNUM++;
 	if(checkNUM%2==0) checkValue = false;
 	else checkValue = true;
	
	var elementSize = chkForm.length;

	if(elementSize) 	
	{
	 	for(i=0; i<chkForm.length; i++)
		{
			if (!chkForm[i].disabled)
			{
				chkForm[i].checked = checkValue;
			}
	  		
 		}
	}
	else
	{
		if (!chkForm.disabled)
		{
			chkForm.checked = checkValue;
		}
	}	
}


//Ã¼Å© ¹Ú½º Ã¼Å© ¿©ºÎ
function CheckBox_Checking(chkForm)
{
	var i=0;			
	var check_y = 0;	
	var elementName = chkForm;		
	var elementSize = 0;
	
	if (typeof(elementName) != "undefined")
	{
		elementSize = elementName.length;

		if(elementSize){			
			for(i=0;i<elementSize;i++){
				if(elementName[i].checked==true){				
					check_y++;
				}
			}
		}else{
			if(elementName.checked){			
				check_y++;	
			}
		}
	}	

	if(check_y){
		return true;		
	}else{
		alert("¼±ÅÃµÈ Ç×¸ñÀÌ ¾ø½À´Ï´Ù.")
		return false;
	}

}
 
function LTrim(str){
	if (str==null){
		return null;
	} 
	
	for(var i=0;str.charAt(i)==" ";i++);

	return str.substring(i,str.length);
}

function RTrim(str){ 
	if (str==null){
		return null;
	} 
		
	for(var i=str.length-1;str.charAt(i)==" ";i--); 
		
	return str.substring(0,i+1); 
}

function Trim(str){return LTrim(RTrim(str));}

function trim( str ){
	return Trim(str);
    //return str.replace(/(^s*)|(s*$)/g, "");
    
} // end trim

function CheckByteLength(str, limitBytes)
{
 	var byteLen = 0;
 	for(i=0; i<str.length; i++)
 	{
  		if(str.charCodeAt(i) > 255)
   			byteLen += 2;
  		else
   			byteLen ++;
  
  		if(byteLen > limitBytes)
   			return false;
 	}
 	return true;
}

//¹®ÀÚ¿­ ÀÚ¸£±â
function CutString(str, limitBytes)
{
 	var byteLen = 0;
 	for(i=0; i<str.length; i++)
 	{
  		if(str.charCodeAt(i) > 255)
   			byteLen += 2;
  		else
   			byteLen ++;
  
  		if(byteLen > limitBytes)
   			return str.substring(0, i);
 	}
 	return str;
}


function CheckInputLength(obj, limitBytes, fieldName, alertFlag, idx)
{	
	

	if(obj.length>0){
		
		if(CheckByteLength(obj[idx].value, limitBytes) == false)
 		{
 			if(alertFlag) alert(fieldName + "´Â ÃÖ´ë " + limitBytes + "¹ÙÀÌÆ® ±îÁö¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù.\n(ÇÑ±Û "+ (limitBytes/2)+"ÀÚ, ¿µ¹® " + limitBytes + "ÀÚ)");
 		
  			obj[idx].value = CutString(obj[idx].value, limitBytes);
		}
	}else{

		if(CheckByteLength(obj.value, limitBytes) == false)
		{
			if(alertFlag) alert(fieldName + "´Â ÃÖ´ë " + limitBytes + "¹ÙÀÌÆ® ±îÁö¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù.\n(ÇÑ±Û "+ (limitBytes/2)+"ÀÚ, ¿µ¹® " + limitBytes + "ÀÚ)");
			
			obj.value = CutString(obj.value, limitBytes);
		}
	}
}

/* byte check(´ÙÀ½²¨) */
function updateChar(FieldName, mententname, textlimitname){

		var strCount = 0;
		var tempStr, tempStr2;	
		for(i = 0;i < document.getElementById(mententname).value.length;i++)
		{
			tempStr = document.getElementById(mententname).value.charAt(i);
			if(escape(tempStr).length > 4) strCount += 2;
				else strCount += 1 ;
		}
		if (strCount > FieldName){
			alert("ÃÖ´ë " + FieldName + "byteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.");	
			strCount = 0;		
			tempStr2 = "";
			for(i = 0; i < document.getElementById(mententname).value.length; i++) 
			{
				tempStr = document.getElementById(mententname).value.charAt(i);	
				if(escape(tempStr).length > 4) strCount += 2;
				else strCount += 1 ;
				if (strCount > FieldName)
				{
					if(escape(tempStr).length > 4) strCount -= 2;
					else strCount -= 1 ;	
					break;	      		
				}
				else tempStr2 += tempStr;
			}	    
			document.getElementById(mententname).value = tempStr2;
			//document.writeForm.mentents.value = tempStr2;
		}		
		document.getElementById(textlimitname).innerHTML = strCount;
}


//Ã·ºÎ ÆÄÀÏ »çÀÌÁî Ã¼Å© 
function getFileSize(path)
{
	var img = new Image();
	img.dynsrc = path;
	return img.fileSize;
}

function getimgExt(fnm){
  var imgExt ="gif,jpg,jpeg,bmp";
  if(imgExt.indexOf(fnm.toLowerCase()) != -1){
	   return true;
  }
  return false;  
}


function Number_Format(fn)
{ 
	  var str = fn.value; 
	  var Re = /[^0-9]/g; 
	  var ReN = /(-?[0-9]+)([0-9]{3})/; 
	  str = str.replace(Re,'');              
	  while (ReN.test(str)) { 
			  str = str.replace(ReN, "$1,$2"); 
			  } 
	  fn.value = str; 
}

function Number_Format2(strg)
{ 
	  var str;	
	  var Re = /[^0-9]/g; 
	  var ReN = /(-?[0-9]+)([0-9]{3})/; 
	  str = strg.replace(Re,'');              
	  while (ReN.test(str)) { 
			  str = str.replace(ReN, "$1,$2"); 
			  } 
	  return str;
}


function fileName(path)
{
	var file = path.substring(path.lastIndexOf('\\')+1,path.length);
	var filename;	

	if(file.indexOf('.')>=0) {
		filename = file.substring(0,file.lastIndexOf('.'));
	} else {
		filename = file;
	}

	return filename;
}


function fileNameExp(path)
{
	var file = path.substring(path.lastIndexOf('\\')+1,path.length);
	var exp;

	if(file.indexOf('.')>=0) {		
		exp = file.substring(file.lastIndexOf('.')+1,file.length);
	} else {
		exp = '';
	}

	return exp;
}


function checkNoTucsu()
{	
	var keyCode = event.keyCode;	
    if (keyCode == 123 || keyCode == 124 || keyCode == 125 || keyCode == 126
		|| keyCode == 91 || keyCode == 92 || keyCode == 93 || keyCode == 94 || keyCode == 95 || keyCode == 96
		|| keyCode == 40 || keyCode == 41 || keyCode == 42 || keyCode == 43 || keyCode == 45 
		|| keyCode == 60 || keyCode == 61 || keyCode == 62 || keyCode == 63 || keyCode == 64
		|| keyCode == 33 || keyCode == 34 || keyCode == 35 || keyCode == 36 || keyCode == 37  || keyCode == 38 || keyCode == 39)
	{		
		
         event.returnValue=false;
     }
}

function checkNoTucsu2()
{	
	var keyCode = event.keyCode;	
    if (keyCode == 123 || keyCode == 124 || keyCode == 125 || keyCode == 126
		|| keyCode == 91 || keyCode == 92 || keyCode == 93 || keyCode == 94 || keyCode == 95 || keyCode == 96
		|| keyCode == 40 || keyCode == 41 || keyCode == 42 || keyCode == 43  
		|| keyCode == 60 || keyCode == 61 || keyCode == 62 || keyCode == 63 || keyCode == 64
		|| keyCode == 33 || keyCode == 34 || keyCode == 35 || keyCode == 36 || keyCode == 37  || keyCode == 38 || keyCode == 39)
	{		
		
         event.returnValue=false;
     }
}

function checkTucsu()
{
 var objEv = event.srcElement;
 var num ="{}[]<>?_|~`!@#$%^&*-+\"'\\";
 event.returnValue = true;
  
 for (var i=0;i<objEv.value.length;i++)
 {
 if(-1 != num.indexOf(objEv.value.charAt(i)))
 event.returnValue = false;
 }
  
 if (!event.returnValue)
 {
  alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
  objEv.value="";
 }
}


function checkDomain(nname){
	var arr = new Array(
	'.com','.net','.org','.biz','.coop','.info','.museum','.name',
	'.pro','.edu','.gov','.int','.mil','.ac','.ad','.ae','.af','.ag',
	'.ai','.al','.am','.an','.ao','.aq','.ar','.as','.at','.au','.aw',
	'.az','.ba','.bb','.bd','.be','.bf','.bg','.bh','.bi','.bj','.bm',
	'.bn','.bo','.br','.bs','.bt','.bv','.bw','.by','.bz','.ca','.cc',
	'.cd','.cf','.cg','.ch','.ci','.ck','.cl','.cm','.cn','.co','.cr',
	'.cu','.cv','.cx','.cy','.cz','.de','.dj','.dk','.dm','.do','.dz',
	'.ec','.ee','.eg','.eh','.er','.es','.et','.fi','.fj','.fk','.fm',
	'.fo','.fr','.ga','.gd','.ge','.gf','.gg','.gh','.gi','.gl','.gm',
	'.gn','.gp','.gq','.gr','.gs','.gt','.gu','.gv','.gy','.hk','.hm',
	'.hn','.hr','.ht','.hu','.id','.ie','.il','.im','.in','.io','.iq',
	'.ir','.is','.it','.je','.jm','.jo','.jp','.ke','.kg','.kh','.ki',
	'.km','.kn','.kp','.kr','.kw','.ky','.kz','.la','.lb','.lc','.li',
	'.lk','.lr','.ls','.lt','.lu','.lv','.ly','.ma','.mc','.md','.mg',
	'.mh','.mk','.ml','.mm','.mn','.mo','.mp','.mq','.mr','.ms','.mt',
	'.mu','.mv','.mw','.mx','.my','.mz','.na','.nc','.ne','.nf','.ng',
	'.ni','.nl','.no','.np','.nr','.nu','.nz','.om','.pa','.pe','.pf',
	'.pg','.ph','.pk','.pl','.pm','.pn','.pr','.ps','.pt','.pw','.py',
	'.qa','.re','.ro','.rw','.ru','.sa','.sb','.sc','.sd','.se','.sg',
	'.sh','.si','.sj','.sk','.sl','.sm','.sn','.so','.sr','.st','.sv',
	'.sy','.sz','.tc','.td','.tf','.tg','.th','.tj','.tk','.tm','.tn',
	'.to','.tp','.tr','.tt','.tv','.tw','.tz','.ua','.ug','.uk','.um',
	'.us','.uy','.uz','.va','.vc','.ve','.vg','.vi','.vn','.vu','.ws',
	'.wf','.ye','.yt','.yu','.za','.zm','.zw');

	var mai = nname;
	var val = true;

	var dot = mai.lastIndexOf(".");
	var dname = mai.substring(0,dot);
	var ext = mai.substring(dot,mai.length);
	//alert(ext);
		
	if(dot>2 && dot<57)
	{
		for(var i=0; i<arr.length; i++)
		{
			if(ext == arr[i])
			{
				val = true;
				break;
			}    
			else
			{
				val = false;
			}
		}
		if(val == false)
		{
			   alert("µµ¸ÞÀÎ¸íÀÇ "+ext+" °¡ ºÎÀûÇÕÇÕ´Ï´Ù.");
			 return false;
		}
		else
		{
			for(var j=0; j<dname.length; j++)
			{
				var dh = dname.charAt(j);
				var hh = dh.charCodeAt(0);
				if((hh > 47 && hh<59) || (hh > 64 && hh<91) || (hh > 96 && hh<123) || hh==45 || hh==46)
				{
					if((j==0 || j==dname.length-1) && hh == 45)    
					{
						alert("Domain name should not begin are end with '-'");
						return false;
					}
				}else{
					alert("Æ¯¼ö¹®ÀÚ(ÇÑ±ÛÆ÷ÇÔ)´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
					return false;
				}
			}
		}
	}
	else
	{
		alert("µµ¸ÞÀÎ¸íÀÌ ºÎÀûÇÕÇÕ´Ï´Ù.");
		return false;
	}    

	return true;
}

	function na_open_window(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';
			
		  eval("var " + name + " = null;");

		  eval(name + " = 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);");

		  eval(name + ".focus();");
	}

	function Number_Format(fn)
	{ 
		  var str = fn.value; 
		  var Re = /[^0-9]/g; 
		  var ReN = /(-?[0-9]+)([0-9]{3})/; 
		  str = str.replace(Re,'');              
		  while (ReN.test(str)) { 
				  str = str.replace(ReN, "$1,$2"); 
				  } 
		  fn.value = str; 
	}

function replace(str,s,d){
		var i=0;

		while(i > -1){
			i = str.indexOf(s);
			str = str.substr(0,i) + d + str.substr(i+1,str.length);
		}
		
		return str;
	}


	function MM_preloadImages() { //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=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}


function hid_Button(str)
{
	var obj = document.getElementById(str);
	
	obj.className = "";
	obj.style.background = "";
	obj.onclick = "";
	obj.innerText = "";
	obj.style.cursor = "";
}