 //-----------------------------------------------------------------------------
 // ¹®ÀÚÀÇ ÁÂ, ¿ì °ø¹é Á¦°Å
 // @return : String
 //-----------------------------------------------------------------------------
 String.prototype.trim = function() {
     return this.replace(/(^\s*)|(\s*$)/g, "");
 }

 //-----------------------------------------------------------------------------
 // ¹®ÀÚÀÇ ÁÂ °ø¹é 
 // @return : String
 //-----------------------------------------------------------------------------
 String.prototype.ltrim = function() {
     return this.replace(/(^\s*)/, "");
 }
 
 //-----------------------------------------------------------------------------
 // ¹®ÀÚÀÇ ¿ì °ø¹é Á¦°Å
 // @return : String
 //-----------------------------------------------------------------------------
 String.prototype.rtrim = function() {
     return this.replace(/(\s*$)/, "");    
 }

 //-----------------------------------------------------------------------------
 // ¹®ÀÚ¿­ÀÇ byte ±æÀÌ ¹ÝÈ¯
 // @return : int
 //-----------------------------------------------------------------------------
 String.prototype.byte = function() {
     var cnt = 0;
     for (var i = 0; i < this.length; i++) {

         if (this.charCodeAt(i) > 127)
             cnt += 2;
         else
             cnt++;
     }
     return cnt;
 }

 //-----------------------------------------------------------------------------
 // Á¤¼öÇüÀ¸·Î º¯È¯
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.int = function() {

     if(!isNaN(this)) {
         return parseInt(this);
     }
     else {
         return null;    
     }
 }

 //-----------------------------------------------------------------------------
 // ¼ýÀÚ¸¸ °¡Á® ¿À±â 
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.num = function() {
     return (this.trim().replace(/[^0-9]/g, "")); 
 }

 //-----------------------------------------------------------------------------
 // ¼ýÀÚ¿¡ 3ÀÚ¸®¸¶´Ù , ¸¦ Âï¾î¼­ ¹ÝÈ¯
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.cvtNumber = function() {
     var num = this.trim();
     while((/(-?[0-9]+)([0-9]{3})/).test(num)) {
         num = num.replace((/(-?[0-9]+)([0-9]{3})/), "$1,$2");
     }
     return num;
 }

 //-----------------------------------------------------------------------------
 // ¼ýÀÚÀÇ ÀÚ¸®¼ö(cnt)¿¡ ¸Âµµ·Ï ¹ÝÈ¯
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.digits = function(cnt) {
     var digit = "";
     if (this.length < cnt) {
         for(var i = 0; i < cnt - this.length; i++) {
             digit += "0";
         }
     }
     return digit + this;
 }

 //-----------------------------------------------------------------------------
 // " -> &#34; ' -> &#39;·Î ¹Ù²Ù¾î¼­ ¹ÝÈ¯
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.quota = function() {

     return this.replace(/"/g, "&#34;").replace(/'/g, "&#39;");

 }

 //-----------------------------------------------------------------------------
 // ÆÄÀÏ È®ÀåÀÚ¸¸ °¡Á®¿À±â
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.ext = function() {
     return (this.indexOf(".") < 0) ? "" : this.substring(this.lastIndexOf(".") + 1, this.length);    
 }

 //-----------------------------------------------------------------------------
 // URL¿¡¼­ ÆÄ¶ó¸ÞÅÍ Á¦°ÅÇÑ ¼ø¼öÇÑ url ¾ò±â
 // @return : String
 //-----------------------------------------------------------------------------    

 String.prototype.uri = function() {

     var arr = this.split("?");
     arr = arr[0].split("#");
     return arr[0];    

 }


/*------------------------------------------------------------------------------*\
* °¢Á¾ Ã¼Å© ÇÔ¼öµé
\*--------------------------------------------------------------------------------*/

 //-----------------------------------------------------------------------------
 // Á¤±Ô½Ä¿¡ ¾²ÀÌ´Â Æ¯¼ö¹®ÀÚ¸¦ Ã£¾Æ¼­ ÀÌ½ºÄÉÀÌÇÁ ÇÑ´Ù.
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.meta = function() {

     var str = this;
     var result = ""
     for(var i = 0; i < str.length; i++) {
         if((/([\$\(\)\*\+\.\[\]\?\\\^\{\}\|]{1})/).test(str.charAt(i))) {
             result += str.charAt(i).replace((/([\$\(\)\*\+\.\[\]\?\\\^\{\}\|]{1})/), "\\$1");
         }
         else {
             result += str.charAt(i);
         }
     }
     return result;
 }

 //-----------------------------------------------------------------------------
 // Á¤±Ô½Ä¿¡ ¾²ÀÌ´Â Æ¯¼ö¹®ÀÚ¸¦ Ã£¾Æ¼­ ÀÌ½ºÄÉÀÌÇÁ ÇÑ´Ù.
 // @return : String
 //-----------------------------------------------------------------------------

 String.prototype.remove = function(pattern) {
     return (pattern == null) ? this : eval("this.replace(/[" + pattern.meta() + "]/g, \"\")");
 }

 //-----------------------------------------------------------------------------
 // ÃÖ¼Ò ÃÖ´ë ±æÀÌÀÎÁö °ËÁõ
 // str.isLength(min [,max])
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isLength = function() {

     var min = arguments[0];
     var max = arguments[1] ? arguments[1] : null;
     var success = true;
     if(this.length < min) {
         success = false;
     }
     if(max && this.length > max) {
         success = false;
     }
     return success;
 }

 //-----------------------------------------------------------------------------
 // ÃÖ¼Ò ÃÖ´ë ¹ÙÀÌÆ®ÀÎÁö °ËÁõ
 // str.isByteLength(min [,max])
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isByteLength = function() {
     var min = arguments[0];
     var max = arguments[1] ? arguments[1] : null;
     var success = true;
     if(this.byte() < min) {
         success = false;
     }

     if(max && this.byte() > max) {
         success = false;
     }
     return success;
 }

 //-----------------------------------------------------------------------------
 // °ø¹éÀÌ³ª ³ÎÀÎÁö È®ÀÎ
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isBlank = function() {
     var str = this.trim();
     for(var i = 0; i < str.length; i++) {
         if ((str.charAt(i) != "\t") && (str.charAt(i) != "\n") && (str.charAt(i)!="\r")) {
             return false;
         }
     }
     return true;
 }

 //-----------------------------------------------------------------------------
 // ¼ýÀÚ·Î ±¸¼ºµÇ¾î ÀÖ´ÂÁö ÇÐÀÎ
 // arguments[0] : Çã¿ëÇÒ ¹®ÀÚ¼Â
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isNum = function() {
     return (/^[0-9]+$/).test(this.remove(arguments[0])) ? true : false;
 }
 
 //-----------------------------------------------------------------------------
 // ¼ýÀÚ¿Í "-" ±¸¼ºµÇ¾î ÀÖ´ÂÁö ÇÐÀÎ
 // arguments[0] : Çã¿ëÇÒ ¹®ÀÚ¼Â
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isNumGm = function() {
     return (/^[0-9\-]+$/).test(this.remove(arguments[0])) ? true : false;
 }

 //-----------------------------------------------------------------------------
 // ÀüÈ­¹øÈ£ Ã¼Å©
 // arguments[0] : 
 // @return : boolean
 //-----------------------------------------------------------------------------
 function checktel(tel) {
		if(!tel.isNumGm()){
			return false;
		}else{
			if(tel.length == 12 || tel.length == 13){
				var telall = tel.split("-");
				var telalls = telall[0]+telall[1]+telall[2];
				if(telalls.length == 10 || telalls.length == 11){
					
				}else{
					return false;
				}
				if(tel.length == 12){
					var telvals = tel.split("-");
					if(!telvals[0].isNum()){
						
						return false;
					}else{
						if(telvals[0].length == 1){
							return false;
						}
					}
					
					if(!telvals[1].isNum()){
						return false;
					}else{
						if(telvals[1].length < 3 && telvals[1].length > 4){
							return false;
						}
					}
					
					if(!telvals[2].isNum()){
						return false;
					}else{
						if(telvals[2].length != 4){
							return false;
						}
					}
					
				}else{
					
					var telvals = tel.split("-");
					if(!telvals[0].isNum()){
						return false;
					}else{
						if(telvals[0].length == 1){
							return false;
						}
					}
					if(!telvals[1].isNum()){
						return false;
					}else{
						if(telvals[1].length < 3 && telvals[1].length > 4){
							return false;
						}
					}
					if(!telvals[2].isNum()){
						return false;
					}else{
						if(telvals[2].length != 4){
							return false;
						}
					}
				}
			}else{
				return false;
			}
			return true;
		}
	}
 

 //-----------------------------------------------------------------------------
 // ¿µ¾î¸¸ Çã¿ë - arguments[0] : Ãß°¡ Çã¿ëÇÒ ¹®ÀÚµé
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isEng = function() {
     return (/^[a-zA-Z]+$/).test(this.remove(arguments[0])) ? true : false;
 }

 //-----------------------------------------------------------------------------
 // ¿µ¾î¿Í&nbsp; ¸¸ Çã¿ë - arguments[0] : Ãß°¡ Çã¿ëÇÒ ¹®ÀÚµé
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isblankEng = function() {
     return (/^[a-zA-Z\s]+$/).test(this.remove(arguments[0])) ? true : false;
 }

 //-----------------------------------------------------------------------------
 // ¼ýÀÚ¿Í ¿µ¾î¸¸ Çã¿ë - arguments[0] : Ãß°¡ Çã¿ëÇÒ ¹®ÀÚµé
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isEngNum = function() {
     return (/^[0-9a-zA-Z]+$/).test(this.remove(arguments[0])) ? true : false;
 }

 //-----------------------------------------------------------------------------
 // ¼ýÀÚ¿Í ¿µ¾î¸¸ Çã¿ë - arguments[0] : Ãß°¡ Çã¿ëÇÒ ¹®ÀÚµé
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isNumEng = function() {
     return this.isEngNum(arguments[0]);
 }

 //-----------------------------------------------------------------------------
 // ¾ÆÀÌµð Ã¼Å© ¿µ¾î¿Í ¼ýÀÚ¸¸ Ã¼Å© Ã¹±ÛÀÚ´Â ¿µ¾î·Î ½ÃÀÛ - arguments[0] : Ãß°¡ Çã¿ëÇÒ ¹®ÀÚµé
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isUserid = function() {

     return (/^[a-zA-z]{1}[0-9a-zA-Z]+$/).test(this.remove(arguments[0])) ? true : false;

 }

 //-----------------------------------------------------------------------------
 // ÀÌ¸ÞÀÏÀÇ À¯È¿¼ºÀ» Ã¼Å©
 // @return : boolean
 //-----------------------------------------------------------------------------

 String.prototype.isEmail = function() {
     return (/\w+([-+.]\w+)*@\w+([-.]\w+)*\.[a-zA-Z]{2,4}$/).test(this.trim());
 }

 //-----------------------------------------------------------------------------
 // ÀüÈ­¹øÈ£ Ã¼Å© - arguments[0] : ÀüÈ­¹øÈ£ ±¸ºÐÀÚ
 // @return : boolean
 //-----------------------------------------------------------------------------
 String.prototype.isPhone = function() {
     var arg = arguments[0] ? arguments[0] : "";
     return eval("(/(02|0[3-9]{1}[0-9]{1})" + arg + "[1-9]{1}[0-9]{2,3}" + arg + "[0-9]{4}$/).test(this)");
 }

 //-----------------------------------------------------------------------------
 // ÇÚµåÆù¹øÈ£ Ã¼Å© - arguments[0] : ÇÚµåÆù ±¸ºÐÀÚ
 // @return : boolean
 //-----------------------------------------------------------------------------

	String.prototype.isMobile = function() {
     var arg = arguments[0] ? arguments[0] : "";
     return eval("(/01[016789]" + arg + "[1-9]{1}[0-9]{2,3}" + arg + "[0-9]{4}$/).test(this)");

	}
 
 
 //-----------------------------------------------------------------------------
 // replaceAll »ç¿ëÀÚ Á¤ÀÇ ÇÔ¼ö
 //-----------------------------------------------------------------------------

	String.prototype.replaceAll = function( searchStr, replaceStr ) 
	{ 
	    var temp = this; 
	    while( temp.indexOf( searchStr ) != -1 ) 
	    {     
	        temp = temp.replace( searchStr, replaceStr ); 
	    } 
	    return temp; 
	} 

	String.prototype.wordwrap = function(options){
	  if (this == null || this == "") return "";
	
	  var text = this;
	  if (options['byte_length'] != null)
	    text = text.multibyteTruncate(options['byte_length']);
	  text = text.split("").join("<wbr/>");
	  return options['break_line'] ? text.replace(/\n/g, "<br/>") : text;
	}


 //-----------------------------------------------------------------------------
 // ¼³¸í : Æû¿¡¼­ °ø¹é Ã¼Å©ÇØ¼­ °ø¹éÀÌ¸é ¸Þ¼¼Áö º¸¿©Áö°í ÇØ´ç Æû°ª¿¡ Æ÷Ä¿½º
 // ¿¹) checkSpace(frm,strMsg) checkSpace(Æû.ÀÌ¸§, ¸Þ¼¼Áö)
 // ¸®ÅÏ) °ø¹éÀÌ ¾Æ´Ï¸é true | °ø¹éÀÌ¸é false 
 //-----------------------------------------------------------------------------

function checkSpace(frm, strMsg, blnFocus) {
	if(frm.val().isBlank()){
		alert(strMsg);
		frm.val("");
		if (!blnFocus) frm.focus();
		return false;
	}
	return true;
}


/************************************************************
¼³¸í : »õÃ¢ ¶ç¿ö¼­ Æ÷Ä¿½º ÁÖ±â
¿¹) windowOpen('ÁÖ¼Ò','À©µµ¿ìÀÌ¸§',°¡·Î,¼¼·Î,'±âÅ¸ ¼³Á¤')
,scrollbars=yes ,personalbar=no ,resizable=no ,directories=no ,status=no ,menubar=no
************************************************************/
function windowOpen(pUrl,pName,pW,pH,val){
	var winWidth  = window.screen.width;    //ÇØ»óµµ°¡·Î
	var winHeight  = window.screen.height;     //ÇØ»óµµ¼¼·Î
	
	// XPÀÎ °æ¿ì height 29 Ãß°¡
	//if( window.navigator.userAgent.indexOf("SV1") != -1 ) {
	//	pH += 29;
	//}
	
	var pLeft,pTop;
	pLeft = parseInt((winWidth-pW)/2);
	pTop = parseInt((winHeight-pH)/2);
	
	var newWin=window.open(pUrl,pName,"width="+pW+",height="+pH+",left="+pLeft+",top="+pTop+" "+ val );
	newWin.focus(); 
}

/*******************************************************************
* ³¯Â¥ ºñ±³ ÇÔ¼ö
* sDate: ºñ±³ ´ë»ó ³¯Â¥ Ã¹¹øÂ° ex: 2009-04-29 
* eDate : ºñ±³ ´ë»ó ³¯Â¥ µÎ¹øÂ° ex: 2009-04-28 
*******************************************************************/
function compDate(sDate,eDate){
	var start_dates = sDate.split("-");
  var end_dates = eDate.split("-");
  var date1 = new Date(start_dates[0],start_dates[1],start_dates[2]).valueOf();
  var date2 = new Date(end_dates[0],end_dates[1],end_dates[2]).valueOf();
  if( (date2 - date1) < 0 ){
   	return false;
  }else{
  	return true;
  }
}


function windowOpenRtn(pUrl,pName,pW,pH,val){
	var winWidth  = window.screen.width;    //ÇØ»óµµ°¡·Î
	var winHeight  = window.screen.height;     //ÇØ»óµµ¼¼·Î
	
	// XPÀÎ °æ¿ì height 29 Ãß°¡
	//if( window.navigator.userAgent.indexOf("SV1") != -1 ) {
	//	pH += 29;
	//}
	
	var pLeft,pTop;
	pLeft = parseInt((winWidth-pW)/2);
	pTop = parseInt((winHeight-pH)/2);
	
	var newWin=window.open(pUrl,pName,"width="+pW+",height="+pH+",left="+pLeft+",top="+pTop+" "+ val );
	newWin.focus(); 
	return newWin;
}

/***** ÀÔ·ÂµÇ¸é ´ÙÀ½À¸·Î ÀÌµ¿ *******/
function nextChk(arg,len,nextname) { 
	if (arg.value.length==len) {
		nextname.focus() ;
		return;
	}
}
	
	

/**********************************************************
name (form.ÀÌ¸§ ) , ivalue(Value)
¿¹) optionValueSel(form.job , 2)
ÇØ´ç ¿É¼Ç¿¡¼­ ¹ë·ù°ª °°Àº°ÍÀ» ¼¿·ºÆ® ½ÃÅ²´Ù.
 *********************************************************/
function optionValueSel(name,ivalue)
{
	var i,sel = 0;
	for(i=0;i<name.length;i++)
	{
		if(name.options[i].value == ivalue ) {
			sel = i;
		}
	}
	name.options[sel].selected = true  
}


/**********************************************************
¿¹) optionValueRtn(form.name)
ÇØ´ç ¿É¼Ç¿¡¼­ ¼±ÅÃµÈ ¹ë·ù°ªÀ» ¸®ÅÏ ½ÃÅ²´Ù.
 *********************************************************/
function optionValueRtn(name)
{
	var name_value = "";
  
	for(i=0;i<name.length;i++)
	{
		if ( name[i].selected == true ) 
		{
			name_value = name[i].value;
		}
	}
	return name_value;
}

/**********************************************************
¿¹) optionTextRtn(form.name)
ÇØ´ç ¿É¼Ç¿¡¼­ ¼±ÅÃµÈ ÅØ½ºÆ®°ªÀ» ¸®ÅÏ ½ÃÅ²´Ù.
 *********************************************************/
function optionTextRtn(name){
	var name_value = "";
  
	for(i=0;i<name.length;i++)
	{
		if ( name[i].selected == true ) 
		{
			name_value = name[i].text;
		}
	}
	return name_value;
}

/**********************************************************
¿¹) optionSelectedCnt(form.name)
select¿¡¼­ ¼±ÅÃµÈ optionÀÇ °¹¼ö¸¦ ¸®ÅÏ ½ÃÅ²´Ù.
 *********************************************************/
function optionSelectedCnt(name){
	var cnt = 0;
  
	for(i=0;i<name.length;i++)
	{
		if ( name[i].selected == true ) 
		{
			cnt++;
		}
	}
	return cnt;
}

/**********************************************************
¿¹) optionSelectedCnt(form.name)
select¿¡¼­ ¼±ÅÃµÈ optionÀÇ °¹¼ö¸¦ ¸®ÅÏ ½ÃÅ²´Ù.
 *********************************************************/
function selectedCnt(name){
	var cnt = 0;
	if(name){
		if(!name.length) {
			if(name.checked) {
				cnt++;
			}
		}else{	
			for(i=0;i<name.length;i++)
			{
				if ( name[i].checked == true ) 
				{
					cnt++;
				}
			}
		}
	}
	return cnt;
}


/************************************************************
¿¹) checkRadio(name)
¶óµð¿À ¹öÆ°¿¡¼­ ¼±ÅÃÇÑ °ÍÀÇ ¹ë·ù°ªÀ» ¸®ÅÏÇÑ´Ù
¼±ÅÃÇÑ°ÍÀÌ ¾ø´Ù¸é "" °ø¹éÀ» ¸®ÅÏÇÑ´Ù.
************************************************************/
function checkRadio(name) {
	var radio = document.getElementsByName(name);
	if (radio) {
		if (!radio.length) {
			if (radio.checked) {
				return radio.value;
			}
		} else {
			for (var i = 0; i < radio.length; i++) {
				if (radio[i].checked) {
					return radio[i].value;
				}
			}
		}
	}
	return "";
}


/*************************************************************
¿¹) checkInsert ( name (formÀÌ¸§ ) , ivalue(IntÇü Value) )
radio³ª checkbox ¿¡¼­ ÇØ´ç ¹ë·ù°ª°ú °°Àº°ÍÀÌ ¼±ÅÃ µÇµµ·Ï ÇÑ´Ù.
 ************************************************************/
function checkInsert(name,ivalue)
{
	if(name){
		if(!name.length) {
			if(name.value == ivalue) {
				name.checked = true;
			}
		} else {
			for(var i=0;i<name.length;i++) {
				if(name[i].value == ivalue) {
					name[i].checked = true;
				}
			}
		}
	}
}

//Ã¼Å©»óÀÚ ÃÊ±âÈ­ Ã¼Å©µÈ°ÍÀ» ¸ðµÎ false ·Î ÇÑ´Ù.
function checkInit(name)
{
	if(name){
		if(!name.length) {
			name.checked = false;
		} else {
			for(var i=0;i<name.length;i++) {
				name[i].checked = false;
			}
		}
	}
}


//ÀÌ¹ÌÁö ÀÚµ¿ ¸®»çÀÌÁî Ã³¸®
var arrObjImg = new Array(); //ÀÌ¹ÌÁö°´Ã¼ ´ãÀ» ¹è¿­

function set_onload_resize(img,resizeWidth){
	var imgLen = arrObjImg.length;
	arrObjImg[imgLen] = new imgClass(img, resizeWidth);
	resize_img(imgLen);
}

function imgClass(img,resizeWidth){
	this.img = img;
	this.resizeWidth = resizeWidth;
}

function resize_img(idx){
	var objImg = arrObjImg[idx].img;
	var resizeWidth = arrObjImg[idx].resizeWidth;
	if (objImg) {
		if(objImg.complete == false){//ÀÌ¹ÌÁö°¡ ·Îµå µÇÁö ¾Ê¾Ò´Ù¸é
			setTimeout("resize_img("+idx+")",100);
		}else{
			if(objImg.width>resizeWidth){
				objImg.height = parseInt((resizeWidth * objImg.height) / objImg.width);
				objImg.width = resizeWidth;
				if (objImg.style.width)
					objImg.style.width = resizeWidth;
				if (objImg.style.Height)
					objImg.style.height = parseInt((resizeWidth * objImg.height) / objImg.width);
				//objImg.onclick = function(){window.open(objImg.src);}
			}
		}
		objImg.style.display = "";	
	}
}

function fitImageSize(obj, maxWidth, maxHeight) {
	var image = new Image();
	
	image.onload = function(){
		var width = image.width;
		var height = image.height;
		alert(width);	
		var scalex = maxWidth / width;
		var scaley = maxHeight / height;
		
		var scale = (scalex < scaley) ? scalex : scaley;
		if (scale > 1) 
			scale = 1;
		
		obj.width = scale * width;
		obj.height = scale * height;
			
		obj.style.display = "";
	}
}


//¾²±â document.write 
function dw(str){
	document.write(str); 
}


//ÀÍ½ºÇÃ·Î·¯ ÆÐÄ¡¿¡ µû¸¥ ÇÃ·¡½Ã ½ºÅ©¸³·Î write Ã³¸®
//(ÇÃ·¡½ÃÁÖ¼Ò,³ÐÀÌ,³ôÀÌ,³Ñ°Ü¹ÞÀº°ª,¾ÆÀÌµð,ÀÌ¸§,¹è°æ»ö)
function flashWrite(fSrc,sWidth,sHeight,fVars,fId,fName,fBgcolor){
	
	var strFlash;
	
	strFlash ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"';
	strFlash += ' id="'+fId+'" name="'+fName+'"';
	strFlash += ' width="'+sWidth+'" height="'+sHeight+'">';  
	strFlash += '<param name=flashVars value="'+fVars+'">';        
	strFlash += '<param name="movie" value="'+fSrc+'">';
	strFlash += '<param name="wmode" value="transparent">';
	strFlash += '<param name=bgcolor value="'+fBgcolor+'">';   
	strFlash += '<param name="quality" value="high">';
	strFlash += '<param name="menu" value="false">';
	strFlash += '<embed src="'+fSrc+'" quality="high" swLiveConnect=true pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"';
	strFlash += ' id="'+fId+'" name="'+fName+'"';	
	strFlash += ' width="'+sWidth+'" height="'+sHeight+'">';
	strFlash += '</embed></object>';
	
	document.write(strFlash);
}


/*
Æû¾È¿¡ ÀÖ´Â °ªµéÀ» ÀÎÄÚµùÇØ¼­ ¸®ÅÏÇÑ´Ù.
¿¹) formData2QueryString(document.pageForm)
¸®ÅÏ) gotoPage=3&col=1&search=
*/
function formData2QueryString(docForm) {

	var submitContent = '';
	var formElem;
	var lastElemName = '';
	for (i = 0; i < docForm.elements.length; i++) {
    
		formElem = docForm.elements[i];

		switch (formElem.type) {
			// Text fields, hidden form elements
			case 'text':
			case 'hidden':
			case 'password':
			case 'textarea':
			case 'select-one':
				submitContent += formElem.name + '=' + escape(formElem.value) + '&'
				break;
        
			// Radio buttons
			case 'radio':
				if (formElem.checked) {
					submitContent += formElem.name + '=' + escape(formElem.value) + '&'
				}
				break;
        
			// Checkboxes
			case 'checkbox':
				if (formElem.checked) {
					// Continuing multiple, same-name checkboxes
					if (formElem.name == lastElemName) {
						// Strip of end ampersand if there is one
						if (submitContent.lastIndexOf('&') == submitContent.length-1) {
							submitContent = submitContent.substr(0, submitContent.length - 1);
						}
						// Append value as comma-delimited string
						submitContent += ',' + escape(formElem.value);
					}else {
						submitContent += formElem.name + '=' + escape(formElem.value);
					}
					submitContent += '&';
					lastElemName = formElem.name;
				}
			break;
		}
	}

	// Remove trailing separator
	submitContent = submitContent.substr(0, submitContent.length - 1);
	return submitContent;
}


/************************************************************
  ÇÔ¼ö : window_center(³ÐÀÌ,³ôÀÌ)
  ¸ñÀû : ¿¹¾àÃ¢ÀÇ »çÀÌÁî Á¶Àý
  ¹æ¹ý : window_center (³ÐÀÌ,³ôÀÌ)
          ¿¹) window_center(100,100)
        
************************************************************/

function window_center(w, h) { 
	
		width=screen.width;
		height=screen.height;
	
		x=(width/2)-(w/2);
		y=(height/2)-(h/2);
	
		window.resizeTo(w,h);
		window.moveTo(x,y);
	}

function getWeekEnd(str)
{
	var weekInfo = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
	d = toTimeObject(str);
	day=d.getDay();
	
	return weekInfo[day];
}	

function lastday(calyear, calmonth)
{
var monthDays = new Array(31, 28, 31, 30, 31, 30, 31, 31,30, 31, 30, 31);
if (((calyear % 4 == 0) && (calyear % 100 != 0)) || (calyear % 400 == 0))
monthDays[1] = 29;
var nDays = monthDays[calmonth - 1];
return nDays;
}

function toTimeObject(time){
	var year = time.substr(0,4);
	var month = time.substr(4,2)-1;
	var day = time.substr(6,2);
	
	return new Date(year,month,day);
}

function GetSelectedVal(objSelect){
        var i;
        var selectedval ;
        for(i=0;i<objSelect.options.length;i++){
                if(objSelect.options[i].selected==true){
                        selectedval = objSelect.options[i].value;
                        break;
                }
        }
        return selectedval ;
}

function GetSelectedTxt(objSelect){
        var i;
        var selectedtext;
        for(i=0;i<objSelect.options.length;i++){
                if(objSelect.options[i].selected==true){
                        selectedtext= objSelect.options[i].text;
                        break;
                }
        }
        return selectedtext;
}

function allblur() {
	for (i = 0; i < document.links.length; i++) {
		var obj = document.links[i];
		if(obj.addEventListener) obj.addEventListener("focus", oneblur, false);
		else if(obj.attachEvent) obj.attachEvent("onfocus", oneblur);
	}
}
function oneblur(e) {
	var evt = e ? e : window.event;
	if(evt.target) evt.target.blur();
	else if(evt.srcElement) evt.srcElement.blur();
}

/* 
*Source SelectÀÇ ¿ä¼Ò(option)¸¦ Target Select·Î ÀÌµ¿ÇÑ´Ù. 
*@author neoburi@nowonplay.com, 2005.12.27 
*/ 
function moveElement(sourceObj, targetObj, isSort){ 
	var elms = sourceObj.options; 
	for(i = 0, k = elms.length; i < k; i++){ 
		if( elms[i].selected ){ 
		targetObj.add(new Option(elms[i].text, elms[i].value, false, false)); 
		} 
	} 
	removeElement(sourceObj); 
	sourceObj.selectedIndex = -1; 
} 

/* 
*Source SelectÀÇ ¿ä¼Ò(option)¸¦ Á¦°ÅÇÑ´Ù. 
*@author neoburi@nowonplay.com, 2005.12.27 
*/ 
function removeElement(sourceObj){ 
	var elms = sourceObj.options; 
	var posArr = new Array(); 
	var increase = 0; 
	for( i = 0, k = elms.length; i < k; i++ ){ 
		if( elms[i].selected ){ 
			posArr[increase++] = elms[i].value; 
		} 
	} 
	for( i = 0, k = posArr.length; i < k; i++ ){ 
		for( x = 0, y = elms.length; x < y; x++ ){ 
			if( (posArr[i] == elms[x].value) && elms[x].selected ){ 
				sourceObj.remove(x); 
				x = 0; 
				y--; 
			} 
		} 
	} 
} 

/* 
*Source SelectÀÇ ¿ä¼Ò(option)ÀÇ »óÇÏ¼ø¼­¸¦ ¹Ù²Û´Ù. 
*@author ¾Æ¹«°Ô, 2005.12.27 
*/ 
function move_option_in(src,to) { 
	if(!src) return; 
	var src_index = src.selectedIndex; 
	if(src_index<0) return; 
	if(to == "up"){ 
		if(src_index==-1||src_index==0) return; 
		var tempoption = new Option(src.options[src_index].text, src.options[src_index].value); 
		src.options[src_index] = new Option(src.options[src_index-1].text, src.options[src_index-1].value); 
		src.options[src_index-1]=tempoption; 
		src.options[src_index-1].selected=true; 
	} 
	else if(to == "down"){ 
		if(src_index>=src.options.length-1) return; 
		var tempoption = new Option(src.options[src_index].text, src.options[src_index].value); 
		src.options[src_index] = new Option(src.options[src_index+1].text, src.options[src_index+1].value); 
		src.options[src_index+1]=tempoption; 
		src.options[src_index+1].selected=true; 
	} 
} 




/********************************************************************
objectÀÇ Left PositionÀ» ¸®ÅÏÇÑ´Ù.
********************************************************************/
function g_getLeftPos(obj) {
    var parentObj = null;
    var clientObj = obj;
    var left = obj.offsetLeft + document.body.clientLeft;

    while((parentObj=clientObj.offsetParent) != null){
        left = left + parentObj.offsetLeft;
        clientObj = parentObj;
    }
    return left;
}

/********************************************************************
objectÀÇ Top PositionÀ» ¸®ÅÏÇÑ´Ù.
********************************************************************/
function g_getTopPos(obj) {
    var parentObj = null;
    var clientObj = obj;
    var top = obj.offsetTop + document.body.clientTop;

    while((parentObj=clientObj.offsetParent) != null){
        top = top + parentObj.offsetTop;
        clientObj = parentObj;
    }
    return top;
}

/********************************************************************
ÄÚµå°ªÀ» ÀÐ¾î¿Â´Ù
********************************************************************/
function g_getValue(obj) {
	if (typeof obj != "object") return null;
	if (select == null) return null;
	
  	return obj.options[obj.selectedIndex].value;
}


/*******************************************************************
objVal°ª form file value 'C:\My Documents\My Pictures\°¨ÀÚµµ¸®\xxxx.jpg'
limitExt°ª 'jpg|gif|png|bmp' 
È®ÀåÀÚ°¡ ÇØ´çÇÏ´Â È®ÀåÀÚ°¡ ¾Æ´Ò°æ¿ì ¸®ÅÏ false
*******************************************************************/

function fileExtCheck(objVal,limitExt){
	var val=objVal.toLowerCase();
	if(!val)
	    return false;
	fileExt = val.substr(val.lastIndexOf('.') + 1,val.length);
	if(limitExt.indexOf(fileExt) == -1){
	    alert("È®ÀåÀÚ°¡ " + limitExt.replace(/\|/gi,",") + "¸¦ Á¦¿ÜÇÑ ÆÄÀÏÀ» ¼±ÅÃ ÇÒ ¼ö ¾ø½À´Ï´Ù");
	    return false;
	}
	return true;
}


function n2c(num) {
	if (parseInt(num) < 10 && num.length < 2)
		return "0" + num;
	else
		return "" + num;
}


/*******************************************************************
ÅÂ±× ÀÔ·Â : °ø¹é, ÇÑ±Û&¿µ¹® Á¦¿Ü, ±ÛÀÚ¼ö Ã¼Å©
*******************************************************************/
function TagSearchCheck(objVal1, objVal2, objVal3, strLength)
{
	if( (objVal1.value.length == 0) && (objVal2.value.length == 0) && (objVal3.value.length == 0) )
	{
		alert('ÅÂ±×¸¦ 1°³ÀÌ»ó ÀÔ·ÂÇØ ÁÖ¼¼¿ä!');
		objVal1.focus();
		return;
	}
	
	for(h=1; h <=3 ; h++)
	{
		var objVal = eval('objVal' + h);
		
		if(objVal.value.length > 0)
		{
		
			//°ø¹éÁ¦°Å
			var str = objVal.value;
			
			if (str.search(/\S/)<0){			//\S °ø¹éÀÌ ¾Æ´Ñ ¹®ÀÚ¸¦ Ã£´Â´Ù.
				alert('°ø¹é¹®ÀÚ´Â ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù.');
				objVal.focus();
				return false;
			}
			
			var temp=str.replace(' ','');
			if (str.indexOf(' ') > 0){
				alert('°ø¹é¹®ÀÚ´Â ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù.');
				objVal.focus();
				return false;
			}
			
			var hFlag = true;
			var eFlag = false;
			// ÇÑ±Û ÀÔ·ÂÃ¼Å©
			for(i=0;i<=str.length;i++){
				if(str.charCodeAt(i)<12644){
					hFlag = false;
					objVal.focus();
					break;
				}
			}
			
			// ¿µ¹® & ¼ýÀÚ ÀÔ·ÂÃ¼Å©
			var strCheck='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890';
			for(i=0; i<str.length; i++) {
				for(j=0; j<strCheck.length; j++) {
					if(str.charAt(i) == strCheck.charAt(j)){
						eFlag = true;
						objVal.focus();
						break;
					}
				}
			}
			
			if(hFlag == false && eFlag == false)
			{
				alert('ÇÑ±Û ¹× ¿µ¹®¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù!');
				objVal.focus();
				return;
			}
			
			if(str.length > strLength)
			{
				alert('ÃÖ´ë 7ÀÚ±îÁö ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.');
				objVal.focus();
				return false;
			}
		
		}
	
	}
	
	if( objVal2.value.length > 0 )
	{
		if( (objVal1.value == objVal2.value) || (objVal1.value == objVal3.value) || (objVal2.value == objVal3.value) )
		{
			alert('µ¿ÀÏÇÑ ÅÂ±×¸¦ ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù!');
			return;
		}
	}
	else if( objVal3.value.length > 0 )
	{
		if( objVal1.value == objVal3.value )
		{
			alert('µ¿ÀÏÇÑ ÅÂ±×¸¦ ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù!');
			return;
		}
	}
	
	return true;
}



function isNextChar(str, pos) {
	var code1 = str.charAt(pos).charCodeAt(0);
	var code2 = str.charAt(pos + 1).charCodeAt(0);
	//alert(str.charAt(pos) + " " + code1 + " - " + str.charAt(pos+1) + " " + code2 + " " + (code1 == (code2 - 1)));
	if (code1 == (code2 - 1))
		return true;
	else
		return false;
}

function isPreviousChar(str, pos) {
	var code1 = str.charAt(pos).charCodeAt(0);
	var code2 = str.charAt(pos + 1).charCodeAt(0);
	//alert(str.charAt(pos) + " " + code1 + " - " + str.charAt(pos+1) + " " + code2 + " " + (code1 == (code2 - 1)));
	if (code1 == (code2 + 1))
		return true;
	else
		return false;
}

function isContainSequentialString(str) {
	for (var i = 0; i < str.length - 3; i++) {
		if ((isNextChar(str, i) && isNextChar(str, i+1) && isNextChar(str, i+2)) ||
            (isPreviousChar(str, i) && isPreviousChar(str, i+1) && isPreviousChar(str, i+2)))
			return true;
	}
	return false;
}

function isContains(source, search) 
{
	if (source.search(search) != -1)
		return true;
	else
		return false;
} 

/*******************************************************************
ÆÄÀÏ¾÷·Îµå½Ã actionUrlÀ» ¸®ÅÏÇØÁØ´Ù 
¿¹) http://aa.bb.co.kr/aaaa/bbb/ab.jsp ÀÎ°æ¿ì
/aaaa/bbb ¸®ÅÏ
*******************************************************************/
function getActionUrl() {
	//action URL±¸ÇÏ±â
    var url = location.href;
		var urlArr = (url).split("/");
		url = "";
		for(i=3; i<urlArr.length-1; i++) {
			url += "/" + urlArr[i];
		}
		return url;
}

/************************************************************
¼³¸í : ÁÖ¹Î¹øÈ£ Ã¼Å© ÇÔ¼ö
¿¹)checkJumin(ÁÖ¹Î¹øÈ£)
°ªÀÌ Àß¸øµÈ°Ô ÀÖ´Ù¸é false
°ªÀÌ ¿Ã¹Ù¸£´Ù¸é true
************************************************************/
function checkJumin(it){
	var str1, str2;
	if(it.length != 13) return false;
	str1 = it.substring(0,6);
	str2 = it.substring(6,13);
	var aObjMultiliers1= new Array(2, 3, 4, 5, 6, 7);
	var aObjMultiliers2= new Array(8, 9, 2, 3, 4, 5);
	var sum=0, sum1=0, sum2=0;
	var sLength1, sLength2;

	sLength1=str1.length;
	sLength2=str2.length;

	if(sLength1<6 || sLength2<7) return false;

	for(i=0 ; i<6; i++) {
		sum1+=parseInt(str1.charAt(i), 10)*aObjMultiliers1[i];
		sum2+=parseInt(str2.charAt(i), 10)*aObjMultiliers2[i];
	}
	sum=sum1+sum2;
	var checker=(11-(sum%11))%10;

	if(checker==parseInt(str2.charAt(6), 10)) return true;
	else return false;
	/*
	IDtot = 0;
	IDAdd = "234567892345";

	for(i=0; i<12; i++) IDtot = IDtot + parseInt(it.substring(i, i+1)) * parseInt(IDAdd.substring(i, i+1));
	IDtot = 11 - (IDtot%11);
	if (IDtot == 10) IDtot = 0;
	else if (IDtot == 11) IDtot = 1;

	if(parseInt(it.substring(12, 13)) != IDtot) return false;
	else return true;
	*/
}

/************************************************************
¼³¸í : ÀÓ½Ã ºñ¹Ð¹øÈ£ ¸ÞÀÏ ¹ß¼Û ½ºÅ©¸³Æ®
¿¹)setTempPwd(loginid,email,memtype,hform)
************************************************************/
function tempPwd(loginid,email,memtype){
	document.frames("hframe").location = '/manager/member.do?todo=setTempPwd&loginId='+loginid+'&eMail='+email+'&memType='+memtype;
}

/************************************************************
¼³¸í : ¿ìÆí¹øÈ£ ÆË¾÷
************************************************************/
function findZipCode(zipflag){
	windowOpen('/popup/member.do?todo=getZipCode&zipflag='+zipflag,'zipCode','490','360','');
}

/************************************************************
¼³¸í : ÀÎ¸í»çÀü ÆË¾÷
************************************************************/
function humanDic(){
	windowOpen('/popup/member.do?todo=getDicbefore','dic','490','360','');
}

function openLogin(){
	$.blockUI({ 
		message : $("#loginLayer")
    });
}

function openEngLogin(){
	$.blockUI({ 
		message : $("#loginLayer")
    });
}

$(document).ready(function(){
	function browserIe(){
		if ($.browser.msie && $.browser.version < 7) {
		   $("li div").each(function(){
				var HeightValue = $(this).height();
				if(HeightValue >= 80){
					$(this).css("height","80px");
			   }
			   else{
					$(this).css("height","auto");
			   }
		   });
		}
	}
	function closeEvent(){

		$("#close").click(function(){		
			$("#comparison").hide();
			$(".contents #button").attr("onclick","");	
		});
	}
	
	$("#buttoneee").click(function(){

		$("#comparison").load("input.html",function(){
			$("#comparison").show(); 
			$("#comparison").modal();
			browserIe();
			closeEvent();
		});
	});
	
	//GNB ·Î±×ÀÎ ¹öÆ° Å¬¸¯½Ã
	$("[name = login]").click( function() { 
		$.blockUI({ 
			message : $("#loginLayer")
        });
		return false;
	});
	
	//È¸¿ø°¡ÀÔ ¸¶Áö¸· ·Î±×ÀÎ ¹öÆ°
	$("[name = loginlayer]").click( function() { 
		$.blockUI({ 
			message : $("#loginLayer")
        });
		return false;
	});
	
	//·Î±×ÀÎ ÆË¾÷ ´Ý±â Ã¢
	$("#closeLoginLayer").click( function() { 
		try{
			if($("[name = islogin]").val() == "N"){
				history.back();
			}
			
			if($("[name = ususerid]").val() == "" && $("[name = isTemp]").val() == "Y"){
				document.location.href="/index.do?skip=Y";
			}
		} catch(e){
			
		}
		$.unblockUI();
		return false;
	});
	
	//·Î±×ÀÎ userLogin
	$("#loginBtn").click( function() { 
		if($("[name = loginuserid]").val().isBlank() ){
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			$("[name = loginuserid]").focus();
			return false;
		}
		if($("[name = loginpasswd]").val().isBlank() ){
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			$("[name = loginpasswd]").focus();
			return false;
		}
		
		$("#userLoginLayerForm").submit();
		return false;
	});
	
	//·Î±×ÀÎ ENG userLogin
	$("#engloginBtn").click( function() { 
		if($("[name = engloginuserid]").val().isBlank() ){
			alert("Please input ID.");
			$("[name = engloginuserid]").focus();
			return false;
		}
		if($("[name = engloginpasswd]").val().isBlank() ){
			alert("Please input password.");
			$("[name = engloginpasswd]").focus();
			return false;
		}
		
		$("#userLoginLayerForm").submit();
		return false;
	});
	
	$(".emptab").click(function() {
		var idx = $(".emptab").index(this);
		depth((idx+1));
		return false;
	});
});

//ÀÎ¸í»çÀü ¹öÆ°
function dicbeforePop(){
	
	var winstyle = "height="+532+", width="+625+", left=500, top=350  style='cursor:pointer' ";
					
	popup = window.open("/popup/member.do?todo=getDicbefore","LoginPopup",winstyle);
					
}

//ÀÎ¸í»çÀü ¹öÆ°
function eNgdicbeforePop(){
	window.document.getElementById("engDicLayer").style.width = "640px";
	window.document.getElementById("engDicLayer").style.height = "540px";
	window.document.getElementById("engDic").style.width = "640px";
	window.document.getElementById("engDic").style.height = "540px";
	window.document.getElementById("engDicLayer").style.display = "";	
	$.blockUI({ 
		message : $("#engDicLayer")
    });		
}

function closeEngDic(){
	parent.document.getElementById("engDicLayer").style.width = "0px";
	parent.document.getElementById("engDicLayer").style.height = "0px";
	parent.document.getElementById("engDic").style.width = "0px";
	parent.document.getElementById("engDic").style.height = "0px";
	parent.document.getElementById("engDicLayer").style.display = "none";	
	parent.$.unblockUI();
}

function openDic(){
	window.document.getElementById("dicLayer").style.width = "640px";
	window.document.getElementById("dicLayer").style.height = "540px";
	window.document.getElementById("dicFrame").style.width = "640px";
	window.document.getElementById("dicFrame").style.height = "540px";
	window.document.getElementById("dicLayer").style.display = "";
	$.blockUI({ 
		message : $("#dicLayer")
    });
}

function closeDic(){
	try{
		parent.document.getElementById("dicLayer").style.width = "0px";
		parent.document.getElementById("dicLayer").style.height = "0px";
		parent.document.getElementById("dicFrame").style.width = "0px";
		parent.document.getElementById("dicFrame").style.height = "0px";
		parent.document.getElementById("dicLayer").style.display = "none";
	}catch(e){}
	try{
		parent.document.getElementById("photoLayer").style.width = "0px";
		parent.document.getElementById("photoLayer").style.height = "0px";
		parent.document.getElementById("photoFrm").style.width = "0px";
		parent.document.getElementById("photoFrm").style.height = "0px";
		parent.document.getElementById("photoLayer").style.display = "none";
	}catch(e){}
	parent.$.unblockUI();
}

//Ãâ¿¬¿¬Çù·Â ÆË¾÷ 
function openCoop(id){
	
	var winstyle = "height="+620+", width="+850+", left=500, top=350  style='cursor:pointer'";
	
	if(id == "1"){
		popup = window.open("/html/cooperate/cooperate_info.do","LoginPopup",winstyle);
	}else if(id == "2"){
		popup = window.open("/popup/cooperation.do?todo=getArticleList&bbsid=24","LoginPopup",winstyle);
	}else if(id == "3"){
		popup = window.open("/popup/cooperation.do?todo=getArticleList&bbsid=25","LoginPopup",winstyle);
	}else if(id == "4"){
		popup = window.open("/html/cooperate/cooperate_support.do","LoginPopup",winstyle);
	}else if(id == "5") {
		popup = window.open("/popup/cooperation.do?todo=getArticleList&bbsid=26","LoginPopup",winstyle);
	}
}

function closeCoop(){
	window.self.close();
}

function todoNewslist(select){
	if(select == "Y"){
		window.document.getElementById("letterApply").style.width = "619px";
		window.document.getElementById("letterApply").style.height = "320px";
		window.document.getElementById("letterApplyFrm").style.width = "619px";
		window.document.getElementById("letterApplyFrm").style.height = "320px";
		window.document.getElementById("letterApply").style.display = "";
		$.blockUI({ 
			message : $("#letterApply")
	    });
	} else {
		window.document.getElementById("letterQuit").style.width = "619px";
		window.document.getElementById("letterQuit").style.height = "340px";
		window.document.getElementById("letterQuitFrm").style.width = "619px";
		window.document.getElementById("letterQuitFrm").style.height = "340px";
		window.document.getElementById("letterQuit").style.display = "";
		$.blockUI({ 
			message : $("#letterQuit")
	    });
	}
}

function closeNewslist(){
	try{
		parent.document.getElementById("letterApply").style.width = "0px";
		parent.document.getElementById("letterApply").style.height = "0px";
		parent.document.getElementById("letterApplyFrm").style.width = "0px";
		parent.document.getElementById("letterApplyFrm").style.height = "0px";
		parent.document.getElementById("letterApply").style.display = "none";
	}catch(e){}
	try{
		parent.document.getElementById("letterQuit").style.width = "0px";
		parent.document.getElementById("letterQuit").style.height = "0px";
		parent.document.getElementById("letterQuitFrm").style.width = "0px";
		parent.document.getElementById("letterQuitFrm").style.height = "0px";
		parent.document.getElementById("letterQuit").style.display = "none";
	}catch(e){}	
	parent.$.unblockUI();
}

// ¼ýÀÚ¸¦ Ã¼Å©ÇÏ´Ù°¡ 6ÀÚ µî ¿øÇÏ´Â ¸¸Å­ ÀÌµ¿ÈÄ ´ÙÀ½ input ¹Ú½º·Î ÀÌµ¿ ½ÃÅ°´Â...
function goJump(fname, len, goname){
    if (document.all[fname].value.length == len) document.all[goname].focus();
}

function goCyber(no){
	alert('ÁØºñÁßÀÔ´Ï´Ù.');
	return;
	
	if(no == 36){
		document.location.href="/cyber/board.do?todo=getSpeechArticleList&bbsid="+no;
	} else {
		document.location.href="/cyber/board.do?todo=getArticleList&bbsid="+no;
	}
}

function popMap(x,y,address){
	var winstyle = "height="+450+", width="+610+", left=500, top=350  style='cursor:pointer'";
	popup = window.open("/nmap/nmap.do?todo=mapSearch&isview=Y&mapx="+x+"&mapy="+y+"&address="+address,"naverMap",winstyle);
}

function openPhoto(){
	window.document.getElementById("photoLayer").style.width = "640px";
	window.document.getElementById("photoLayer").style.height = "540px";
	window.document.getElementById("photoFrm").style.width = "640px";
	window.document.getElementById("photoFrm").style.height = "540px";
	window.document.getElementById("photoLayer").style.display = "";
	$.blockUI({ 
		message : $("#photoLayer")
    });
}

function goWebjin(){
	document.location.href="/eng/cyber/board.do?todo=getSpeechArticleList&bbsid=37";
}

//·Î±×ÀÎ userLogin
function korlogin(){ 
	var e = window.event;
	if(e.keyCode == 13){
		
	} else {
		return false;
	}
	if($("[name = loginuserid]").val().isBlank() ){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		$("[name = loginuserid]").focus();
		return false;
	}
	if($("[name = loginpasswd]").val().isBlank() ){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		$("[name = loginpasswd]").focus();
		return false;
	}
	
	$("#userLoginLayerForm").submit();
	return false;
}

//·Î±×ÀÎ ENG userLogin
function englogin(){
	var e = window.event;
	if(e.keyCode == 13){
		
	} else {
		return false;
	}	
	if($("[name = engloginuserid]").val().isBlank() ){
		alert("Please input ID.");
		$("[name = engloginuserid]").focus();
		return false;
	}
	if($("[name = engloginpasswd]").val().isBlank() ){
		alert("Please input password.");
		$("[name = engloginpasswd]").focus();
		return false;
	}
	
	$("#userLoginLayerForm").submit();
	return false;
}