//----------------------------------------------------------------------------------------------------
//    Purpose : ÀÌ¹ÌÁö ·Ñ¿À¹ö / ·Ñ¾Æ¿ô
//----------------------------------------------------------------------------------------------------
function fnRollOver(oImg) {
	newSrc	= (oImg.src).replace(/.gif/g,"") + '_over.gif';
	oImg.src = newSrc;
}

function fnRollOut(oImg) {
	newSrc	= (oImg.src).replace(/_over/g,"");
	oImg.src = newSrc;
}

function menuSet(id) {
	document.all(id).style.display = '' ;
}

function bmenuSet(id) {
	document.all(id).style.display = '' ;
}

//----------------------------------------------------------------------------------------------------
//    ¹è³Ê ·Î±× ±â·Ï
//----------------------------------------------------------------------------------------------------

function bannerLog(idx,link,id,ip) {
	window.open('/banner/bannerHub.asp?idx='+idx+'&link='+link+'&id='+id+'&ip='+ip,'','');
}


//----------------------------------------------------------------------------------------------------
//    HTML ÅÂ±× ¾ø¾Ö±â
//----------------------------------------------------------------------------------------------------

function removeHTML(string) {
   var objStrip = new RegExp();
   objStrip = /[<][^>]*[>]/gi;
   return string.replace(objStrip, "");
}

//--------------------------------------------------------------------------------------------------------------

//ÁöÁ¤µÈ À§Ä¡¿¡ »õÃ¢ ¿­±â
function fn_clickWin(newPage,winNm,width,height){
	var iLeft;
	var iTop;
	iLeft = (window.screen.width/2) - ((width/2) + 10); 
	iTop = (window.screen.height/2) - ((height) + 50); 
	var winPopup;
	winPopup = window.open(newPage,winNm,'width='+width+',height='+height+',scrollbars=yes,resizable=no,menubar=no,status=no,toolbar=no,left='+iLeft+',top='+iTop+',screenX='+iLeft+',screenY='+iTop);
	winPopup.focus();
} 

function LinkControl(target) {
	window.open(target,'','width=800, height=600,scrollbars=yes,resizable=yes,menubar=yes,status=yes,toolbar=yes, directories=yes, location=yes');
}

function openLogin(pages, target) {
	fn_clickWin('http://www.beautynury.com/login/login.asp?ls_Url='+pages+'&target='+target,'login',448,260);
}

function openPopup() {
	window.open('/popup/pop_1212.html','login','top=0, left=0, toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=0,width=710,height=629')
}

/* °øÅë sect ÀÚ¹Ù½ºÅ©¸³Æ®*/
function sectCommon(n, total, imgName) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sect_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = imgName+""+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = imgName+""+i+".gif";
		}
	}
}

function sectCommon2(n, total, imgName) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectB'+i);
		img = document.getElementById('sect_rollB'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = imgName+""+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = imgName+""+i+".gif";
		}
	}
}

/* ¸ÞÀÎÈ­¸é ¿ìÃø ±ÝÁÖÀÇ ÀÎ±âÈ¸»ç ±ÝÁÖÀÇ ÀÎ±âºê·£µå */
function sectCommon3(n, total, imgName) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectC'+i);
		img = document.getElementById('sect_rollC'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = imgName+""+i+"_test_over.gif";
		} else {
			obj.style.display = "none";
			img.src = imgName+""+i+"_test.gif";
		}
	}
}

/* ¸ÞÀÎÈ­¸é ÁÂÃø AD Ã¤³Î ±¤°í ¸ðµ¨ */
function sectCommon4(n, total, imgName) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectD'+i);
		img = document.getElementById('sect_rollD'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = imgName+""+i+"_test_over.gif";
		} else {
			obj.style.display = "none";
			img.src = imgName+""+i+"_test.gif";
		}
	}
}

/* ¸ÞÀÎÈ­¸é ¿ìÃø ±ÝÁÖÀÇÀÎ±âÁ¦Ç° ³×Æ¼ÁðÆò°¡BEST */
function sectCommon5(n, total, imgName) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectE'+i);
		img = document.getElementById('sect_rollE'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = imgName+""+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = imgName+""+i+".gif";
		}
	}
}

function sect(n, total, alpha) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sect_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_"+alpha+"_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_"+alpha+"_"+i+".gif";
		}
	}
}

function sectB(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sectB_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_B_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_B_"+i+".gif";
		}
	}
}

function sectC(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sectC_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_C_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_C_"+i+".gif";
		}
	}
}

function sectD(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sectD_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_D_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_D_"+i+".gif";
		}
	}
}

function sectX(n, total) {
	for(var i = 3; i < total; i++) {
		obj = document.getElementById('sectX'+i);
		img = document.getElementById('sectX_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_D_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_D_"+i+".gif";
		}
	}
}


function sectE(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sectE_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_E_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_E_"+i+".gif";
		}
	}
}

function sectG(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sect'+i);
		img = document.getElementById('sectG_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/t_F_"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/t_F_"+i+".gif";
		}
	}
}

function sectTab(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectTab'+i);
		img = document.getElementById('sectTab_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/tap0"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/tap0"+i+".gif";
		}
	}
}

