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_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_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 getFlashObject(url, width, height) {
	var strObj = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>";
	strObj += "<param name='movie' value='" + url + "'>";
	strObj += "<param name='quality' value='high'>";
	strObj += "<param name='wmode' value='transparent'>";
	strObj += "<embed src='"+url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>";
	strObj += "</object>";

	return strObj;
}
function FlashObject(url, width, height) {
	document.write(getFlashObject(url, width, height));
}

function initMoving(target, position, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = target;
	obj.initTop = position;
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.left = obj.initLeft;

	if (typeof(window.pageYOffset) == "number") {
		obj.getTop = function() {
			return window.pageYOffset;
		}
	} else if (typeof(document.documentElement.scrollTop) == "number") {
		obj.getTop = function() {
			return document.documentElement.scrollTop;
		}
	} else {
		obj.getTop = function() {
			return 0;
		}
	}

	if (self.innerHeight) {
		obj.getHeight = function() {
			return self.innerHeight;
		}
	} else if(document.documentElement.clientHeight) {
		obj.getHeight = function() {
			return document.documentElement.clientHeight;
		}
	} else {
		obj.getHeight = function() {
			return 500;
		}
	}

	obj.move = setInterval(function() {
		if (obj.initTop > 0) {
			pos = obj.getTop() + obj.initTop;
		} else {
			pos = obj.getTop() + obj.getHeight() + obj.initTop;
			//pos = obj.getTop() + obj.getHeight() / 2 - 15;
		}

		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit;
		if (pos < obj.topLimit)
			pos = obj.topLimit;

		interval = obj.top - pos;
		obj.top = obj.top - interval / 3;
		obj.style.top = obj.top + "px";
	}, 30)
}

function CharLength(str) {
	var tmpStr;
	var temp = 0;
	var onechar;
	var tcount = 0;

	tmpStr = new String(str);
	temp = tmpStr.length;
	for (var k=0;k<temp;k++) {
		onechar = tmpStr.charAt(k);
		if (escape(onechar).length > 4) {
			tcount += 2;
		}
		else if (onechar!='\r') {
			tcount++;
		}
	}

	return tcount;
}

function ZipCode() {
	open("/common/include/pop_search_post.asp", "zipcode", "toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=400, height=350");
}

function OnlyNumber(){
	if(((event.keyCode<48)||(57<event.keyCode))&&(45!=event.keyCode)) event.returnValue=false;}

function Validchar(g,str){
	for( var i=0 ; i < g.length; i++ ){
		if( str.indexOf(g.charAt(i)) == -1 ) return g.charAt(i);
	}
	return true;
}

function ChkPhoneLen (ss,len) {
	var val = Object.length;
	alert(ss);

}

function ChkInput(Object,Name) {
	if (typeof(Object)!="undefined") {
		if(Object.value=="" || !Object.value.replace(/\s/g, "")) {
			alert(Name);
			eval(Object.focus());
			return false;
		}
	}
}

function ChkSelect(Object,Name) {
	if(!Object.options[Object.selectedIndex].value) {
		alert(Name);
		eval(Object.focus());
		return false;
	}
}

function ChkArray(Object,Name) {
	var Key=0;

	if (Object!=null && isNaN(Object.length)) {
		if (!Object.checked) {
			alert(Name);
			return false;
		}
	} else {

        if(Object!=null) {
    		for(i=0;i<Object.length;i++) if(!Object[i].checked) Key++;
    		if(Key==Object.length){
    			alert(Name);
    			return false;
    		}
    	} else {
    	    alert("ÀÚ·á°¡ ¾ø½À´Ï´Ù.");
    	    return false;   
    	}
	}
}

/* Password Validation */
/* ¿µ¹®/¼ýÀÚ 4ÀÚ¸® ÀÌ»ó 20ÀÚ¸® ÀÌÇÏ */
function Check_PW_Rule(objPw) {
	var oPWMatch = new RegExp(/^[A-Z0-9]{4,20}$/i);
	if(!oPWMatch.test(objPw.value)) {
		alert('ºñ¹Ð¹øÈ£¸¦¸¦ Çü½Ä¿¡ ¸Â°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä.\n\n4ÀÚ¸® ÀÌ»ó 20ÀÚ¸® ÀÌÇÏ ¿µ¹®/¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.');
		objPw.focus();
		return false;
	} else return true;
}

