	//========================================================================================
	//## https://developer.mozilla.org/ko/XMLHttpRequest ##
                                 
	var AjaxSeq = 0;
	function WbsAjax_func(httpRequest, url, frm_param, func_obj, method){		

		//paramsÁ¤¸® 
		var params = FnParamEncodeURI(FnForm2Param(frm_param));        //(form_paramsÀÌ formÀÏ °æ¿ì params·Î º¯È¯)	, //URI Encode		
		params += (params==""?"":"&") + "page_typ="+encodeURIComponent(page_typ);		
		
		//callback¿¡ µû¶ó ¸®ÅÏ 
		if(FnObjectChk(func_obj)){ 
			//½ºÅ©¸³Æ® ½ÇÇà (innerHTML ÀÏ¶§)
			callback = function() { if(httpRequest.readyState != 4){ return false; } if(httpRequest.status != 200){ return false; } var data = httpRequest.responseText; func_obj.innerHTML = data; for(var i=0;i<99;i++){ if (match = data.match(/<script[^>]*>(([^<]|\n|\r|<[^\/])+)<\/script>/)){  eval.call(window,match[1]); data=data.replace(match[0],''); }else{ break;} }  };
			//callback = function() {  if(httpRequest.readyState != 4){ return false; } if(httpRequest.status != 200){ return false; } func_obj.innerHTML = httpRequest.responseText;  };
		}else{
			//½ºÅ©¸³Æ® ½ÇÇà
			callback = function() { if(httpRequest.readyState != 4){ return false; } if(httpRequest.status != 200){ return false; } var data = httpRequest.responseText;  func_obj(data);           for(var i=0;i<99;i++){ if (match = data.match(/<script[^>]*>(([^<]|\n|\r|<[^\/])+)<\/script>/)){  eval.call(window,match[1]); data=data.replace(match[0],''); }else{ break;} }  };
		}
				
		//getXMLHttpRequest
		if(window.ActiveXObject){ try { httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e1) { return; } } } else if(window.XMLHttpRequest) { httpRequest = new XMLHttpRequest(); } else { return; }				
	    var httpMethod = method ? method : 'GET';
	    if(httpMethod != 'GET' && httpMethod != 'POST'){  httpMethod = 'GET';  }
	    var httpParams = (params == null || params == '') ? null : params;
	    var httpUrl = url;
	    if(httpMethod == 'GET' && httpParams != null){ httpUrl = httpUrl + "?" + httpParams; }
	    httpRequest.open(httpMethod, httpUrl, true);
	    httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8');
	    httpRequest.onreadystatechange = callback;
	    httpRequest.send(httpMethod == 'POST' ? httpParams : null);
	}
	function FnAjaxRtn(QID, frm_param, func_obj){
		frm_param = FnForm2Param(frm_param);
		frm_param = "QID="+QID+ (frm_param==""?"":"&") + frm_param;
		WbsAjax_func( QID+(AjaxSeq++), "/util/AjaxRtn.run", frm_param, func_obj, "POST");					
	}	
	function FnAjax_func(url, frm_param, FuncName){
		WbsAjax_func( url+(AjaxSeq++), url, frm_param, FuncName, "POST");
	}
	function FnAjax_obj(url, frm_param, ObjId){
		WbsAjax_func( url+(AjaxSeq++), url, frm_param, ObjId, "POST");
	}
	//===============================================================================================	
	
	
	function ClassMultiAjaxRtn(init) {
		var _AjaxRtn = this;
		_AjaxRtn.No          = 0;
		_AjaxRtn.QID         = new Array();
		_AjaxRtn.param       = "";
		_AjaxRtn.func        = new Array();
		_AjaxRtn.interval    = new Array();
		_AjaxRtn.interval_Chk= new Array();
		_AjaxRtn.interval_flag = 0;
		_AjaxRtn.TimeOut;
		_AjaxRtn.uid = function (){
			return "MultiAjaxRtn_" + new Date().getHours() +"_" + new Date().getMinutes() +"_" + new Date().getSeconds();
		}
		_AjaxRtn.Add = function (QID, op_lock, op_exec, frm_param, func, op_Interval){
			_AjaxRtn.QID[_AjaxRtn.No]  = (op_lock?"[L]":"") + (op_exec?"[E]":"") + QID;
			_AjaxRtn.param += (frm_param==""?"":"&"+frm_param);
			_AjaxRtn.func[_AjaxRtn.No] = func;	
			_AjaxRtn.interval[_AjaxRtn.No] = op_Interval;
			_AjaxRtn.interval_Chk[_AjaxRtn.No] = 0;
			_AjaxRtn.No++;			
		}
		_AjaxRtn.Exec = function(){
			if(_AjaxRtn.No==0){ return false; }
			var frm_param = "QIDS=" + _AjaxRtn.QID.join("%09") + _AjaxRtn.param;
			WbsAjax_func( _AjaxRtn.uid(), "/util/MultiAjaxRtn.run", frm_param, _AjaxRtn.FnCallback, "POST");
			//5ÃÊµ¿¾È ¸®ÅÏÀÌ ¾øÀ¸¸é Àç½ÇÇà
			_AjaxRtn.TimeOut = setTimeout("Exec()",5000);  
			//inteval ¿É¼ÇÀÌ ÀÖ´Â°æ¿ì ¹Ýº¹½ÇÇà
			if(_AjaxRtn.interval.join("-").replaceAll("0-","")!="0" && _AjaxRtn.interval_flag==0){ setInterval(_AjaxRtn.FnInterval,1000); }		
		}	
		_AjaxRtn.FnInterval = function(){
			var QIDS = "";
			for(var i=0;i<_AjaxRtn.No;i++){
				if(_AjaxRtn.interval[i]>0){				
					_AjaxRtn.interval_Chk[i] = _AjaxRtn.interval_Chk[i] + 1;
					if( _AjaxRtn.interval[i]==_AjaxRtn.interval_Chk[i] ){
						_AjaxRtn.interval_Chk[i]=0;
						QIDS += (QIDS==""?"":"%09") + _AjaxRtn.QID[i];
					}
				}
			}		
			if(QIDS!=""){
				var frm_param = "QIDS="+QIDS + _AjaxRtn.param;
				WbsAjax_func( _AjaxRtn.uid(), "/util/MultiAjaxRtn.run", frm_param, _AjaxRtn.FnCallback, "POST");
			}
		}		
		_AjaxRtn.FnCallback = function(Data){		
			
			//---ÀÓ½Ã QID Áßº¹ Á¦°Å ------------- ÇØ´ç VIEW¸¦ ¼öÁ¤ÇÒ°Í!
			Data = Data.replaceAll("borrow.main.borrow_jisu	","");  //V_B_MAIN_BORROW_JISU
			Data = Data.replaceAll("main.bbs09	","");  //V_MAIN_BBS09
			Data = Data.replaceAll("main.auction_list	","");  //V_MAIN_AUCLIST
			Data = Data.replaceAll("main.bbs40	","");  //V_MAIN_BBS40
			Data = Data.replaceAll("lender.main.invest_traffic_score	","");  //V_L_MAIN_INVEST_TRAFFIC_SCORE
			Data = Data.replaceAll("lender.main.invest_traffic_list	","");  //V_L_MAIN_INVEST_TRAFFIC_LIST
			Data = Data.replaceAll("lender.main.invest_info	","");  //V_L_MAIN_INVESTINFO
			Data = Data.replaceAll("lender.main.banner.repayend	","");  //V_L_MAIN_REPAYEND
			Data = Data.replaceAll("lender.main.banner.bbs37	","");  //V_L_MAIN_BBS37
			Data = Data.replaceAll("main.auction_list_img	","");  //V_MAIN_AUCLIST_IMG
			//-------------------------------
			
			clearTimeout(_AjaxRtn.TimeOut);  //¸®ÅÏÀÌ ¿À¸é  Å¸ÀÓ¾Æ¿ô ÁßÁö
			
			var DataArr = Data.split("\n");
			for(var i=0;i<DataArr.length;i++){
				for(var j=0;j<_AjaxRtn.No;j++){
					//QID°¡ ÀÏÄ¡ÇÒ¶§
					if(DataArr[i].indexOf("["+_AjaxRtn.QID[j]+"]")==0){
						DataArr[i] = DataArr[i].replace("["+_AjaxRtn.QID[j]+"]<br>",""); //QID¸¦ Á¦°Å
						DataArr[i] = (DataArr[i] + "!").replace("<br>!","").replace("!",""); //¸¶Áö¸· <br>À» Á¦°Å
						DataArr[i] = DataArr[i].replaceAll("<br>","\n"); //<br>À» ÁÙ¹Ù²Þ ¹®ÀÚ·Î º¯°æ
						if(_AjaxRtn.func[j]){ var Func = _AjaxRtn.func[j]; Func(DataArr[i]); }
					}				
				}			
			}
		}
		if(init){ FnEventAdder_WinOnload(_AjaxRtn.Exec); }
	}
		
	var MultiAjaxRtn = new ClassMultiAjaxRtn(true);

	
	
	function FnMultiAjaxRtnExec(QID, frm_param, func){
		frm_param = "QIDS="+QID + (frm_param==""?"":"&"+frm_param);
		WbsAjax_func( "MultiAjax"+(AjaxSeq++), "/util/MultiAjaxRtn.run", frm_param, func, "POST");
		//######### ¸®ÅÏ µ¥ÀÌÅÍ  [QID]<br>aas<br>\n ÀÌ°Å ÆÄ½Ì 
	}	

	//===============================================================================================
	function FnForm2Param(frm){  //,encodeURI

		if(!FnObjectChk(frm)){ return frm; return false; }		
		var params = "";
		for (var e=0; e<frm.elements.length; e++){
			var obj = frm.elements[e];
			if (obj.tagName=="INPUT" || obj.tagName=="TEXTAREA" || obj.tagName=="SELECT"){		
					if(obj.disabled==false){
						var t_obj = obj; t_name=""; t_value=""; 
						switch(t_obj.type.toUpperCase()){											
							case "TEXT": case "HIDDEN": case "TEXTAREA": case "PASSWORD": case "SELECT-ONE": t_name = t_obj.name; t_value = t_obj.value; break;
							case "RADIO": case "CHECKBOX": if(t_obj.checked){ t_name = t_obj.name; t_value = t_obj.checked?t_obj.value:""; }; break;
						}				
						if(t_name!=""){
							//if(encodeURI){
							//	params += (params==""?"":"&") + encodeURIComponent(t_name) +"="+ encodeURIComponent(t_value);
							//}else{
								params += (params==""?"":"&") + t_name +"="+ t_value;
							//}
						}
					}
			}//if
		}//for [e]		
		return params;
	}	
	function FnParamEncodeURI(frm_param){
		var row = frm_param.split("&");
		var params = "";
		for(var i=0;i<row.length;i++){
			if(row[i].indexOf("=")>0){
				var data = row[i].split("=");				
				params += (params==""?"":"&") + encodeURIComponent(data[0]) +"="+ encodeURIComponent(data[1]);
			}
		}
		return params;
	}
	//===============================================================================================
	


	
		
	