function sectP(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectP'+i);
		img = document.getElementById('sectP_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/photo/tap0"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/photo/tap0"+i+".gif";
		}
	}
}

function sectMainTab(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectTab'+i);
		img = document.getElementById('sectTab_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/main/main/beautydesk_tab0"+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/main/main/beautydesk_tab0"+i+".gif";
		}
	}
}

function sectNewsRightA(n, total) {
	for(var i = 1; i < total; i++) {
		obj = document.getElementById('sectNewsRightA'+i);
		img = document.getElementById('sectNewsRightA_roll'+i);
		if ( n == i ) {
			obj.style.display = "block";
			img.src = "/images/news/right/current_"+i+"_on.gif";
		} else {
			obj.style.display = "none";
			img.src = "/images/news/right/current_"+i+".gif";
		}
	}
}




function topPage() { 
	document.body.scrollTop = 0; 
}


function print(idx) { 
	window.open('/news/print.asp?idx='+idx,'print','top=10,left=10,toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=670,height=500'); 
} 

function mail(idx) { 
	window.open('/news/email/email_send_form.asp?idx='+idx,'mail','top=10,left=10,toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=550,height=500'); 
} 

function scrap(idx) { 
	w = screen.availWidth / 2 - 200; h = screen.availHeight / 2 - 150; 
	window.open('/news/scrap/news_scrap_form.asp?idx='+idx,'scrap','top='+h+',left='+w+',toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=410,height=270'); 
}

function emailPreview(idx,rUrl) {
	window.open('/news/email/email_preview_form.asp?idx='+idx+'&Ret_Url='+rUrl,'mailPreview','top=10,left=10,toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=670,height=500'); 
}

function LinkDirect(target) {
	location.href = target;
}

function submit_vote() {
	var obj = document.frmvote;
	obj.submit();
}


/************************************
 ÇÔ¼ö¸í : IsDate
 ¿ë  µµ : ½ºÆ®¸µÀÇ ³¯Â¥ValidÃ¼Å©
 ÀÎ  ¼ö : string(2001-01-31, 2001/01/31)
 °á°ú°ª : true/false
 ÀÛ¼ºÀÚ : ¹Ú¿µ¼ú
 *************************************/
function IsDate(strDate){
	var arrDate;
	var chkDate;
	
	if (strDate.indexOf("-") != -1) {
		arrDate = strDate.split("-");
	}
	else {
		arrDate = strDate.split("/");
	}

	if (arrDate.length != 3) {
		return(false);
	}
	
	chkDate = new Date(arrDate[0] + "/" + arrDate[1] + "/" + arrDate[2]);
	if (isNaN(chkDate) == true || (arrDate[1] != chkDate.getMonth() + 1 || arrDate[2] != chkDate.getDate())) {
		return(false);
	}
	
	return(true);
}


//--------------------------------------------------------------------------------------------------------------


function useEmail(flag) {
	if(flag == 1) {//Á÷Á¢ ÀÌ¸ÞÀÏ ÀÔ·Â
		document.all.ourEmail.style.display = "none";
		document.all.myEmail.style.display = "";
		document.all.whatEmail.value = 2;
		document.all.directEmail.checked = !document.all.directEmail.checked
	}
	if(flag == 2) {//Á¦°øµÈ ÀÌ¸ÞÀÏ ÀÔ·Â
		document.all.ourEmail.style.display = "";
		document.all.myEmail.style.display = "none";
		document.all.whatEmail.value = 1;
		document.all.noEmail.checked = !document.all.noEmail.checked
	}
}


//--------------------------------------------------------------------------------------------------------------


function FocusColor(This) { 
	This.style.backgroundColor = "#F3F9F4"; 
}

function BlurColor(This) { 
	This.style.backgroundColor = "#FFFFFF";
}

//--------------------------------------------------------------------------------------------------------------
function numberCheck(){
	 if((event.keyCode < 48)||(event.keyCode > 57))  event.returnValue=false;
}

function commentRule() {
	window.open('/include/common/rule.htm','','width=465, height=380,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=300,left=300');
}

function bbsRule() {
	window.open('/include/common/bbsrule.htm','','width=465, height=380,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=300,left=300');
}

function bbsRule2() {
	window.open('/include/common/bbsrule2.htm','','width=465, height=380,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=0,left=0');
}

//---------------¶ó¿îµå ¸¸µé±â----------------------------------------------------------------------------------
function makeRound(objID) {
	 var obj = document.getElementById(objID);
	 var Parent, objTmp, Table, TBody, TR, TD;
	 var bdcolor, bgcolor, Space;
	 var trIDX, tdIDX, MAX;
	 var styleWidth, styleHeight;

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

	 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;

	 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);
	 Parent.insertBefore(Table, objTmp);
}


function showCont(val) {
	if(document.all["td_cont"+val].style.display == "none") {
		document.all["td_cont"+val].style.display = "";
		document.all["td_contblank"+val].style.display = "";
	}else {
		document.all["td_cont"+val].style.display = "none"
		document.all["td_contblank"+val].style.display = "none"
	}
}

