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 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=="") {
			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;   
    	}
	}
}

function ChkNumeric(Object,Name) {
	if (typeof(Object)!="undefined") {
		if(isNaN(Object.value) == true) {
			alert(Name);
			eval(Object.focus());
			return false;
		}
	}
}


/* ¹Ìµð¾î °øÅë »ç¿ë */
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 ShowProgressNew(ProgID) { 
	strAppVersion = navigator.appVersion;
	if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) {
		winstyle = "dialogWidth=385px; dialogHeight:160px; center:yes";
		window.showModelessDialog("/common/inc/progress.asp?Progressid="+ProgID,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/progress.asp?Progressid="+ProgID,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 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=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10,top=0,left=0"); 
	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 printContents() {
	var obj = $("contents");
	var tmpContents = "";
	var bodyContents = "";

	if (obj == null) {
		obj = $("main");
	}

	if (obj != null) {
		tmpContents = obj.innerHTML;
		bodyContents = document.body.innerHTML;
		document.body.innerHTML = tmpContents;
		window.print();
		document.body.innerHTML = bodyContents;
	}
}


//¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á
//¡á         ·¹ÀÌ¾î ÆË¾÷ ¼³Á¤ °ü·Ã          ¡á
//¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á

//============================================
// ·¹ÀÌ¾î ÆË¾÷ BG ¼³Á¤ 
//============================================
function OpenPageLayer(popName) {

	var bg = $("BGLayer");

	if(!bg) {
		bg = document.createElement("div");
		bg.setAttribute("id","BGLayer");
		with (bg.style) {
			position = "absolute";
			top = 0;
			left = 0;
			width = "100%";
			height = "100%";
			filter = "Alpha(Opacity=60)";
			opacity = "0.5";
			index = "1000";
			backgroundColor = "#cccccc";
		}
		document.body.appendChild(bg);
	}

	bg.style.display = '';
//	bg.onclick = function(){ClosePageLayer(popName);};

	if ($("wrap")) {
		if ($("BGLayer").getHeight() < $("wrap").getHeight()) $("BGLayer").style.height = $("wrap").getHeight() + "px";
//		if ($("BGLayer").getWidth() < $("wrap").getWidth()) $("BGLayer").style.width = $("wrap").getWidth() + "px";
		if ($("BGLayer").getWidth() < document.body.scrollWidth) $("BGLayer").style.width = document.body.scrollWidth + "px";
 
	}
}
//============================================
// ·¹ÀÌ¾î ÆË¾÷ Á¾·á(´Ý±â)
//============================================
function ClosePageLayer(popName) {
	var chk = 0;
	var objBg = $("BGLayer");
	var objBody = $("LayerBody");
	var objPop = $(popName);
	var retResult = $("LayerBody").immediateDescendants();
	var objIfrm = $("DivFrame_" + popName)


	retResult.each(function(value, index) {chk ++;});

	if (chk > 1) {
		if (objPop) {
			objIfrm.src = "";
			objPop.remove();
		}
	} else {
		if (objBg) objBg.remove();
		if (objPop) {
			objIfrm.src = "";
			objPop.remove();
		}
		if (objBody) objBody.remove();
	}

	objBg = null;
	objPop = null;
	objBody = null;
	retResult = null;
	objIfrm = null;
}
//============================================
// ·¹ÀÌ¾î ÆË¾÷ »ý¼º
//============================================
function CreateFrame(popName, url, w, h) {
	var indexnum = 1100;		// ·¹ÀÌ¾î index ±âº»°ª

	//Background ¼³Á¤
	OpenPageLayer(popName);


	//ÆË¾÷ ·¹ÀÌ¾î Body ¿µ¿ª ¼³Á¤
	var LayerBody = $('LayerBody');

	if(!LayerBody) {
		LayerBody = document.createElement('div');
		LayerBody.setAttribute('id','LayerBody');
		with (LayerBody.style) {
			position = 'absolute';
			top = 0;
			left = 0;
			width = '100%';
			height = '100%';
			index = '1001';
		}
		document.body.appendChild(LayerBody);
	}


	//ÆË¾÷ ·¹ÀÌ¾î Body¿¡ ¼ÓÇÑ ·¹ÀÌ¾î °³¼ö È®ÀÎ (ÀÎµ¦½º ¼³Á¤)
	var retResult = $('LayerBody').immediateDescendants();
	retResult.each(function(value, index) {
			indexnum += 100;
		}
	);


	//ÆË¾÷ ·¹ÀÌ¾î »ý¼º
	var objPop = $(popName);
	if (!objPop) {
		objPop = document.createElement("div");
		objPop.setAttribute("id",popName);
		LayerBody.appendChild(objPop);
	}
	with (objPop.style) {
		display = "";
		position = "absolute";

		if (document.body.clientHeight <= document.body.scrollHeight) {
			top = (Position.realOffset($('BGLayer'))[1] + ((document.body.clientHeight) / 2 - parseInt(h) / 2)) + "px";
		} else {
			top = ((document.body.clientHeight) / 2 - parseInt(h) / 2) + "px";
		}

		if (parseInt(top.replace("px","")) < 20) top = "20px";

		left = ((document.body.clientWidth) / 2 - parseInt(w) / 2) + "px";
		width = w + "px";
		height = h + "px";
		index = indexnum;
		borderStyle = "solid";
		borderColor = "#333333";
		borderWidth = "2px";
		backgroundColor = "#ffffff";
	}


	//ÆË¾÷ ·¹ÀÌ¾î¿¡ Move ÅÜ ¼³Á¤
	var objPopTop = $("DivTop_" + popName);
	if (!objPopTop) {
		objPopTop = document.createElement("div");
		objPopTop.setAttribute("id","DivTop_" + popName);
		objPop.appendChild(objPopTop);
	}
	with (objPopTop.style) {
		display = "";
		position = "absolute";
		top = 0;
		left = 0;
//		textAlign = "right";
//		verticalAlign = "bottom";
//		cursor = "move";
		width = "100%";
		height = "20px";
		index = "200";
		backgroundColor = "#333333";	//#999acb
	}
	objPopTop.innerHTML = "<a href=\"\" onclick=\"ClosePageLayer('"+popName+"'); return false;\" style=\"padding:5px; float:right;\"><img src=\"/images/button/b_s_close.gif\" alt=\"close\" /></a>"; 


	//ÆË¾÷ ·¹ÀÌ¾î¿¡ iframe ¹× URL ¼³Á¤
	var objIfrm = $("DivFrame_" + popName);
	if (!objIfrm) {
		objIfrm = document.createElement("iframe");
		objIfrm.setAttribute("id","DivFrame_" + popName);
		objIfrm.setAttribute("name","DivFrame_" + popName);
		with (objIfrm.style) {
			position = "relative";
			top = "20px";
			width = w + "px";
			height = (parseInt(h)-20) + "px";
		}
		objIfrm.frameBorder = "0";
		objIfrm.scrolling = "no";
		objIfrm.src = url;
		objPop.appendChild(objIfrm);
	}


	//ÆË¾÷ ·¹ÀÌ¾î µå·¡±× ¼³Á¤
//	new Draggable(popName, {endeffect : false});
}
//============================================
// ·¹ÀÌ¾î ÆË¾÷ Å©±â ÀÚµ¿ º¯°æ
//============================================
function ResizePageLayer(popName) {
	try {
		if ($("wrap")) {		 			
			parent.$(popName).style.height = ($("wrap").getHeight() + 20) + "px";
			parent.$("DivFrame_" + popName).style.height = $("wrap").getHeight() + "px";
		}
	}
	catch (e) {
	}
}


//¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á
//¡á            Ajax Request °ü·Ã           ¡á
//¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á

//============================================
// Object ÃÊ±âÈ­
//============================================
function clearObject(obj_name, obj_TextNode) {
	var obj = $(obj_name);
	if (obj) {
		while (obj.childNodes.length > 0) obj.removeChild(obj.firstChild);

		opt = document.createElement("option");
		opt.value = "";
		opt.appendChild(document.createTextNode(obj_TextNode));
		obj.appendChild(opt);
	}
}

var fnm, fp1, fp2, fa1, fa2;
function popSearchPost(form, po1, po2, ad1, ad2) {
	fnm = form;
	fp1 = po1;
	fp2 = po2;
	fa1 = ad1;
	fa2 = ad2;

	var url = "/common/inc/pop_search_post.asp?popName=searchPost";
	CreateFrame("searchPost", url, "400", "400");
}

function ImgResize(obj, w, h) {
	var iw = obj.width;
	var ih = obj.height;

	if (w != 0 || h != 0) {
		if (w == 0) {
			if(obj.height > h) obj.height = h;
		} else if (h == 0) {
			if(obj.width > w) obj.width = w;
		} else {
			if (iw/w > ih/h) {
				if(obj.width > w) obj.width = w;
			} else {
				if(obj.height > h) obj.height = h;
			}
		}
	}
}

//¾÷·Îµå ÆÄÀÏ¸í Ã¼Å©
function FileCheck(file,imgchk){

	//ÆÄÀÏ¸í¸¸ ÃßÃâÇÏÀÚ..
	var str = file.value;
	var pos = str.lastIndexOf("\\");
	var ln = str.lastIndexOf(".");
	var filename = str.substring(pos + 1, ln);
	var extname = str.substring(ln + 1);
	extname = extname.toLowerCase();
	
	/*
	var regexp = /^[a-zA-Z0-9_]*$/i;

	if(!regexp.test(filename)) {    
		alert("ÆÄÀÏ¸íÀº ¿µ¹®°ú ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
		return 0;
	}
	*/
	
	if (imgchk == "Y") {
		if (extname != "jpg" && extname != "jpeg" && extname != "png" && extname != "gif" && extname != "bmp") {    
			alert("ÀÌ¹ÌÁöÆÄÀÏ¸¸ ¾÷·Îµå °¡´ÉÇÕ´Ï´Ù.");
			return 0;
		}
	}

	return 1;
}

//ÀÎÇ²¹Ú½º¿¡ ¹øÈ£¸¸ ³Ö´Â ÇÔ¼ö
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 Comma(strNum) { 
	if (strNum.length >= 4) {
		re = /^\$|,/g; 
		strNum = strNum.replace(re, ""); 
		fl="" 
		if(isNaN(strNum)) {
			alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
			return 0;
		} 
		if(strNum==0) {
			return strNum;
		}
		if(strNum<0){ 
			strNum = strNum*(-1);
			fl = "-";
		}else{ 
			strNum = strNum * 1 //Ã³À½ ÀÔ·Â°ªÀÌ 0ºÎÅÍ ½ÃÀÛÇÒ¶§ ÀÌ°ÍÀ» Á¦°ÅÇÑ´Ù. 
		}
		strNum = new String(strNum) 
		temp = "" 
		co=3 
		num_len = strNum.length 
		while (num_len>0){ 
			num_len=num_len-co 
			if(num_len<0){
				co=num_len+co;
				num_len=0;
			} 
			temp="," + strNum.substr(num_len,co) + temp;
		} 
		strNum =  fl+temp.substr(1);
	}
	return strNum;
}

function openFullMenu(url) {
	var indexnum = 1100;



	var bg = $("BGLayer");

	if(!bg) {
		bg = document.createElement("div");
		bg.setAttribute("id","BGLayer");
		with (bg.style) {
			position = "absolute";
			top = 0;
			left = 0;
			width = "100%";
			height = "100%";
			index = "1000";
		}
		document.body.appendChild(bg);
	}

	bg.style.display = '';






	//ÆË¾÷ ·¹ÀÌ¾î Body ¿µ¿ª ¼³Á¤
	var LayerBody = $('LayerBody');

	if(!LayerBody) {
		LayerBody = document.createElement('div');
		LayerBody.setAttribute('id','LayerBody');
		with (LayerBody.style) {
			position = 'absolute';
			top = 0;
			left = 0;
			width = '100%';
			height = '100%';
			index = '1001';
		}
		document.body.appendChild(LayerBody);
	}


	//ÆË¾÷ ·¹ÀÌ¾î »ý¼º
	var objPop = $("full_menu");
	if (!objPop) {
		objPop = document.createElement("div");
		objPop.setAttribute("id",popName);
		LayerBody.appendChild(objPop);
	}
	with (objPop.style) {
		display = "";
		position = "absolute";

		top = "110px";

		width = "956px";
		height = "471px";
		index = indexnum;
		backgroundColor = "#ffffff";
	}


	//ÆË¾÷ ·¹ÀÌ¾î¿¡ iframe ¹× URL ¼³Á¤
	var objIfrm = $("DivFrame_" + popName);
	if (!objIfrm) {
		objIfrm = document.createElement("iframe");
		objIfrm.setAttribute("id","DivFrame_" + popName);
		objIfrm.setAttribute("name","DivFrame_" + popName);
		with (objIfrm.style) {
			position = "relative";
			width = "956px";
			height = "471px";
		}
		objIfrm.frameBorder = "0";
		objIfrm.scrolling = "no";
		objIfrm.src = url;
		objPop.appendChild(objIfrm);
	}


}