function SetStyle(obj, clsName){ obj.setAttribute('className', clsName); }  
function Go(uri, strTyp){ location.href = "<%=ctx%>/" + uri + ".run?typ="+ strTyp; }    
function Go(uri){ location.href = "<%=ctx%>/" + uri + ".run"; } 
function QuickScroll(){ QuickLink.style.marginTop = document.body.scrollTop; }

//ÀÌº¥Æ® Ãß°¡
function FnEventAdder(obj,event,func){

	if(!FnObjectChk(obj)){ obj = eval(obj); }	

    if (obj.attachEvent) {
    	obj.attachEvent(event, func);
    }else if (obj.addEventListener) {
    	obj.addEventListener(event.replace('on',''), func, false);
    }else {
    	document.addEventListener(event.replace('on',''), func, false);
    }
}
function FnEventAdder_Onload(obj_str,event,func){		
	FnEventAdder(window,"onload", function(){ FnEventAdder(obj_str,event,func); } );
}
function FnEventAdder_WinOnload(func){		
	FnEventAdder(window,"onload", func);
}
//######## iframe Height resize ####################################################################
function parentResize(){
    if(window.frameElement == null){ return; }
    var thisFrame = window.frameElement;
    if(navigator.appName == "Microsoft Internet Explorer"){
        thisFrame.style.height = document.body.scrollHeight + "px";
    }else{
        thisFrame.style.height = document.documentElement.scrollHeight + "px";
    }
}


//######## °æ¸Å¸®½ºÆ® ÀÌ¹ÌÁö Ç¥½Ã ####################################################################
function AucListImgViewProc(obj,frame_w,frame_h){

	obj.style.display='';

	var w,h,x,y;
	img_w = obj.width;
	img_h = obj.height;
		
	if(img_w==0 || img_h==0){ return false; }
			
	//ºñÀ²
	if(frame_w>=frame_h){	
		w = frame_w;
		h = frame_w * img_h / img_w;		
	}else{
		w = frame_h;
		h = frame_h * img_w / img_h;
	}

	//ºñÀ² ±³Á¤½Ã »ó´ëÀûÀ¸·Î ÀÛ¾ÆÁ³À»°æ¿ì
	if(w<frame_w){ 
		w = frame_w;
		h = frame_w * img_h / img_w;			
	}
	if(h<frame_h){  
		h = frame_h;
		w = frame_h * img_w / img_h;	
	}

	h = Math.round(h);
	w = Math.round(w);

	//À§Ä¡
	x = (w - frame_w)/2 
	y = (h - frame_h)/2

	x = Math.round(x);
	y = Math.round(y);

	obj.width = w;
	obj.height = h;
	obj.style.marginLeft = x * -1 ;
//	obj.style.marginTop = y * -1 ;

}

//######## ÀÌÀÚ °è»ê±â #############################################################################
function interest_cal(amt,interest_rate,loan_month){  //### ¿ø±Ý(¿ø), ÀÌÀÚÀ², ´ëÃâ±â°£ ##### [¿ìº´¼® 080514]
	   var MonthAddRate  = 1+(interest_rate/100/12);        //¿ø±ÝÁõ°¡À²
	   var FirstMonthINT = amt*(interest_rate/100)/12;      //Ã¹´ÞÀÌÀÚ
	   if(interest_rate==0){
		   var FirstMonthAMT = amt/loan_month; 								//Ã¹´Þ¿ø±Ý
		   var RepayDiv      = Math.round(amt/loan_month); 					//¿ù»óÈ¯¾× 
		   var RepayTotal    = amt;                   						//ÃÑ»óÈ¯¾×	   
	   }else{
		   var FirstMonthAMT = amt*(1-MonthAddRate)/(1-Math.pow(MonthAddRate,loan_month)); 	//Ã¹´Þ¿ø±Ý
		   var RepayDiv      = Math.round(FirstMonthINT+FirstMonthAMT); 					//¿ù»óÈ¯¾× 
		   var RepayTotal    = RepayDiv * loan_month;                   					//ÃÑ»óÈ¯¾×
	   }
	   return new Array(RepayTotal,RepayDiv);  //### ÃÑ»óÈ¯¾×,¿ø»óÈ¯¾× ###### 
}