//----------------------------------------------------------------------------------------------------
//    NEWS Áú¹®ÇÏ±â
//----------------------------------------------------------------------------------------------------

function popQnA(directory, bigcode, middlecode) {
	fn_clickWin('/cosbiz/beauty/popQnAContWrite.asp?qType='+directory+'&bigcode='+bigcode+'&middlecode='+middlecode,'qna',600,500);
}

function goMaxView (title, imgName) {
	var URL =  "/include/common/photoMaxView.asp?dbFile=" + imgName + "&title=" + title
	maxWindow = window.open (URL, "maxwindow","left=0, top=0, toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no, resizable=no, width=535, height=440");
	maxWindow.focus ();
}

//----------------------------------------------------------------------------------------------------
//    Ä·ÆÛ½º ÀÌ¹ÌÁö Å©°Ôº¸±â
//----------------------------------------------------------------------------------------------------
function goMaxCamView (title, imgName) {
	var URL =  "/campus/photoMaxView.asp?dbFile=" + imgName + "&title=" + title
	maxWindow = window.open (URL, "maxwindow","left=0, top=0, toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no, resizable=no, width=600, height=440");
	maxWindow.focus ();
}


function goModelView (title, imgName) {
	var URL =  "/cosbiz/photoMaxView.asp?dbFile=" + imgName + "&title=" + title
	maxWindow = window.open (URL, "maxwindow","left=0, top=0, toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no, resizable=no, width=535, height=440");
	maxWindow.focus ();
}

/* 20060724 »çÀÌÆ® ¸ÞÀÎÈ­¸é ¼­ºê¸Þ´º ÇÏ´Ü ¿À¸¥ÂÊ ¹è³Ê */
function newsScroll() {

	this.version      = "0.1";
	this.name         = "newsScroll";
	this.item         = new Array();
	this.itemcount    = 0;

	this.currentspeed = 0;
	this.scrollspeed  = 50;
	this.pausedelay   = 1000;
	this.pausemouseover = false;
	this.stop         = false;

	this.height = 200;
	this.width  = 100;

	this.add =
		function () {
			var text  = arguments[0];
			this.item[this.itemcount] = text;
			this.itemcount = this.itemcount + 1;
		}

	this.start =
		function () {
			this.display();
			this.currentspeed = this.scrollspeed;
			setTimeout(this.name+'.scroll()',this.currentspeed);
		}

	this.display =
		function () {
			document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
			for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:0px;width:'+this.width+';position:absolute;top:'+(this.height*i+1)+'px;">');
				document.write(this.item[i]);
				document.write('</div>');
			}
			document.write('</div>');
		}

	this.scroll =
		function () {
			this.currentspeed = this.scrollspeed;
			if ( !this.stop ) {
				for (i = 0; i < this.itemcount; i++) {
					obj = document.getElementById(this.name+'item'+i).style;
					obj.top = parseInt(obj.top) - 1;
					if ( parseInt(obj.top) <= this.height*(-1) ) {
						obj.top = this.height * (this.itemcount-1);
					}
					if ( parseInt(obj.top) == 0 ) {
						this.currentspeed = this.pausedelay;
					}
				}
			}
			window.setTimeout(this.name+".scroll()",this.currentspeed);
		}

	this.onmouseover =
		function () {
			if ( this.pausemouseover ) {
				this.stop = true;
			}
		}

	this.onmouseout =
		function () {
			if ( this.pausemouseover ) {
				this.stop = false;
			}
		}
}

/* 20060724 »çÀÌÆ® ¸ÞÀÎÈ­¸é ¼­ºê¸Þ´º ÇÏ´Ü ¿ÞÂÊ ¹è³Ê */
function newsScroll1() {

	this.version      = "0.1";
	this.name         = "newsScroll1";
	this.item         = new Array();
	this.itemcount    = 0;

	this.currentspeed = 0;
	this.scrollspeed  = 50;
	this.pausedelay   = 1000;
	this.pausemouseover = false;
	this.stop         = false;

	this.height = 200;
	this.width  = 100;

	this.add =
		function () {
			var text  = arguments[0];
			this.item[this.itemcount] = text;
			this.itemcount = this.itemcount + 1;
		}

	this.start1 =
		function () {
			this.display();
			this.currentspeed = this.scrollspeed;
			setTimeout(this.name+'.scroll()',this.currentspeed);
		}

	this.display =
		function () {
			document.write('<div id="'+this.name+'" style="height:'+this.height+'px;width:'+this.width+'px;position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
			for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:0px;width:'+this.width+'px;position:absolute;top:'+(this.height*i+1)+'px;">');
				document.write(this.item[i]);
				document.write('</div>');
			}
			document.write('</div>');
		}

	this.scroll =
		function () {
			this.currentspeed = this.scrollspeed;
			if ( !this.stop ) {
				for (i = 0; i < this.itemcount; i++) {
					obj = document.getElementById(this.name+'item'+i).style;
					obj.top = parseInt(obj.top) - 1;
					if ( parseInt(obj.top) <= this.height*(-1) ) {
						obj.top = this.height * (this.itemcount-1);
					}
					if ( parseInt(obj.top) == 0 ) {
						this.currentspeed = this.pausedelay;
					}
				}
			}
			window.setTimeout(this.name+".scroll()",this.currentspeed);
		}

	this.onmouseover =
		function () {
			if ( this.pausemouseover ) {
				this.stop = true;
			}
		}

	this.onmouseout =
		function () {
			if ( this.pausemouseover ) {
				this.stop = false;
			}
		}
}