/* Email Validation */
function Check_Email_Rule(strEmail) {
	return strEmail.search(/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)>=0;
}

/* URL Validation */
function Check_URL_Rule(strURL){
	return strURL.search(/^\s*['http://']+[\w\~\-\.]+\.[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)>=0;
}

function Check_Phone_Rule(phoneNo) {
	return phoneNo.search(/^[0]{1}[0-9]{1,2}[\-]{1}[0-9]{3,4}[\-]{1}[0-9]{4}$/g) >= 0;
}

/* ÁÖÁß¿©ºÎ È®ÀÎ */
function Check_OnWeek(dateStr) {
	if(getDateFromStr(dateStr).getDay() >= 1 && getDateFromStr(dateStr).getDay() < 6)
		return true;
	else
		return false;
}
/* ÁÖ¸»¿©ºÎ È®ÀÎ */
function Check_WeekEnd(dateStr) {
	if(getDateFromStr(dateStr).getDay() == 6)
		return true;
	else
		return false;
}
/* return Date object */
function getDateFromStr(dateStr) {
	var str = dateStr.substr(5, 2)+'-'+dateStr.substr(8, 2)+'-'+dateStr.substr(0, 4);
	return new Date(str);
}
/* ¹Ìµð¾î °øÅë »ç¿ë */
function MediaObject(URL, Name, width, height) {
	document.write('<object ID="'+Name+'" name="'+Name+'" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"  standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="middle" width="'+width+'" height="'+height+'">');
	document.write('  <param name="CurrentPosition" value="1">');
	document.write('  <param name="SetCurrentEntry" value="1">');
	document.write('  <param name="ClickToPlay" value="1">');
	document.write('  <param name="AutoSize" value="0">');
	document.write('  <param name="AutoStart" value="1">');
	document.write('  <param name="ShowControls" value="1">');
	document.write('  <param name="ShowAudioControls" value="1">');
	document.write('  <param name="ShowDisplay" value="0">');
	document.write('  <param name="ShowStatusBar" value="1">');
	document.write('  <param name="EnableContextMenu" value="0">');
	document.write('  <param name="ShowPositionControls" value="0">');
	document.write('  <param name="DisplayBackColor" value="0">');
	document.write('  <param name="ShowTracker" value="1">');
	document.write('  <param name="ShowCaptioning" value="0">');
	document.write('  <param name="AutoRewind" value="0">');
	document.write('  <param name="EnableTracker" value="1">');
	document.write('  <param name="Volume" value="-1">');
	document.write('  <param name="Filename" value="'+URL+'">');
	document.write('</object>');
}

function ShowProgress(obj) { 
	strAppVersion = navigator.appVersion; 
	if (obj.value != "") {
		if (strAppVersion.indexOf('MSIE')!=-1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) { 
			winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes"; 
			window.showModelessDialog("/Common/inc/show_progress.asp?nav=ie", null, winstyle); 
		} 
		else { 
			winpos = "left=" + ((window.screen.width-380)/2)+",top=" + ((window.screen.height-110)/2); 
			winstyle = "width=380,height=110,status=no,toolbar=no,menubar=no," + "location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos; 
			window.open("/Common/inc/show_progress.asp",null,winstyle); 
		} 
	}
}

function openPopupWin(url, name, width, height) {
	window.open (url, name, 'scrollbars=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, width=' + width + ', height=' + height) ;
}

function getValueById(objId) {
	var resultVal = "";
	var resultObj = document.getElementById(objId);

	if(resultObj!=null)
		resultVal = resultObj.value;

	return resultVal;
}

function ChkLen(obj, len) {
	if(obj.value.length > len) {
		alert(len+"ÀÚ Á¦ÇÑÀÌ µÇ¾î ÀÖ½À´Ï´Ù");
		//obj.value = obj.value.substring(0,len);
		return false;
	}
}

function Login_Pop() {
		window.open ("/html/member/member_popup_login.asp?return_url="+location.href,"login","width=358,height=250");	
}

function Login_Out() {
		location.href = "/common/inc/login_out.asp";
}

function SendMail(m_idx, t_idx, st, rt) {
	var url;
	url = "/common/message/inc_send_mail.asp?mem_idx="+m_idx+"&tea_idx="+t_idx+"&stype="+st+"&rtype="+rt;
	if(document.getElementById("Layer") != null)
		OpenPageLayer(url, 540, 500);
	else {
		var newWin = window.open(url,"sendMail","width=540, height=500, scrollbars=yes");
		newWin.focus();
	}
}

function ViewMail(m_idx, t_idx, st, rt) {
	var url;
	url = "/common/message/inc_send_mail_list.asp?mem_idx="+m_idx+"&tea_idx="+t_idx+"&stype="+st+"&rtype="+rt;
	if(document.getElementById("Layer") != null)
		OpenPageLayer(url, 540, 400);
	else {
		var newWin = window.open(url,"View_Mail","width=540,height=400,scrollbars=yes");
		newWin.focus();
	}
}

/* ·¹ÀÌ¾îÆË¾÷ */
/* layer_marginLeft , layer_marginTop */
var layer_marginLeft = 200;
var layer_marginTop  = 50;
function CallPageLayer() {
	document.write("<div id='BGLayer' style='position:absolute;left:0px;top:0px;width:100%;-moz-opacity:0.5;filter:alpha(opacity=60);display:none;z-index:99;background-color: #CCCCCC;' onClick='ClosePageLayer()'></div>");
	document.write("<div style='text-align:center;position:absolute;width:100%;top:" + layer_marginTop + "px;display:none;z-index:100;' id='Layer' name='Layer' onClick='ClosePageLayer()'>");
	document.write("<table border='0' bgcolor='#CCCCCC'>");
	document.write("  <tr>");
	document.write("	<td align='center'>");
	document.write("	  <table id='layerTable' width='100%' cellpadding='2' cellspacing='1' border='0' bgcolor='#666666' style='zindex: 1;'>");
	document.write("		<tr>");
	document.write("		  <td bgcolor='white'><iframe src='' width='495' height='250' frameborder='0' id='frame' name='frame'></iframe></td>");
	document.write("		</tr>");
	document.write("	  </table>");
	document.write("	</td>");
	document.write("  </tr>");
	document.write("</table>");
	document.write("</div>");
}
function OpenPageLayer(url, width, height) {
	var obj = document.getElementById("Layer");
	obj.style.top = document.body.scrollTop + 10;
	if(obj.style.display == "none") {
		obj.style.display = "";
		var objBg = document.getElementById("BGLayer");
		if(objBg!=null) {
			objBg.style.display = "";
			/*if(objBg.scrollHeight > 0)
				objBg.style.height = objBg.scrollHeight;
			else
				objBg.style.height = objBg.offsetHeight;
			*/
			//objBg.style.width  = objBg.offsetWidth + 20;
			document.body.width = '100%';
			objBg.style.width = document.body.offsetWidth - 17;
		}
		var tableObj = document.getElementById("layerTable");
		if(tableObj!=null)
			tableObj.width = width;
		var frameObj = document.getElementById("frame");
		if(frameObj!=null) {
			frameObj.width = width;
			frameObj.height = height;
			frameObj.src = url;
		}

		objBg.style.height = document.body.scrollHeight + 30;
	}

}
function ClosePageLayer() {
	var obj = document.getElementById("Layer");
	if(obj!=null) {
		var objBg = document.getElementById("BGLayer");
		obj.style.display = "none";
		obj.style.height = 100;
		if(objBg!=null) {
			objBg.style.display = "none";
			objBg.style.height = 100;
		}
		var frameObj = document.getElementById("frame");
		if(frameObj!=null) {
			frameObj.src = '/blank.asp';
		}
	}
}
function PopupClose() {
	if(parent!=null && parent.document.getElementById('layer')!=null) {
		parent.ClosePageLayer();
	}else
		window.close();
}
function DisplayWriteLine(width) {
	if(width==null || width=="")
		width = "400";

	document.write("	  <table cellpadding='0' cellspacing='0' border='0' width='" + width + "'>");
	document.write("		<tr>");
	document.write("          <td height='6'></td>");
	document.write("        </tr>");
	document.write("		<tr>");
	document.write("          <td height='4' bgcolor='#EEEEEE'></td>");
	document.write("        </tr>");
	document.write("		<tr>");
	document.write("          <td height='6'></td>");
	document.write("        </tr>");
	document.write("	  </table>");
}


//============================================
//ÀÌ¸ÞÀÏ Ã¼Å©
//============================================
function email_CHK(emailad) 
{ 
	var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/; 
	var check=/@[\w\-]+\./; 
	var checkend=/\.[a-zA-Z]{2,3}$/; 

   if(((emailad.search(exclude) != -1)||(emailad.search(check)) == -1)||(emailad.search(checkend) == -1))
   { 
	   return false; 
   }else 
   { 
  		return true;
   } 
} 

//============================================
//½ºÆäÀÌ½º Ã¼Å© ÇÔ¼ö
//============================================
function CheckSpaces(strValue) 
{
	var flag=true;

	if (strValue!="") 
	{
		for (var i=0; i < strValue.length; i++) 
		{
			if (strValue.charAt(i) != " ") 
			{
				flag=false;
				break;
			}
		}
	}
	return flag;
}



//============================================
// ÇÊ¼öÀÔ·Â Ã¼Å© ¹× ±æÀÌ Ã¼Å© ÇÔ¼ö 
//		CheckSpaces();
//		¼º°ø:true ½ÇÆÐ: alert() ¶ç¿ì°í return false
//============================================
function chk_len(theitem, maxlength, strTitle)
{
	var tmpStr;;
	tmpStr = theitem.value;
	
	if (CheckSpaces(tmpStr))
	{{
		alert(strTitle + 'À»(¸¦) ÀÔ·ÂÇÏ¼¼¿ä.');
		theitem.value = '';
		theitem.focus();
		return false;
	}}
	
	return cal_len(theitem, tmpStr, maxlength, strTitle);
	
}

//============================================
// ¹ÌÇÊ¼öÀÔ·Â ±æÀÌ Ã¼Å© ÇÔ¼ö
//============================================
function unfinChk_len(theitem, maxlength, strTitle)
{
	var tmpStr;;
	tmpStr = theitem.value;
	
	return cal_len(theitem, tmpStr, maxlength, strTitle);
}


//============================================
// ±æÀÌ Ã¼Å© ÇÔ¼ö 
//============================================
function cal_len(theform,str,maxlength, strTitle) 
{
	var tmpStr;
	var temp=0;
	var onechar;
	var tcount;
	tcount = 0;
	 
	tmpStr = new String(str);
	temp = tmpStr.length;

	for (k=0;k<temp;k++)
	{
		onechar = tmpStr.charAt(k);

		if (escape(onechar).length > 4) {
			tcount += 2;
			max_char=maxlength/2; 
		}
		else if (onechar!='\r') {
			tcount++;
			max_char=maxlength; 			
		}
	}

	if(tcount>maxlength) {
		reserve = tcount-maxlength;
		alert(strTitle + "Àº(´Â) " + max_char+"ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\nÇÑ±ÛÀº 2ÀÚ·Î °è»êµË´Ï´Ù."); 
		
		theform.select();
		theform.focus();
		return false;
	}
	return true;
}

//ÀÌ¹ÌÁö ¹Ì¸® º¸±â
function ImagePreView(what) { 
	var imgwin = window.open("","WIN","scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10"); 
	imgwin.focus(); 
	imgwin.document.open(); 
	imgwin.document.write("<html>\n"); 
	imgwin.document.write("<head>\n"); 
	imgwin.document.write("<title>Image</title>\n"); 
	imgwin.document.write("<sc"+"ript>\n"); 
	imgwin.document.write("function resize() {\n"); 
	imgwin.document.write("pic = document.il;\n"); 
	imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
	imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 80; myWidth = eval(pic).width + 30;\n"); 
	imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
	imgwin.document.write("  clearTimeout();\n"); 
	imgwin.document.write("  var height = screen.height;\n"); 
	imgwin.document.write("  var width = screen.width;\n"); 
	imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
	imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
	imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
	imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
	imgwin.document.write("</sc"+"ript>\n"); 
	imgwin.document.write("</head>\n"); 
	imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
	imgwin.document.write("<center><a href='javascript:window.close()'><img border=0 src='"+what+"' xwidth=100 xheight=9 name=il onload='resize();'></a>\n");
	imgwin.document.write("</center>");
	imgwin.document.write("</body>\n"); 
	imgwin.document.close(); 
}

//ÀÎÇ²¹Ú½º¿¡ ¹øÈ£¸¸ ³Ö´Â ÇÔ¼ö
function OnlyNumber( Ev ){ 

    var evCode = ( window.netscape ) ? Ev.which : event.keyCode ; 
	
    /* FFÀÏ °æ¿ì Ev.which °ªÀ», 
        IEÀ» °æ¿ì event.keyCode °ªÀ» evCode¿¡ ´ëÀÔ */ 
    if ( ! ( evCode == 0 || evCode == 8 || ( evCode > 47 && evCode < 58 ) ) ) { 
    /* ´­·¯Áø Å° ÄÚµå°¡ ¼ýÀÚ°¡ ¾Æ´Ñ °æ¿ì 
        ( '0'Àº FF¿¡¼­ Tab Å°, 
          '8'Àº FF¿¡¼­ BackSpace°¡ ¸ÔÈ÷Áö ¾Ê¾Æ »ðÀÔ)    */ 
        if ( window.netscape ) {        // FFÀÏ °æ¿ì 
            Ev.preventDefault() ;        // ÀÌº¥Æ® ¹«È¿È­ 
        } else {                                // IEÀÏ °æ¿ì 
            event.returnValue=false;    // ÀÌº¥Æ® ¹«È¿È­ 
        } 
    } 
}

//»ç¾÷ÀÚ µî·Ï¹øÈ£ Ã¼Å© ÇÔ¼ö
function chkWorkNumb(strNumb) {
	 if (strNumb.length != 10) {			 		
		  return false;		  
	 }		 
	 sumMod = 0;
	 sumMod += parseInt(strNumb.substring(0,1));
	 sumMod += parseInt(strNumb.substring(1,2)) * 3 % 10;
	 sumMod += parseInt(strNumb.substring(2,3)) * 7 % 10;
	 sumMod += parseInt(strNumb.substring(3,4)) * 1 % 10;
	 sumMod += parseInt(strNumb.substring(4,5)) * 3 % 10;
	 sumMod += parseInt(strNumb.substring(5,6)) * 7 % 10;
	 sumMod += parseInt(strNumb.substring(6,7)) * 1 % 10;
	 sumMod += parseInt(strNumb.substring(7,8)) * 3 % 10;
	 sumMod += Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
	 sumMod += parseInt(strNumb.substring(8,9)) * 5 % 10;
	 sumMod += parseInt(strNumb.substring(9,10));
	 
	 if (sumMod % 10 != 0) {			
		  return false;
	 }	
}

//¾÷·Îµå ÆÄÀÏ È®ÀåÀÚ Ã¼Å© ÇÔ¼ö
function fnChkExtFile(arg,gubun) {
	
	imgFile = arg.value;
	if(imgFile) {
		var extArray = new Array();
		for (var i=0;i<gubun.split(",").length;i++) {
			extArray[i] = gubun.split(",")[i]
		}
		while (imgFile.indexOf("\\") != -1)
			imgFile = imgFile.slice(imgFile.indexOf("\\") + 1);

		ext = imgFile.slice(imgFile.lastIndexOf(".")).toLowerCase();
		isImage = false;

		for (var i = 0; i < extArray.length; i++) {
			if (extArray[i] == ext) { 
				isImage = true; 
				break; 
			}
		}
		
		return isImage
	}
}

//ÀÚ¹Ù½ºÅ©¸³Æ® Á¤±Ô½Ä
function filterKey(filter) {
  if(filter){
      var sKey = String.fromCharCode(event.keyCode);
      var re = new RegExp(filter);
      if(!re.test(sKey)) event.returnValue=false;
  }
}


/*Ãµ´ÜÀ§ ÄÞ¸¶ ¿øÈ­ Ç¥½Ã */
function getComma(no) {
	var str=no+'';
	var temp = (str.length % 3 == 0) ? 3 : (str.length % 3);
	for (var i = 0; i < 3-temp; i++)
	{
		str = " " + str;
	}
	var arr = [];
	for (var i = 0; i < str.length; i += 3){
		arr.push(str.substr(i, 3));
	}
	return arr.join(",");
}

function resizeImg(imgObj,size) {
	if(imgObj.width > size) {
		imgObj.width = size;
	}
}

function Map_Popup() {		
	window.open('/html/map/map_01.asp','map_pop','width=916,height=656');
}

function Map_Popup2() {
	window.open('/html/map/map_01.asp?flag=1&flag2=1','map_pop2','width=916,height=656');
}

function nokDooMap_Popup() {
		window.open('/html/map/map_02.asp','map_pop3','resizable=no, scrollbars=no, width=916,height=656, left=10, top=10');
}