//######## ÀÌÀÚ °è»ê±â #############################################################################
function interest_cal2(amt,interest_rate,loan_month,repay_type,defer_month){  //### ¿ø±Ý(¿ø), ÀÌÀÚÀ², ´ëÃâ±â°£ ##### [¿ìº´¼® 080514]
	   
	   
	   var MonthAddRate  = 1+(interest_rate/100/12);        //¿ø±ÝÁõ°¡À²
	   var FirstMonthINT = amt*(interest_rate/100)/12;      //Ã¹´ÞÀÌÀÚ
	   
	   
	   if(repay_type=="SR01"){ // ¿ø¸®±Ý±Õµî»óÈ¯
			   if(interest_rate==0){
				   var FirstMonthAMT = amt/loan_month; 												//Ã¹´Þ¿ø±Ý
				   var RepayDiv      = Math.round(amt/loan_month); 									//¿ù»óÈ¯¾× 
				   var RepayTotal    = amt;                   										//ÃÑ»óÈ¯¾×	   
			   }else{
				   var FirstMonthAMT = amt*(1-MonthAddRate)/(1-Math.pow(MonthAddRate,loan_month)); 	//Ã¹´Þ¿ø±Ý
				   var RepayDiv      = Math.round(FirstMonthINT+FirstMonthAMT); 					//¿ù»óÈ¯¾× 
				   var RepayTotal    = RepayDiv * loan_month;                   					//ÃÑ»óÈ¯¾×
			   }
			   return new Array(RepayTotal,RepayDiv);  //### ÃÑ»óÈ¯¾×,¿ù»óÈ¯¾× ######  
			   
	   }else if(repay_type=="SR02"){ // °ÅÄ¡ÈÄ ¿ø¸®±Ý±Õµî»óÈ¯
		   if(interest_rate==0){
			   var FirstMonthAMT = amt/loan_month; 												//Ã¹´Þ¿ø±Ý
			   var RepayDiv      = Math.round(amt/loan_month); 									//¿ù»óÈ¯¾× 
			   var RepayTotal    = amt;                   										//ÃÑ»óÈ¯¾×	   
		   }else{
			   var FirstMonthAMT = amt*(1-MonthAddRate)/(1-Math.pow(MonthAddRate,loan_month)); 	//Ã¹´Þ¿ø±Ý
			   var RepayDiv      = Math.round(FirstMonthINT+FirstMonthAMT); 					//¿ù»óÈ¯¾× 
			   var RepayTotal    = FirstMonthINT * defer_month + RepayDiv * loan_month;         //ÃÑ»óÈ¯¾×
		   }
		   return new Array(RepayTotal,RepayDiv);  //### ÃÑ»óÈ¯¾×,¿ù»óÈ¯¾× ######    
		   
	   }else if(repay_type=="SR03"){ // ¸¸±âÈÄ ÀÏ½Ã»óÈ¯
		   if(interest_rate==0){
			   var FirstMonthAMT = 0; 															//Ã¹´Þ¿ø±Ý
			   var RepayDiv      = 0; 															//¿ù»óÈ¯¾× 
			   var RepayTotal    = amt;                   										//ÃÑ»óÈ¯¾×	   
		   }else{
			   var FirstMonthAMT = 0; 															//Ã¹´Þ¿ø±Ý
			   var RepayDiv      = Math.round(FirstMonthINT); 												//¿ù»óÈ¯¾× 
			   var RepayTotal    = Math.round(amt + FirstMonthINT*loan_month);           					//ÃÑ»óÈ¯¾×
		   }
		   return new Array(RepayTotal,RepayDiv);  //### ÃÑ»óÈ¯¾×,¿ù»óÈ¯¾× ###### 		   
	   }
	   
}

//##### ·Î±×ÀÎ(login) #############################################
function FnLogin(){
    var URL = top.location.href;
    var POS;    
    if(URL.indexOf("?refPage=")>0){
        POS = URL.indexOf("?refPage=");
        URL = unescape(URL.substring(POS + 9,URL.length));
    }else{
	    //POS = URL.indexOf("/");
	    //URL = URL.substring(POS,URL.length);
    }

    if(document.referrer.indexOf(URL.substring(0,10)<0)){
    	refer = "OV_REFFER="+ document.referrer +"&";
    }
    
    if(page_typ==""){ page_typ="/lender"; }
    top.location.href = HTTPS_HOST + page_typ + "/membership/login.run?"+ refer +"refPage="+ escape(URL);
}
function FnLogout(){
    //if(confirm("·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?")){ top.location.href = "/login.run?m=logout"; }
    top.location.href = HTTP_HOST + page_typ + "/membership/login.run?m=logout"; 
}
function FnJoin(){	//È¸¿ø°¡ÀÔ
	location.href = HTTPS_HOST + page_typ + "/join.run";	
}
function Fnfind_idpw(){
	location.href = HTTPS_HOST + page_typ + "/find_idpw.run";
}

function FnLoginPopup(page){
	alert('FnLoginPopup»ç¿ë¾ÈÇÔ');
	return false;
	var URL = top.location.href;
	if(page!= undefined){
		URL = page;
	}
	var POS;    
	if(URL.indexOf("?refPage=")>0){
		POS = URL.indexOf("?refPage=");
		URL = unescape(URL.substring(POS + 9,URL.length));
	}else{
		//POS = URL.indexOf("/");
		//URL = URL.substring(POS,URL.length);
	}   
	window.open(HTTP_HOST +"/login_pop.run?refPage="+ escape(URL),"mlg", "width=725,height=370,resizable=no,scrollbars=no");
}


//ÆÄÀÏ ´Ù¿î·Îµå 2010.12.15
function FnJsDownload(SEQ){
	window.open("/util/JsFileDownload.run?SEQ="+SEQ,"download","left=15000,top=15000,width=10,height=10");
}