function noemail() {
	var URL ="/aboutus/noemail.htm"; 
	var status = "toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,menubar=no, width= 348, height= 473, top=0,left=20"; 
	window.open(URL,"noemail",status); 
}


function requestModComInfo(gubun, comcode, comname, bracode, braname) {
	window.open('/include/common/requestModComInfo.asp?strType='+gubun+'&comcode='+comcode+'&comname='+comname+'&bracode='+bracode+'&braname='+braname,'','width=540, height=420,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=0,left=0');
}


function pPointGetNotice() {
	window.open('/include/common/pual02.html','','width=665, height=420,scrollbars=yes,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=0,left=0');
}


function pPointCharge() {
	window.open('/include/common/pointCharge.asp','','width=420, height=230,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=100,left=100');
}


//ÃÊ°úÇÑ ¹ÙÀÌÆ®¿¡ ÇØ´çÇÏ´Â ¹®ÀÚ¿­ Á¤¸® ÇÔ¼ö 
function assert_msglen(message, maximum) {
 var inc = 0;
 var nbytes = 0;
 var msg = "";
 var msglen = message.length;

 for (i=0; i<msglen; i++) {
  var ch = message.charAt(i);
  if (escape(ch).length > 4) {
   inc = 2;
  } else if (ch == '\n') {
		 if (message.charAt(i-1) != '\r') {
			inc = 1;
		 }
  } else if (ch == '<' || ch == '>') {
   inc = 4;
  } else {
   inc = 1;
  }
  if ((nbytes + inc) > maximum) {
   break;
  }
  nbytes += inc;
  msg += ch;
 }
 return msg;
}



//=============================================================================
// ¼³  ¸í: ¼±ÅÃ ÅäÅ¬
// ÀÛ¾÷ÀÏ: 2006-08-??
// ÀÛ¾÷ÀÚ: ¹Ú¿µ¼ú
//=============================================================================

function selectToggle(what){
	if(document.all[what] == null) {
		alert("´ë»óÀÌ ¾ø½À´Ï´Ù.");
		return;
	}
	if(document.all[what].length > 0){
		for(i=0;i<document.all[what].length;i++) document.all[what][i].checked=!document.all[what][i].checked;
	}else document.all[what].checked=!document.all[what].checked;
}

//=============================================================================
// ¼³  ¸í: ÆÄÀÏ Ã·ºÎ½Ã ÀÌ¹ÌÁö¸¸ °¡´É
// ÀÛ¾÷ÀÏ: 2006-08-??
// ÀÛ¾÷ÀÚ: ¹Ú¿µ¼ú
//=============================================================================

function display_image(what){
	var file = what.value;
	var allowSubmit = false;
	var extArray = new Array(".gif", ".jpg", ".png");

	extArray.join(" ");

	if (!file) return;

	while (file.indexOf("\\") != -1)
			file = file.slice(file.indexOf("\\") + 1);

	var ext = file.slice(file.indexOf(".")).toLowerCase();

	for (var i = 0; i < extArray.length; i++) {
			if (extArray[i] == ext) {
					allowSubmit = true;
					break;
			}
	}

	if (allowSubmit) {
	}
	else {
			alert("±×¸² »ðÀÔÀº GIF, JPG, PNG ÆÄÀÏ¸¸ °¡´ÉÇÕ´Ï´Ù. ´Ù½Ã ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿ä.");
			what.select();
			document.selection.clear();
	}
}