//#########################################
function CopyBlock(){
    if (window.event){
	    alert("³»¿ëÀ» º¹»ç ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
	    window.event.returnValue = false;
	    //window.setTimeout('CopyBlock_sub()', 25);    
    }
}

//## SNS ½ºÅ©·¦  #############################
function FnSnsScrap(mode,auction_id){
    var w=1000;
    var h=600;

    var lposi = (screen.width) ? (screen.width-w)/2 : 0;
    var tposi = (screen.height) ? (screen.height-h)/2 : 0;      

    var frm=document.LeftDocForm;

    var status = "toolbar=no,directories=no,scrollbars=yes,resizable=yes,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi;	
	window.open("/SnsScrap.run?mode="+ mode +"&auction_id="+ auction_id ,"_blank",status);
}


//##### ½Å¿ëÁ¤º¸ Á¶È¸ ################################
var creadit_sitecode="N2518";
var creadit_subsitecode="BV05498";
var creadit_createurl="http://join.creditbank.co.kr/join/admin/kiscredit_socket/credit_view.asp";
var creadit_viewurl="http://join.creditbank.co.kr/join/admin/kiscredit_socket/credit_view.asp";

function Fn_Creadit_Report_View(target){
    var frm = document.all.ReportForm;
    frm.target = target;
    frm.action = creadit_viewurl;
    frm.sitecode.value    = creadit_sitecode;
    frm.subsitecode.value = creadit_subsitecode;
    if(frm.REQ_NO.value!=""){
        frm.reserved.value    = frm.REQ_NO.value;                            
        frm.REQ_NO.value      = "";
    }
    frm.submit(); 
    frm.target = ""; 
}

/*
//##### ½Å¿ëÁ¤º¸ Á¶È¸(½Å±Ô¹öÀü) ################################
var creadit_sitecode="N2518";
var creadit_subsitecode="BV05498";
//var creadit_createurl="http://join.creditbank.co.kr/join/admin/kiscredit_socket/credit_view.asp"; ÀÌÀü¹öÀü
var creadit_viewurl="http://join.creditbank.co.kr/join/admin/kiscredit_socket/credit_view.asp";
//var creadit_viewurl="http://www.creditbank.co.kr/FC.fc"; //½Å±Ô

function Fn_Creadit_Report_View(target){
    var frm = document.all.ReportForm;
    frm.target = target;
    frm.action = creadit_viewurl;
    
    
    frm.sitecode.value    = creadit_sitecode;
    frm.subsitecode.value = creadit_subsitecode;
    if(frm.REQ_NO.value!=""){
        frm.reserved.value    = frm.REQ_NO.value;                            
        //frm.REQ_NO.value      = "";
    }
    
    frm.submit(); 
    frm.target = ""; 
}
*/
//##### È¸¿øID¿¡ ºÙ´Â ¸Þ´º ################################
function FnMemberMenu(MEMBER_ID, auc_no, login_type, logid, nick){

    var ie			= document.all ? true : false;
    var login_type	= login_type;
    var log			= logid;
    var memberid	= MEMBER_ID;
    var nick		= nick;
    var URI			= top.location.href;     
    //alert("·Î±×ÀÎ¾Æµð : "+logid);
    //alert("´Ð³×ÀÓ : "+nick);
    //alert("·Î±×Å¸ÀÔ : "+login_type);
    //alert("MEMBER_ID : "+memberid);
    //alert("°èÁÂ¹øÈ£ :" + auc_no);
    
    
    
    var x,y;
    var MenuString = "";
    if(login_type=="UT01"||login_type=="UT11"){
	    MenuString += ""
	    +"<table>"
	    +"	<tr><td><font color='darkorange'>"+ nick +"</font></b><br></td></tr>"
	    +"	<tr><td><a target='_parent' href=\"javascript:FnPopupBlog('"+ MEMBER_ID +"');\">¤ýºí·Î±×°¡±â</a></td></tr>";
    }else{
        MenuString += ""
    	    +"<table>"
    	    +"	<tr><td><font color='darkorange'>"+ nick +"</font></b><br></td></tr>"
    	    +"	<tr><td><a target='_parent' href=\"javascript:FnPopupBlog('"+ MEMBER_ID +"');\">¤ýºí·Î±×°¡±â</a></td></tr>";
    }
    
    
    //ºí·Î±× ÃÖ±ÙÅõÀÚÈ°µ¿À¸·Î ÀÌµ¿//Author : isjang
    //ÃÖ±ÙÅõÀÚÈ°µ¿ÀÇ ÃßÈÄ À¯·á¼­ºñ½º·ÎÀÇ ÀüÈ¯ °áÁ¤¿¡ µû¸¥ ¸Þ´º ºí·ÎÅ·
    //¼öÁ¤ÇÏ¿© ¸Þ´º´Â ¶ßµÇ ºí·Î±×¸ÞÀÎÀ¸·Î ¿¬°áÇÔ
    if(URI.indexOf("/lender/investzone")>0 || URI.indexOf("/lender/auction")>0){
    	//ÃÖ±ÙÅõÀÚÈ°µ¿À¸·Î °¡´Â °æ¿ì 
    	//MenuString +="	<tr><td><a href='#un' onclick=\"FnPopupBlogInvestAction('"+ MEMBER_ID +"')\";>¤ýÃÖ±Ù ÅõÀÚÈ°µ¿</a></td></tr>";
    	MenuString +="	<tr><td><a target='_parent' href=\"javascript:FnPopupBlog('"+ MEMBER_ID +"');\">¤ýÃÖ±Ù ÅõÀÚÈ°µ¿</a></td></tr>";
    }	

    //ÂÊÁö º¸³»±â
	MenuString +="	<tr><td><a href='#un' onclick=\"FnSendMemo('"+ MEMBER_ID +"')\";>¤ýÂÊÁöº¸³»±â</a></td></tr>";
	
	// Æ÷ÀÎÆ® ¼±¹° create by À¯±¤¼® 2009.10.15  
	// Æ÷ÀÎÆ® ¼±¹° 2011.11.30 ÇØ´ç ±â´É »ç¿ë ¾ÈÇÔ
	//if(nick!="" && (login_type!="UT01"||login_type!="UT11")){
	//	MenuString += ""
	//		+"	<tr><td><a href='#un' onclick=\"FnGivePoint('"+ MEMBER_ID +"')\";>¤ýÆ÷ÀÎÆ®¼±¹°</a></td></tr>";
	//}
	
	// ÀÚµ¿·Î±×ÀÎ create by À¯±¤¼® 2009.04.06
	if(logid=="admin"){
		MenuString += ""
    	    +"	<tr><td><a target='_parent' href='"+ HTTP_HOST +"/autologin.run?id="+ MEMBER_ID +"'><font color='red'>¤ýÀÚµ¿·Î±×ÀÎ</font></a></td></tr>";
	}
	
	// ÁøÇà °æ¸Å °Ç
	if(auc_no != "") {
		MenuString +="	<tr><td><a target='_parent' href='"+ HTTP_HOST +"/auction_view.run?auc_no="+auc_no +"'>¤ýÁøÇà °æ¸Å °Ç</a></td></tr>";
	}
    MenuString += "</table>";
    	    
    MemberMenu.innerHTML = MenuString;
    
    if(ie){
       x =  event.x + document.body.scrollLeft;
       y =  event.y + document.body.scrollTop;
    }else{
       x = e.pageX;
       y = e.pageY;
    }
    
    MemberMenu.style.left = x - 10;
    MemberMenu.style.top  = y - 5;
    
    MemberMenu.style.display="";       
}
//##### È¸¿øID¿¡ ºÙ´Â ¸Þ´º(ÁØÅõÀÚÈ¸¿øÀÇ °æ¿ì) ################################
function FnMemberMenu_Level_2(MEMBER_ID,  auc_no, login_type){
	var ie = document.all ? true : false;
	var x,y;
	var MenuString = "";
		MenuString +=""
			+"<table>"
			+"	<tr><td><font color='darkorange'>"+ MEMBER_ID +"</font></b><br></td></tr>"
			+"	<tr><td><a href='#un' onclick='Fnlevel_alert()'>¤ýºí·Î±×°¡±â</a></td></tr>"
	        +"	<tr><td><a href='#un' onclick='Fnlevel_alert()'>¤ýÂÊÁöº¸³»±â</a></td></tr>";
	// ÁøÇà °æ¸Å °Ç
	if(auc_no != "") {
		MenuString +="	<tr><td><a target='_parent' href='"+ HTTP_HOST +"/auction_view.run?auc_no="+auc_no +"'>¤ýÁøÇà °æ¸Å °Ç</a></td></tr>";
	}
	MenuString += "</table>";
	
	MemberMenu.innerHTML = MenuString;
	
	if(ie){
		x =  event.x + document.body.scrollLeft;
		y =  event.y + document.body.scrollTop;
	}else{
		x = e.pageX;
		y = e.pageY;
	}
	
	MemberMenu.style.left = x - 10;
	MemberMenu.style.top  = y - 5;
	
	MemberMenu.style.display="";       
}
//ÁØÅõÀÚÈ¸¿ø ¾È³» FnMemberMenu_Level_2³»ºÎ¿¡¼­ »ç¿ë
function Fnlevel_alert(){
	if(confirm("Á¤½ÄÅõÀÚÈ¸¿øÀÌ µÇ½Ã¸é ÇØ´ç±â´ÉÀÌ È°¼ºÈ­µË´Ï´Ù.\nÁö±Ý Á¤½ÄÅõÀÚÈ¸¿øÀÌ µÇ½Ã°Ú½À´Ï±î?")){
		location.href= HTTPS_HOST + "/lender/membership/join.run";
	}else{
		return false;
	}
}
function FnMemberMenuHide(){
    MemberMenu.style.display="none";
}
document.write ("<span id='MemberMenu' style='border:2 solid #dcdcdc;background-color:white;padding:5;position:absolute;display:none;z-index:999;'></span>");
FnEventAdder_Onload('document.body','onmouseup',FnMemberMenuHide); 

//######## ÀÌ¹ÌÁö º¸±â ############################# [pic_viewer]

document.write ("<span id='PIC_VIEW' style='position:absolute;z-index:888;display:none;'><table width='200' cellspacing='0' cellpadding='0' ondragstart='return false;' onselectstart='return false;'>");
document.write ("<tr height='31'><td id='PIC_VIEWER_TITLE' onmousedown='pic_viewer_drag_init();' style='cursor:move' background='/image/pic_viewer/bg_top_l.gif'><img id='PIC_VIEWER_TITLE' onmousedown='pic_viewer_drag_init();' src='/image/pic_viewer/viewer_title.gif' hspace='10'></td><td width='*' id='PIC_VIEWER_TITLE' onmousedown='pic_viewer_drag_init();' align='right' style='cursor:move;background:url(/image/pic_viewer/bg_top_r.gif) right top no-repeat;'><img src='/image/pic_viewer/btn_close.gif' hspace='5' onmouseover=\"this.src='/image/pic_viewer/btn_close_over.gif'\" onmouseout=\"this.src='/image/pic_viewer/btn_close.gif'\" onclick='pic_viewer_close()' style='cursor:hand'></td></tr>");
document.write ("<tr height='150'><td align='center' colspan='2' style=\"padding:1;border:1px solid #AAA;background-color:#fff;\"><img id='PIC_VIEWER_IMG' src='/image/pic_viewer/loadding.gif' onclick='pic_viewer_close()' style='cursor:hand'></td></tr>");
document.write ("<tr><td height='4' colspan='2' background='/pic_viewer/bg_bottom.png'></td></tr>");		
document.write ("<span style='position:absolute;left:-9999;top:-9999;'><img id='PIC_VIEWER_IMG_PRE' src='/image/pic_viewer/loadding.gif' onload='pic_viewer_onload(this);'></span>");
document.write ("</table></span>");


function pic_viewer(src){
	PIC_VIEWER_IMG.src = "/image/pic_viewer/loadding.gif";
	PIC_VIEW.style.display = "";
	pic_viewer_center();

	PIC_VIEWER_IMG_PRE.src = img_upi + src;
}
function pic_viewer_onload(obj){	
	var Max_w=800;
	var Max_h=800;	
	if(Max_w>document.body.clientWidth){ Max_w = document.body.clientWidth-20; }
	if(Max_h>document.body.clientHeight){ Max_w = document.body.clientHeight-40; } 
	var w = obj.offsetWidth;
	var h = obj.offsetHeight;
	if(Max_w<w){ h=Max_w*h/w; w=Max_w; }
	if(Max_h<h){ w=Max_h*w/h; h=Max_h; }
	
	PIC_VIEWER_IMG.src = obj.src;
	PIC_VIEWER_IMG.width = w;
	PIC_VIEWER_IMG.height = h;			
	pic_viewer_center();
}
function pic_viewer_center(){	
	var X = (document.body.clientWidth/2)-(PIC_VIEW.offsetWidth/2) + document.body.scrollLeft;
	var Y = (document.body.clientHeight/2)-(PIC_VIEW.offsetHeight/2) + document.body.scrollTop;
	if(Y<0){ Y=10; }
	PIC_VIEW.style.left = X;
	PIC_VIEW.style.top = Y;
}
function pic_viewer_close(){
	PIC_VIEW.style.display = "none";
}  

//-------------------ÀÌ¹ÌÁö º¸±â µå·¡±× ----------------------------------
var ns4=document.layers;
var ie4=document.all;
var ns6=document.getElementById&&!document.all;
var pic_viewer_drags=false;
var tempx=0,tempy=0;
var offsetx=0,offsety=0;	

function pic_viewer_drag(e){
	if(!pic_viewer_drags){ return false; }
	if (ie4){
		PIC_VIEW.style.left=tempx + event.clientX - offsetx;
		PIC_VIEW.style.top=tempy + event.clientY - offsety;
	}else{
		PIC_VIEW.style.left=tempx+e.clientX-offsetx;
		PIC_VIEW.style.top=tempy+e.clientY-offsety;	
	}
}

function pic_viewer_drag_init(e){
	var event_obj_id = (ie4)?event.srcElement.id:e.target.id;			
	if (event_obj_id=="PIC_VIEWER_TITLE"){
		offsetx=ie4? event.clientX : e.clientX
		offsety=ie4? event.clientY : e.clientY
		tempx=parseInt(PIC_VIEW.style.left)
		tempy=parseInt(PIC_VIEW.style.top)
		pic_viewer_drags=true
		document.onmousemove=pic_viewer_drag;
	}
}
document.onmousedown=pic_viewer_drag_init;
document.onmouseup=new Function("pic_viewer_drags=false");


//##### ÄíÅ°(cookies) ############################################
function setCookie(name, value) {
    var now = new Date();
    var expir = new Date(now.getTime() + (60*60*24)*100);
    setCookie(name, value, expir.toGMTString());
}
function setCookie(name, value, expir) {
    document.cookie = name + "=" + escape(value) + "; expires=" + expir + ";";
}
function getCookie(name){ 
    var nameOfCookie = name + "="; 
    var x = 0;     
    while ( x <= document.cookie.length ){
        var y = (x+nameOfCookie.length);            
        if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
            if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ){ endOfCookie = document.cookie.length; } 
            return unescape( document.cookie.substring( y, endOfCookie ) ); 
        }     
        x = document.cookie.indexOf( " ", x ) + 1; 
        if ( x == 0 ){ break; } 
    } 
    return ""; 
}

function getCookieObj(obj) {
    var value = getCookie(obj.name);
    if (value != null) obj.value = value;
}
function setCookieObj(obj) {
    setCookie(obj.name, obj.value);
}

//##### ÀÔ·ÂÇÊµå °ü·Ã ####################################

function moveFocus(objText1 , length, objText2) {
    if ( objText1.value.length == length) {
        objText2.focus() ;
    }
}

function chkInput(input , type) {
    var validate = false ; 
    var typeStr ; 
    if ( type == "numeric" ) {
        validate = checkNumber(input) ;
        typeStr = "¼ýÀÚ" ;
    } else if ( type == "engno" ) {    
        validate = checkAlphaNum(input) ;
        typeStr = "¼ýÀÚ¿Í ¿µ¹®" ;
    }
    if (!validate) {
        alert (typeStr + "¸¸ ÀÔ·ÂÇÏ¼¼¿ä") ; 
        input.value="" ;
//      input.focus() ;
    }
    return validate ; 
}

function FormatNumber(v1){ 
    var str=new Array(); 
    v1=String(v1); 
    for(var i=1;i<=v1.length;i++){ 
        if(i%3){ str[v1.length-i]=v1.charAt(v1.length-i); }else{ str[v1.length-i]=','+v1.charAt(v1.length-i); } 
    } 
    return str.join('').replace(/^,/,''); //½ºÆ®¸µÀ» Á¶ÇÕÇÏ¿© ¹ÝÈ¯ 
} 