//=============================================================================
// ¼³  ¸í: Æ¯Á¤°Ç¿¡ ´ëÇÑ ÀÏ°ý Àû¿ë
// ÀÛ¾÷ÀÏ: 2006-08-??
// ÀÛ¾÷ÀÚ: ¹Ú¿µ¼ú
//=============================================================================
function actionTarget(form, what){
	var sData = "";
	var flag=0;
	var j = 0;
	var dData = "";
	
	if(document.all[what] == undefined) {
		alert("´ë»óÀÌ ¾ø½À´Ï´Ù.");
		return;
	}

	if(document.all[what].length > 0){
		for(i=0;i<document.all[what].length;i++){
			if(document.all[what][i].checked){
				dData += document.all[what][i].value+"^";
				j++;
				flag=1;
			}
		}
	}else{
		if(document.all[what].checked) {
			flag=1;
			dData += document.all[what].value+"^";
		}
	}

	if(!flag){
		alert("´ë»óÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}

	if(confirm("ÇØ´ç ÀÛ¾÷À» ½ÇÇàÇÏ½Ã°Ú½À´Ï±î?")){
		form.targetData.value=dData;
		form.submit();
	}else{
		return;
	}
	return;
}

//=============================================================================
// ¼³  ¸í: Æ¯Á¤°Ç¿¡ ´ëÇÑ ÀÏ°ý »èÁ¦
// ÀÛ¾÷ÀÏ: 2006-08-??
// ÀÛ¾÷ÀÚ: ¹Ú¿µ¼ú
//=============================================================================
function listdelete(form, what){
	var sData = "";
	var flag=0;
	var j = 0;
	var dData = "";
	
	if(document.all[what] == undefined) {
		alert("´ë»óÀÌ ¾ø½À´Ï´Ù.");
		return;
	}

	if(document.all[what].length > 0){
		for(i=0;i<document.all[what].length;i++){
			if(document.all[what][i].checked){
				dData += document.all[what][i].value+"^";
				j++;
				flag=1;
			}
		}
	}else{
		if(document.all[what].checked) {
			flag=1;
			dData += document.all[what].value+"^";
		}
	}

	if(!flag){
		alert("´ë»óÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}
	if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
		form.targetData.value=dData;
		form.submit();
	}else{
		return;
	}
	return;
}


//=============================================================================
// ¼³  ¸í: Æ¯Á¤°Ç¿¡ ´ëÇÑ ÀÏ°ý »èÁ¦
// ÀÛ¾÷ÀÏ: 2006-08-??
// ÀÛ¾÷ÀÚ: ¹Ú¿µ¼ú
//=============================================================================
function actionTargetDel(form, what){
	var sData = "";
	var flag=0;
	var j = 0;
	var dData = "";
	
	if(document.all[what] == undefined) {
		alert("´ë»óÀÌ ¾ø½À´Ï´Ù.");
		return;
	}

	if(document.all[what].length > 0){
		for(i=0;i<document.all[what].length;i++){
			if(document.all[what][i].checked){
				dData += document.all[what][i].value+"^";
				j++;
				flag=1;
			}
		}
	}else{
		if(document.all[what].checked) {
			flag=1;
			dData += document.all[what].value+"^";
		}
	}

	if(!flag){
		alert("´ë»óÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}

	if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
		form.targetData.value=dData;
		form.submit();
	}else{
		return;
	}
	return;
}

//--------------------------------------------------------------------------------------------------------------
function moveTab(from, leng,  dest) {	
	var obj = from.value;
	var len = leng;
	var destination = dest;
	var l = from.value.length;

	if(eval(l) == len){
		destination.focus();
	}
}


//--------------------------------------------------------------------------------------------------------------
function zipSearch(frm, obj1, obj2) {
	fn_clickWin('/intranet/erp/zip_search_form.asp?frm='+frm+'&obj1='+obj1+'&obj2='+obj2,'erp',400,300);
}

/* --------------------------------------------------
   ÀÌ¸ÞÀÏ Á÷Á¢ÀÔ·Â
-------------------------------------------------- */
function changeEmail(val) {
	if(val == "D") {
		document.all["email2"].readOnly = false;
		document.all["email2"].value = "";
		document.all["email2"].focus();
		return true;
	}else {
		document.all["email2"].readOnly = true;
		document.all["email2"].value = val;
	}
}

/* --------------------------------------------------
   ½ºÆ®¸µ¿¡¼­ °ø¹éÁ¦°Å
-------------------------------------------------- */
function fnTrim(chStr) {
 var nStrCheck; 
 nStrCheck = chStr.indexOf(" ");     
 while (nStrCheck != -1) { 
		 chStr = chStr.replace(" ", ""); 
		 nStrCheck  = chStr.indexOf(" "); 
 } 
 return chStr;               
}


/* --------------------------------------------------
   ´Þ·Â ¶Ù¿ì±â
-------------------------------------------------- */
function openCalendar(frm, obj, fdate) {
	var arrCal = fdate.split("-");
	curYear = arrCal[0];
	curMonth= arrCal[1];
	winobj = window.open('/include/common/small_calendar.asp?frm='+frm+'&obj='+obj+'&curYear='+curYear+'&curMonth='+curMonth, 'event', 'width=192, height=200, top=200, left=200');
}


ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

/* --------------------------------------------------
   ±ÛÀÚ¼ö Ç¥½Ã ¹× textarea ±ÛÀÚ Ã¼Å©
-------------------------------------------------- */
function checklength(str, maxlen) {
	var obj = document.frmcomment;
	tlength = str.length+(escape(str)+"%u").match(/%u/g).length-1;
	
	var li_byte = 0;
	var i = 0;

	for (i=0; i<str.length; i++) {
		li_byte += (str.charCodeAt(i) > 128) ? 2 : 1;
		if(li_byte > maxlen) break;
	}

	if(li_byte > maxlen) {
		alert("ÃÖ´ë "+maxlen+"ÀÚ ±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù. ÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿ »èÁ¦ µË´Ï´Ù.");
		TempVal = obj.comments.value.substring(0,i);
		obj.comments.value = ""
		obj.comments.value = TempVal;
		var tvalue = "ÇöÀç <b>" + maxlen +"</b>ÀÚ";
		layerWrite('textlen',null,tvalue);
		return false;
	} else { 
		var tvalue = "ÇöÀç <b>" + li_byte +"</b>ÀÚ";
		layerWrite('textlen',null,tvalue);
	}
	var tvalue = "ÇöÀç <b>" + li_byte +"</b>ÀÚ";
	layerWrite('textlen',null,tvalue);
}
function layerWrite(id,nestref,text) {
	if (ns4) {
		var lyr = (nestref)? eval('document.'+nestref+'.document.'+id+'.document') : document.layers[id].document
		lyr.open()
		lyr.write(text)
		lyr.close()
	}
	else if (ie4) document.all[id].innerHTML = text
}



/* --------------------------------------------------
   ´ñ±Û ÀÔ·Â
-------------------------------------------------- */
function submitComment(str, maxlen) {
	var obj = document.frmcomment;

	if(obj.comments.value == "") {
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä');
		obj.comments.focus();
		return;
	}
	
	tlength = str.length+(escape(str)+"%u").match(/%u/g).length-1;
	var li_byte = 0;
	var i = 0;

	for (i=0; i<str.length; i++) {
		li_byte += (str.charCodeAt(i) > 128) ? 2 : 1;
		if(li_byte > maxlen) break;
	}

	if(li_byte > maxlen) {
		alert("ÃÖ´ë 200ÀÚ ±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.");
		TempVal = obj.comments.value.substring(0,i);
		obj.comments.value = ""
		obj.comments.value = TempVal;
		return;
	}
	obj.submit();
}

function submitCommentGuest(str, maxlen) {
	var obj = document.frmcomment;

	if(obj.comments.value == "") {
		alert('³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä');
		obj.comments.focus();
		return;
	}
	
	if(obj.password.value == "") {
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
		obj.password.focus();
		return;
	}

	var res= '0123456789';
	for(i = 0; i<obj.password.value.length; i++){  
		if(res.indexOf(obj.password.value.substring(i,i+1)) < 0){
			alert("ÆÐ½º¿öµå´Â ¼ýÀÚ¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù.");
			obj.password.focus();
			return ;
		}
	}


	tlength = str.length+(escape(str)+"%u").match(/%u/g).length-1;
	var li_byte = 0;
	var i = 0;

	for (i=0; i<str.length; i++) {
		li_byte += (str.charCodeAt(i) > 128) ? 2 : 1;
		if(li_byte > maxlen) break;
	}

	if(li_byte > maxlen) {
		alert("ÃÖ´ë 200ÀÚ ±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.");
		TempVal = obj.comments.value.substring(0,i);
		obj.comments.value = ""
		obj.comments.value = TempVal;
		return;
	}
	obj.submit();
}



/* --------------------------------------------------
   ´ñ±Û »èÁ¦
-------------------------------------------------- */
function deleteComment(idx) {
	document.frmcomment.mode.value = "dely";
	document.frmcomment.commentid.value = idx;
	document.frmcomment.submit();
}

function deleteCommentGuest(comID,idx, section) {
	if(section = 'news') window.open('/news/news_comment_delete_form.asp?comID='+comID+'&newsID='+idx,'','width=300, height=100,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=300,left=300');
}

function deleteCampusCommentGuest(comID,campusID, gubun) {
	window.open('/campus/campus_comment_delete_form.asp?comID='+comID+'&campusID='+campusID+'&gubun='+gubun,'','width=300, height=100,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=300,left=300');
}


/* --------------------------------------------------
   ºäÆ¼´©¸®¸¦ ½ÃÀÛÆäÀÌÁö·Î
-------------------------------------------------- */
function bookmark(){
	window.external.AddFavorite('http://www.beautynury.com', 'ºäÆ¼´©¸®')
}



/* --------------------------------------------------
   ÀÌ¸ÞÀÏ Ã¼Å©
-------------------------------------------------- */
function emailCheck(val){
	var t = val
	if (t != '') {
		var Alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
		var Digit = '1234567890'
		var Symbol='_-'
		var check = '@.' + Alpha + Digit + Symbol
		for (i=0; i < t.length; i++){
			if(check.indexOf(t.substring(i,i+1)) < 0) {
				alert('EmailÀÌ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.');
				return false;
			}
		}

		var check = '@'
		var a = 0
		for (i=0; i < t.length; i++){
			if(check.indexOf(t.substring(i,i+1)) >= 0) {
				a = 1
			}
		}

		var check = '.'
		var b = 0
		for (i=0; i < t.length; i++){
			if(check.indexOf(t.substring(i,i+1)) >= 0) {
				b = 1
			}
		}
		if (a == 1){
			if (b == 1) {
			} else{
				return false;
			}
		} else{
				return false;
		}
		return true;
	}
}



/* --------------------------------------------------
   ¼¿·ºÆ®¹Ù ¹Ù·Î°¡±â
-------------------------------------------------- */
function namosw_goto_byselect(sel, targetstr) {
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
       frameobj.location = sel.options[index].value;
     }
  }
}


/* --------------------------------------------------
   iframe »çÀÌÁî Á¶Àý
-------------------------------------------------- */
function resizeFrame(iframeObj){
		var innerBody = iframeObj.contentWindow.document.body;
		oldEvent = innerBody.onclick;
		innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
		var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
		iframeObj.style.height = innerHeight;
		var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
		iframeObj.style.width = innerWidth;
}

/* --------------------------------------------------
   ÀÌ¹ÌÁö ·Îµù 
-------------------------------------------------- */
function imgcheck (defWidth, defHeight) {
	var imgWidth = defWidth; //** ¼³Á¤ ÀÌ¹ÌÁö Æø°ª
	var imgHeight = defHeight; //** ¼³Á¤ ÀÌ¹ÌÁö ³ôÀÌ°ª
	var loop=imgs.length-1; //ÀÌ¹ÌÁö°¹¼ö
	var temp=new Array(); // ÀÌ¹ÌÁö·ÎµåÃ¼Å©À§ÇÑ ¹è¿­

	for (i=0;i<=loop;i++){
		if(!imgs[i].complete) {//ÀÌ¹ÌÁö°¡ ·ÎµåµÇÁö¾ÊÀ¸¸é
			setTimeout('imgcheck('+defWidth+','+defHeight+')',100);
		}else{//·ÎµåµÇ¾úÀ»°æ¿ì temp¹èº°¹æ 0 ¹øºÎÅÍ true¸¦ Áý¾î³Ö´Â´Ù
			temp[i]=imgs[i].complete;
		}
	}

	for (i=0;i<=loop;i++){
		var O_Width		= imgs[i].width; //** ÀÌ¹ÌÁöÀÇ ½ÇÁ¦ Æø
		var O_Height	= imgs[i].height; //** ÀÌ¹ÌÁöÀÇ ½ÇÁ¦ ³ôÀÌ
		var ReWidth		= O_Width; //** º¯È­µÈ Æø ÀúÀå º¯¼ö
		var ReHeight	= O_Height; //** º¯È­µÈ ³ôÀÌ ÀúÀå º¯¼ö

		if(ReWidth > imgWidth) {
			ReWidth = imgWidth;
		}else {
			ReWidth = ReWidth;
		}

		if(ReHeight > imgHeight) {
			ReHeight = imgHeight;
		}else {
			ReHeight = ReHeight;
		}
		//** Ã³¸®
		imgs[i].width = ReWidth;
		imgs[i].height = ReHeight;
	}
		imgTable.style.visibility = 'visible';

}


// ÀÌ¹ÌÁö »çÀÌÁî °íÁ¤
function resizeImgSub(img) {
	var imgTemp = new Image();
	imgTemp.src = img.src; 

	if ( imgTemp.width > img.visibleImgObj.width || imgTemp.height > img.visibleImgObj.height ){
		if ( (img.width / img.visibleImgObj.width) > (img.height / img.visibleImgObj.height) ) img.visibleImgObj.height = Math.round(img.height * (img.visibleImgObj.width / img.width));
		else img.visibleImgObj.width = Math.round(img.width * (img.visibleImgObj.height / img.height));
	} else {
		img.visibleImgObj.width = imgTemp.width;
		img.visibleImgObj.height = imgTemp.height;
	}
}

function resizeImg(imgObj) {
 var imgOriginal = new Image();
 imgOriginal.visibleImgObj = imgObj;
 imgOriginal.onload = function() { resizeImgSub(this); }  
 imgOriginal.src = imgObj.src;
}



/* --------------------------------------------------
   ÀÌ¹ÌÁö ÅÇ ÀÌµ¿
-------------------------------------------------- */
function showSect(n, total, imgName, tabName1, tabName2) {
	for(var i = 1; i <= total; i++) {
		//obj = document.getElementById('sectTab'+i); //ÅÇ ³»¿ë
		//img = document.getElementById('sectImg'+i); //ÅÇ ÀÌ¹ÌÁö

		obj = document.getElementById(tabName1+""+i); //ÅÇ ³»¿ë
		img = document.getElementById(tabName2+""+i); //ÅÇ ÀÌ¹ÌÁö
		if ( n == i ) {
			obj.style.display = "block";
			img.src = imgName+""+i+"_over.gif";
		} else {
			obj.style.display = "none";
			img.src = imgName+""+i+".gif";
		}
	}
}


function NvChange() {

	this.version = "0.1";
	this.name = "NvChange";
	this.item = new Array();
	this.itemcount = 0;
	this.itemoffset = 0;
	this.item_i = new Array();
	this.item_icount = 0;
	this.item_ioffset = 0;
	this.currentspeed = 0;
	this.scrollspeed = 50;
	this.pausedelay = 1000;
	this.pausemouseover = false;
	this.stop = 0;
	this.height = 150;
	this.heightGap = 0;
	this.width = 100;
	this.height_i = 150;
	this.width_i = 100;
	this.stopHeight=0;
	this.count=0;
	this.flag=true;
	this.position="absolute";
	this.item_position="absolute";

	this.add = function () {
		var text = arguments[0];
		this.item[this.itemcount] = text;
		this.itemcount = this.itemcount + 1;
	};

	this.addImage = function () {
		var text = arguments[0];
		this.item_i[this.item_icount] = text;
		this.item_icount = this.item_icount + 1;
	};

	this.start = function () {
		this.display();
		this.currentspeed = this.scrollspeed;
		obj = document.getElementById(this.name+'item0').style;
		obj.display='block';
		this.count++;
		setTimeout(this.name+'.scroll()',this.currentspeed);
	};

	this.ready = function () {
		now = new Date(); ran = now % this.item_icount;
		temp = this.item_i[ran]; this.item_i[ran] = this.item_i[0]; this.item_i[0] = temp;
		this.displayImage();
		obj_i = document.getElementById(this.name+'item_i0').style;
		obj_i.display='block';
	};

	this.display = function () {
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">');
				document.write(this.item[i]);
				document.write('</div>');
		}
		document.write('</div>');
	};

	this.displayImage = function () {
		document.write('<div id="'+this.name+'_i" style="left:0; height:'+this.height_i+';width:'+this.width_i+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.item_icount; i++) {
			document.write('<div id="'+this.name+'item_i'+i+'"style="left:0px; width:'+this.width_i+'; display:none; ">');
			document.write(this.item_i[i]);
			document.write('</div>');
		}
		document.write('</div>');
	};

	this.scroll = function () {
		this.currentspeed = this.scrollspeed;
		if ( !this.stop ) {
			this.imageChange();
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	};


	this.imageChange = function ()
	{
		for (k = 0; k < this.item_icount; k++) {
			obj_i = document.getElementById(this.name+'item_i'+k).style;
			if (this.count % this.item_icount == k) {
				obj_i.display = 'block';
			} else {
				obj_i.display = 'none';
			}
		}
		for (k = 0; k < this.itemcount; k++) {
			obj = document.getElementById(this.name+'item'+k).style;
			if (this.count % this.itemcount == k) {
				obj.display = 'block';
			} else {
				obj.display = 'none';
			}
		}
		this.count++;
	}

	this.onmouseover = function ()
	{
		if ( this.pausemouseover ) {
			this.stop = 1;
		}
	};
		for (k = 0; k < this.item_icount; k++) {
			obj_i = document.getElementById(this.name+'item_i'+k).style;
			if (this.count % this.item_icount == k) {
				obj_i.display = 'block';
			} else {
				obj_i.display = 'none';
			}
		}

	this.onmouseout = function ()
	{
		if ( this.pausemouseover ) {
			this.stop = 0;
		}
	};

	this.up = function ()
	{
		var i;
		this.stop++;

		if ( this.itemcount <= this.itemoffset )
			this.itemoffset = this.itemoffset % this.itemcount;

		for (i = 0; i < this.item_icount; i++) {
			obj_i = document.getElementById(this.name+'item_i'+i).style;
			if ( obj_i.display == "block" ) {this.item_ioffset = i+1;obj_i.display="none";}
		}

		if (this.item_icount > 0) {
			if (this.item_ioffset < this.item_icount) {
				obj_i = document.getElementById(this.name+'item_i'+this.item_ioffset).style;
				obj_i.display = "block";
			} else {
				obj_i = document.getElementById(this.name+'item_i0').style;
				obj_i.display = "block";
			}
		}
		for (i = 0; i < this.itemcount; i++) {
			obj = document.getElementById(this.name+'item'+i).style;
			if ( obj.display == "block" ) {this.itemoffset = i+1;obj.display="none";}
		}
		if (this.itemoffset < this.itemcount) {
			obj = document.getElementById(this.name+'item'+this.itemoffset).style;
			obj.display = "block";
		} else {
			obj = document.getElementById(this.name+'item0').style;
			obj.display = "block";
		}
		window.setTimeout(this.name + ".stop--;",this.pausedelay);
		//this.stop--;
	}

}

//°ø¹éÁ¦°Å
function strTrim(str) {
	return str.replace(/(^\s*)|(\s*$)/g, "");
}


//Æ¯¼ö¹®ÀÚ
function checkSpecialChar(expression) {
 var strSpecial = " `~!@#$%^&*()+|\;\\/:=-<>.'\" "; 
 for(i=0;i<expression.length;i++) {
	for(j=0;j<strSpecial.length;j++) {
		if(expression.charAt(i) == strSpecial.charAt(j)) {
			return false;   // Æ¯¼ö¹®ÀÚ°¡ ÀÖÀ¸¸é.. false
		}
	 }
	}
	return true;
}

function autoChecked(what) {
	var fileobj = what.value;

	if (!fileobj) return;
	ext			= fileobj.slice(fileobj.lastIndexOf (".")+1).toLowerCase();
	fileobj = fileobj.substring(fileobj.lastIndexOf("\\")+1, fileobj.lastIndexOf ("."));

	if(!checkSpecialChar(fileobj)) {
		alert('¾÷·Îµå ÆÄÀÏ ÀÌ¸§¿¡ Æ¯¼ö¹®ÀÚ(\\,\',\",/,?,*,#,<,>,%)µî°ú °ø¹éÀÌ µé¾î ÀÖÀ¸¸é ¾ÈµË´Ï´Ù') 
		return false;
	}

	if(ext != "") {
		if('asa,asp,php,jsp,js,sql,htm,html,bak,dll,exe' == '') {
		}else {
			if("asa,asp,php,jsp,js,sql,htm,html,bak,dll,exe".indexOf(ext) != -1) {
				alert(ext+" È®ÀåÀÚ´Â ¾÷·Îµå ÇÒ¼ö ¾ø½À´Ï´Ù.");
				//what.select();
				//document.selection.clear();
				return false;
			}
		}
	}
}