function CutItem(obj,val){
    val = "," + val + ",";
    var cnt = obj.options.length;
    for(var i=0;i<cnt;i++){        
        if(val.indexOf( "," + obj.options[i].value +"," )<0){
            obj.options[i--] = null;
            cnt = obj.options.length;
        }
    }    
}
function RemoveItem(obj,val){
    val = "," + val + ",";
    var cnt = obj.options.length;
    for(var i=0;i<cnt;i++){        
        if(val.indexOf( "," + obj.options[i].value +"," )>=0){
            obj.options[i--] = null;
            cnt = obj.options.length;
        }
    }    
}

function flash(name, file, w, h){
	document.write ('<object width="'+ w +'" height="'+ h +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="event" align="middle">');
	document.write ('<param name="allowScriptAccess" value="sameDomain" />');
	document.write ('<param name="movie" value="'+ file +'"/><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
	document.write ('<embed src="'+ file +'" quality="high" bgcolor="#ffffff" width="'+ w +'" height="'+ h +'" name="'+ name +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
	document.write ('</object>');
}


    function FnInMoney(){
    
        var w=780;
        var h=630;
    
        var lposi = (screen.width) ? (screen.width-w)/2 : 0;
        var tposi = (screen.height) ? (screen.height-h)/2 : 0;      
    
        var frm=document.LeftDocForm;

        var status = "toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
        window.open( HTTPS_HOST +"/common/accountdeposit.run", "_EmoneyInMoney", status);

    }
    
    function FnAssMember(){    	
    	location.href = HTTPS_HOST + "/lender/membership/register_investor.run";
    }
    
	function FnRequestOutMoney(){
	
		var w=780;
		var h=700;
	
		var lposi = (screen.width) ? (screen.width-w)/2 : 0;
		var tposi = (screen.height) ? (screen.height-h)/2 : 0;		
	
		var frm=document.LeftDocForm;

		var status = "toolbar=no,directories=no,scrollbars=no,resizable=yes,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
		window.open(HTTPS_HOST +"/common/accountwithdraw.run?page_typ="+page_typ, "_EmoneyOutMoney", status); 

	}
	
    
    function Login_check(Login_id){
    	if(Login_id == "" || Login_id == null){
    		FnLoginPopup();
    	}
    }
    
	function FnAccountOpen(run, why_join, usr_typ) {
		if(why_join == "AM03"){
			if(usr_typ=="UT01"||usr_typ=="UT11"){
				alert("ÀÏ¹ÝÅõÀÚÈ¸¿ø ÀÌ»ó È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
				return;
			}
		} 
		window.open(HTTPS_HOST +"/" + run+".run?why_join="+ why_join, "_report", "toolbar=no,directories=no,scrollbars=yes,resizable=yes,status=no,menubar=no,width=1000"); 
	}

	function FnPointOpen() {
		window.open(HTTPS_HOST +"/myauction/mypoint.run", "point", "toolbar=no,directories=no,scrollbars=yes,resizable=yes,status=no,menubar=no,width=800,height=300"); 
	}
	
//#####  flash View  ####################################################################
	
	function fl_view(objhtml) { 
	    document.write(objhtml); 
	}
	
	function viewFlash1(source,width,height)
	{
	    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">      <param name="movie" value="' + source + '"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="' + source + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed></object>');
	}
	function viewFlash2(source,width,height)
	{
	    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">      <param name="movie" value="' + source + '"><param name="quality" value="high"><param name="bgcolor" value="ffffff" /><param name="wmode" value="transparent"><embed src="' + source + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed></object>');
	}

//¼­ºñ½ºÀÌ¿ë¾à°ü Å¬¸¯
	function agreement(){
		
		var w=900;
		var h=700;

		var lposi = (screen.width) ? (screen.width-w)/2 : 0;
		var tposi = (screen.height) ? (screen.height-h)/2 : 0;		
		
		var status = "toolbar=no,directories=no,scrollbars=yes,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
		window.open( HTTPS_HOST +"/agreement.run", "_Agreement", status);
	}
	function agreement_personal(){
		
		var w=900;
		var h=700;

		var lposi = (screen.width) ? (screen.width-w)/2 : 0;
		var tposi = (screen.height) ? (screen.height-h)/2 : 0;		
		
		var status = "toolbar=no,directories=no,scrollbars=yes,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
		window.open( HTTPS_HOST +"/agreement_personal_info.run", "_Agreement", status);
	}
	function agreement_email_collect(){
		
		var w=900;
		var h=700;

		var lposi = (screen.width) ? (screen.width-w)/2 : 0;
		var tposi = (screen.height) ? (screen.height-h)/2 : 0;		
		
		var status = "toolbar=no,directories=no,scrollbars=yes,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
		window.open( HTTPS_HOST +"/agreement_email_collect.run", "_Agreement", status);
	}
	function agreement_loan(){
		
		var w=900;
		var h=700;

		var lposi = (screen.width) ? (screen.width-w)/2 : 0;
		var tposi = (screen.height) ? (screen.height-h)/2 : 0;		
		
		var status = "toolbar=no,directories=no,scrollbars=yes,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
		window.open( HTTPS_HOST +"/agreement_mini.run?idx=loan", "_Agreement", status);
	}

	function FnPopupAictionView(auction_id) {
		window.open( HTTP_HOST + page_typ + "/auction/view.run?ForwardPage=popup&auction_id="+ auction_id, "AuctionDetailView", "toolbar=no,directories=no,scrollbars=yes,resizable=yes,status=no,menubar=no,width=840,height=650");
	}
	
	function FnPopupBlog(mbr_id){
		
		var URI      = top.location.href; 
		if(URI.indexOf("/blog")>0){
			location.href = HTTP_HOST+"/blog/"+mbr_id;
			return;
		}
			
		var url     = HTTP_HOST+"/blog/"+mbr_id;
		var name    = "FnPopupBlog";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";

		var width   = 860;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 700;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;

		window.open(url,'',style); 

		}
	function FnPopupBlogInvestAction(mbr_id){
		
		var URI      = top.location.href; 
		if(URI.indexOf("/blog")>0){
			location.href = HTTP_HOST+"/blog/" + mbr_id + "/invest_action.run";
			return;
		}
		
		var url     = HTTP_HOST+"/blog/"+mbr_id+"/invest_action.run";
		var name    = "FnPopupBlogInvestAction";
		var style   = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";
		
		var width   = 860;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 700;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;
		
		window.open(url,'',style); 
		
	}
	function FnPopupBlogGallery(mbr_id,auc_id){
		
		var URI      = top.location.href; 
		if(URI.indexOf("/blog")>0){
			location.href = HTTP_HOST+"/blog/"+mbr_id+"/gallery.run?cmd=2&auction_id="+auc_id;
			return;
		}
			
		var url     = HTTP_HOST+"/blog/"+mbr_id;
		var name    = "FnPopupBlog";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";

		var width   = 800;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 700;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;

		window.open(url,'',style); 

		}	
	function FnPopupBlogBizGallery(mbr_id,auc_id){
		
		var URI      = top.location.href; 
		if(URI.indexOf("/blog")>0){
			location.href = HTTP_HOST+"/blog/"+mbr_id+"/biz_gallery.run?cmd=2&auction_id="+auc_id;
			return;
		}
			
		var url     = HTTP_HOST+"/blog/"+mbr_id;
		var name    = "FnPopupBlog";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";

		var width   = 800;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 700;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;

		window.open(url,'',style); 

		}		
	
	function FnPopupBlogMemo(mbr_id){
		
		var url     = HTTP_HOST+"/blog/"+mbr_id+"/memo.run?type=recv_id";
		var name    = "FnPopupBlogMemo";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";

		var width   = 800;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 700;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;

		window.open(url,'',style); 

		}	
	function FnPopupBlogBoard(mbr_id,param){
		
		var url     = HTTP_HOST+"/blog/"+mbr_id+"/bbs.run?"+param;
		var name    = "FnPopupBlogMemo";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";

		var width   = 800;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 700;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;

		window.open(url,'',style); 

		}		
	function FnGivePoint(mbr_id){
		
		var url     = HTTP_HOST +page_typ +"/investzone/give_point.run?recv_id="+ mbr_id ;
		var name    = "FnGivePoint";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,border=0,menubar=no";
		
		var width   = 325;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 324;    //¼¼·Î »çÀÌÁî Á¶Àý		
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;
		
		window.open(url,'',style); 
		
	}	
	function FnSendMemo(mbr_id){
		
		
		var url     = HTTP_HOST +"/blog/"+ mbr_id +"/memo_popup.run";
		var name    = "FnSendMemo";
		var style  = "toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes,border=0,menubar=no";
		
		var width   = 700;   //°¡·Î »çÀÌÁî Á¶Àý
		var height  = 400;    //¼¼·Î »çÀÌÁî Á¶Àý
		var xpos    = (screen.availWidth - width  ) / 2;
		var ypos    = (screen.availHeight- height ) / 2;
		style       = style+',top='+ypos+',left='+ xpos +',width=' + width + ',height=' + height;
		url         = url;
		
		window.open(url,'',style); 
		
	}
	function FnPopup(name,url,w,h){
			var lposi = (screen.width) ? (screen.width-w)/2 : 0; 
			var tposi = (screen.height) ? (screen.height-h)/2 : 0; 
			var status = 'toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,menubar=no,width='+w+', height='+h+', top='+tposi+',left='+lposi; 
			window.open(url,'briefing',status);
	}
	// ³Ñ¹ö Ã¼Å©
    function isNumber(s) {
  	  s += ''; // ¹®ÀÚ¿­·Î º¯È¯
  	  s = s.replace(/^\s*|\s*$/g, ''); // ÁÂ¿ì °ø¹é Á¦°Å
  	  if (s == '' || isNaN(s)) return false;
  	  return true;
  }
    

    
    //°´Ã¼ À§Ä¡±¸ÇÏ±â.
    function getBoundsObject(obj) {
    	if (obj == null || obj == undefined) { return; }
    	   var locations = new Object();

    	    if (obj.getBoundingClientRect) { //IE, FF3 
    	     var rect = obj.getBoundingClientRect();
    	     locations.left = rect.left + (document.documentElement.scrollLeft || document.body.scrollLeft);
    	     locations.top = rect.top + (document.documentElement.scrollTop || document.body.scrollTop);
    	     locations.width = rect.right - rect.left;
    	     locations.height = rect.bottom - rect.top + 1;
    	    }
    	    else if (document.getBoxObjectFor) { // gecko ¿£Áø ±â¹Ý FF3Á¦¿Ü 
    	     var boxObjectFor = document.getBoxObjectFor(obj);
    	     locations.left = boxObjectFor.x;
    	     locations.top = boxObjectFor.y;
    	     locations.width = boxObjectFor.width;
    	     locations.height = boxObjectFor.height;
    	    }
    	    else {
    	     locations.left = obj.offsetLeft;
    	     locations.top = obj.offsetTop;
    	     locations.width = obj.offsetWidth;
    	     locations.height = obj.offsetHeight + 3;

    	     var parent = obj.offsetParent;

    	     if (parent != obj) {
    	      while (parent) {
    	       locations.left += parent.offsetLeft;
    	       locations.top += parent.offsetTop;
    	       parent = parent.offsetParent;
    	      }
    	     }

    	     // ¿ÀÆä¶ó¿Í »çÆÄ¸®ÀÇ 'absolute' postionÀÇ °æ¿ì bodyÀÇ offsetTopÀ» Àß¸ø °è»ê º¸Á¤ 
    	     var ua = navigator.userAgent.toLowerCase();

    	     if (ua.indexOf('opera') != -1 || (ua.indexOf('safari') != -1 && getStyle(obj, 'position') == 'absolute')) {
    	      locations.top -= document.body.offsetTop;
    	     }

    	    }
    	    return locations;
    	   
    	  }
    
    function setBoundsObject(obj,name,val) {
 	   
 	   if (obj == null || obj == undefined) { return; }
 	    if (obj.getBoundingClientRect) { //IE, FF3 
			if(name=="left")  obj.left   = val;
			if(name=="top")   obj.top    = val;
			if(name=="width") obj.width  = val;
			if(name=="height")obj.height = val;
 	    }
 	    else if (document.getBoxObjectFor) { // gecko ¿£Áø ±â¹Ý FF3Á¦¿Ü 
 	     	if(name=="left")   obj.x = val;
 	    	if(name=="top")    obj.y  = val;
 	    	if(name=="width")  obj.width = val;
 	    	if(name=="height") obj.height = val;
 	    }
 	    else {
 	    	if(name=="left")   obj.offsetLeft = val;
 	    	if(name=="top")    obj.offsetTop   = val;
 	    	if(name=="width")  obj.offsetWidth = val;
 	    	if(name=="height") obj.offsetHeight = val;
 	     }    
    }
    
    //¿ÀºêÁ§Æ® Ã¼Å©
    function FnObjectChk(obj){
    	var obj_Str = obj + "";	
    	//IE [object]
    	//»çÆÄ¸®,Å©·Ò µî [object HTMLFormElement] [object HTMLDivElement] [object HTMLTableCellElement]	
    	if(obj_Str.indexOf('[object')==0){ 
    		return true;
    	}else{
    		return false;
    	}
    }
    
    function FnKCBPop(auc_no){	
    	var Data = window.showModalDialog("/KCB.run?cmd=2&auc_no="+auc_no, "KCB_POP", "dialogheight: 400px; dialogwidth: 400px;");
    	if(!Data || Data=="" || Data=="0"){ return false; }
    	alert("KCB ½Å¿ëÁ¤º¸ ±â·ÏÀÌ È®ÀÎ µÇ¾ú½À´Ï´Ù.\nµî·ÏÇÏ±â¸¦ ´©¸£½Ã¸é °æ¸Å½ÅÃ»ÀÌ ¿Ï·áµË´Ï´Ù.");	
    	if(FnObjectChk(KCB_MSG_1)){ KCB_MSG_1.display = "none"; }
    	if(FnObjectChk(KCB_MSG_2)){ KCB_MSG_2.display = ""; }
    	if(FnObjectChk(KCB_BTN)){ KCB_BTN.display = "none"; }	
    }    
    
    // ±â¾÷½Å¿ëÆò°¡·Î Á¤º¸Á¦°ø ÇÏ´Â ³»¿ë ÆË¾÷
	function FnCreditCompDoc(){
		var lposi = (screen.width) ? (screen.width-800)/2 : 0;
		var tposi = (screen.height) ? (screen.height-650)/2 : 0;	
		window.open("http://moneyauction.co.kr/screen/loan/common/NiceCompInfo.jsp","±â¾÷½Å¿ëµî·ÏÀÚ·á", "top="+tposi+", left="+lposi+", height=800px, width=650px");
	}
	
	String.prototype.replaceAll = function( searchStr, replaceStr )
	{
	    return this.split( searchStr ).join( replaceStr );
	}	
	
	function FnLinkCopy(link){
		window.clipboardData.setData("Text",link); 	
		alert("ÁÖ¼Ò°¡ º¹»ç µÇ¾ú½À´Ï´Ù.")
	}
	
	

	//png Åõ¸í Ã³¸®
	function setPng24(obj) {
		alert(obj);
	    obj.width=obj.height=1;
	    obj.className=obj.className.replace(/\bpng24\b/i,'');
	    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	    obj.src='';
	    return '';
	}	
	

	//### ¿ÀÅä ÅÇ #################################
	var isNN = (navigator.appName.indexOf("Netscape")!=-1);
	function autoTab(input,len, e) {
	    var keyCode = (isNN) ? e.which : e.keyCode;
	    var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
	    if(input.value.length >= len && !containsElement(filter,keyCode)) {
	    input.value = input.value.slice(0, len);
	    input.form[(getIndex(input)+1) % input.form.length].focus();
	}
	function containsElement(arr, ele) {
	    var found = false, index = 0;
	    while(!found && index < arr.length)
	    if(arr[index] == ele)
	    found = true;
	    else
	    index++;
	    return found;
	}
	function getIndex(input) {
	    var index = -1, i = 0, found = false;
	    while (i < input.form.length && index == -1)
	    if (input.form[i] == input)index = i;
	    else i++;
	    return index;
	    }
	return true;
	}



	//###### enter ¸¦ tab À¸·Î ###########################
	function EnterToTab (field, event) {
	    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	    if (keyCode == 13) {
	        var i;
	        for (i = 0; i < field.form.elements.length; i++)
	            if (field == field.form.elements[i])
	                break;
	        i = (i + 1) % field.form.elements.length;
	        field.form.elements[i].focus();
	        return false;
	    }
	    else
	    return true;
	}

	//###### enter ¸¦ submit À¸·Î ###########################
	function EnterToSubmit (frm, event) {
	    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	    if (keyCode == 13) {
	        frm.submit();
	        return false;
	    }
	    else
	    return true;
	}
	
	//###### enter ½Ã Function ½ÇÇà  ###########################
	function EnterToFunction (event, Func) {
	    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	    if (keyCode == 13) {
	    	Func();
	        return false;
	    }
	    else
	    return true;
	}	
	
	function FnInputBG(obj,img){
		if(obj.value=="" && img!=""){			
			obj.style.backgroundImage = "url('"+ img +"')"; 
			//obj.style.backgroundColor = "#ffffff url("+img+");repeat-x";
		}else{
			obj.style.backgroundImage = "none";
		}
	}
	
	function InputWriteStart(obj,FontColor){
		if(obj.value==obj.alt){ obj.value=""; }
		obj.style.color = FontColor;
	}
	function InputWriteEnd(obj,FontColor){
		if(obj.value==""){ obj.value=obj.alt; obj.style.color = FontColor; }		
	}

	function commaObj(obj){
	    var str=new Array();
	    v1=commaDelStr(obj.value);
	    if(isNumber(v1)){ v1 = ""+Number(v1); }else{ v1 = "0"; }
	    for(var i=1;i<=v1.length;i++){
	        if(i%3){ str[v1.length-i]=v1.charAt(v1.length-i); }else{ str[v1.length-i]=','+v1.charAt(v1.length-i); }
	    }
	    obj.value = str.join('').replace(/^,/,''); //½ºÆ®¸µÀ» Á¶ÇÕÇÏ¿© ¹ÝÈ¯
	}
	function commaDelObj(obj){
	    v1=commaDelStr(obj.value);	    
	    obj.value = v1; //½ºÆ®¸µÀ» Á¶ÇÕÇÏ¿© ¹ÝÈ¯	
	}	

	function commaStr(Str){
	    var str=new Array();
	    var v1=String(Str);
	    var v2="";
	    if(v1.indexOf(".")>0){
	        var temp = v1.split(".");
	        v1 = temp[0];
	        v2 = "." + temp[1];
	    }
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    for(var i=1;i<=v1.length;i++){
	        if(i%3){ str[v1.length-i]=v1.charAt(v1.length-i); }else{ str[v1.length-i]=','+v1.charAt(v1.length-i); }
	    }
	    return str.join('').replace(/^,/,'') + v2; //½ºÆ®¸µÀ» Á¶ÇÕÇÏ¿© ¹ÝÈ¯
	}

	function commaDelStr(Str){
	    var str=new Array();
	    v1=String(Str);
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    v1=v1.replace(',','');
	    return v1;
	}
	 
	function ChkControlKey(keycode){
		switch (keycode){
		case 8: //¹é½ºÆäÀÌ½º
		case 9: //ÅÇ
		case 35: //end
		case 36: //home
		case 37: //¡ç
		case 39: //¡æ		
		case 46: //del
			return true;
		}
		return false;
	}

	//############ ÇÑ±Û ÀÔ·Â ¹æÁö ½ºÅ©¸³Æ® ##########################
	
	function abc123(obj){
		if(event.keyCode==17){ event.returnValue = false; return false; }
	    if((ChkControlKey(event.keyCode)|| event.keyCode>47&&event.keyCode<58)||(event.keyCode>64&&event.keyCode<91)||(event.keyCode>96&&event.keyCode<123)||(event.keyCode==190)){
	        event.returnValue = true;
	    }else{
	        event.returnValue = false;
	    }
	    //char_clear_obj = obj;
	    //setTimeout("han_clear('')",5);
	}
	function only123(obj){ //0~9 , numpad 0~9		
	    if( ChkControlKey(event.keyCode) || (event.keyCode>=48&&event.keyCode<=57) || (event.keyCode>=96&&event.keyCode<=105) ){
	        event.returnValue = true;
	    }else{
	        event.returnValue = false;
	    }
	    char_clear_obj = obj;
	    //setTimeout("eng_clear('')",5);
	}
	
	function onlyhan(obj){
	    if((event.keyCode>47&&event.keyCode<58)||(event.keyCode>64&&event.keyCode<91)||(event.keyCode>96&&event.keyCode<123)){
	        event.returnValue = false;
	    }else{
	        event.returnValue = true;
	    }
	    char_clear_obj = obj;
	}	
	
	function han_clear(obj){
	    if(obj==''){ obj = char_clear_obj; }
	    var word=obj.value;
	    for(i=0;i<obj.value.length;i++) {
	        var a=obj.value.charCodeAt(i);
	        if (a > 128) { word=word.replace(obj.value.charAt(i),""); }
	    }
	    obj.value = word;
	}
	function eng_clear(obj){
	    if(obj==''){ obj = char_clear_obj; }
	    var word=obj.value;
	    for(i=0;i<obj.value.length;i++) {
	        var a=obj.value.charCodeAt(i);
	        if ( (a>57 || a <48) && a!=44 && a!=45 && a!=46) { word=word.replace(obj.value.charAt(i),""); }
	    }
	    obj.value = word;
	}	
