
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; }

//######## 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);  //### ÃÑ»óÈ¯¾×,¿ø»óÈ¯¾× ###### 
}

//##### ·Î±×ÀÎ(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);
    }    
    top.location.href = HTTPS_HOST +"/login.run?refPage="+ escape(URL);
}
function FnLenderLogin(){
	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);
	}    
	top.location.href = HTTPS_HOST +"/login.run?refPage="+ escape(URL);
}

function FnLoginPopup(page){
	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");
}
function FnLogout(){
    //if(confirm("·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?")){ top.location.href = "/login.run?m=logout"; }
    top.location.href = HTTP_HOST +"/login.run?m=logout"; 
}

//##### ½Å¿ëÁ¤º¸ Á¶È¸ ################################
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;
    
    //alert("·Î±×ÀÎ¾Æµð : "+logid);
    //alert("´Ð³×ÀÓ : "+nick);
    //alert("·Î±×Å¸ÀÔ : "+login_type);
    //alert("MEMBER_ID : "+memberid);
    var x,y;
    var MenuString = "";
    if(login_type=="UT01"){
	    MenuString += ""
	    +"<table>"
	    +"	<tr><td><font color='darkorange'>"+ MEMBER_ID +"</font></b><br></td></tr>"
	    +"	<tr><td><a target='_parent' href='"+ HTTP_HOST +"/blog/"+ MEMBER_ID +"/blog.run'>¤ýºí·Î±×°¡±â</a></td></tr>";
    }else{
        MenuString += ""
    	    +"<table>"
    	    +"	<tr><td><font color='darkorange'>"+ MEMBER_ID +"</font></b><br></td></tr>"
    	    +"	<tr><td><a target='_parent' href='"+ HTTP_HOST +"/blog/"+ MEMBER_ID +"/blog.run'>¤ýºí·Î±×°¡±â</a></td></tr>";
    }
	MenuString +="	<tr><td><a href='#un' onclick='window.open(\""+ HTTP_HOST +"/blog/"+ MEMBER_ID +"/memo_popup.run\",\"mlg\", \"width=620,height=450,resizable=no,scrollbars=no\")';>¤ýÂÊÁöº¸³»±â</a></td></tr>";
	
	// Æ÷ÀÎÆ® ¼±¹° create by À¯±¤¼® 2009.10.15
	if(nick!="" && login_type!="UT01"){
		MenuString += ""
			+"	<tr><td><a href='#un' onclick='window.open(\""+ HTTP_HOST +"/give_point.run?recv_id="+ MEMBER_ID + "\",\"give_point\", \"width=620,height=450,resizable=no,scrollbars=no\")';>¤ýÆ÷ÀÎÆ®¼±¹°</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://www.moneyauction.co.kr/l_personal_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>");
document.attachEvent("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 emonloinpop(){
    
        var w=575;
        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=no,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
        window.open( HTTPS_HOST +"/EMoneyInPop.run", "_EmoneyInMoney", status); 

    }
    
	function FnRequestOutMoney(){
	
		var w=750;
		var h=550;
	
		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 +"/EMoneyOut.run", "_EmoneyOutMoney", status); 

	}
	
    function FnL_EMoneyIn(){
    	
    	//alert("ÇöÀç ±¹¹ÎÀºÇà Àü»ê¸ÁÀÇ Àå¾Ö·Î ¸Ó´Ï¿Á¼Ç ÀÔ±ÝÀÌ Á¤»óÀûÀ¸·Î ÀÌ·ç¾î Áö°í ÀÖÁö ¾Ê½À´Ï´Ù.\n\nÀá½ÃÈÄ¿¡ ÀÌ¿ëÇØ ÁÖ½Ê½Ã¿ä.");
        
        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;
        if(HTTPS_HOST=='http://211.196.200.5'){
        	var HOST= HTTPS_HOST;
        }else{
        	HOST= 'https://www.moneyauction.co.kr'
        }
        var status = "toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
        window.open( HOST +"/myauction/EMoneyInPop.run", "_EmoneyInMoney", status); 

    }
    
    function Login_check(Login_id){
    	if(Login_id == "" || Login_id == null){
    		FnLoginPopup();
    	}
    }
    
	function FnL_EMoneyOut(){
	
		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;
        if(HTTPS_HOST=='http://211.196.200.5'){
        	var HOST= HTTPS_HOST;
        }else{
        	HOST= 'https://www.moneyauction.co.kr'
        	//HOST= HTTPS_HOST;
        }
		var status = "toolbar=no,directories=no,scrollbars=no,resizable=yes,status=no,menubar=no,width="+w+", height="+h+", top="+tposi+",left="+lposi; 
		window.open( HOST +"/myauction/EMoneyOut.run", "_EmoneyOutMoney", status); 

	}
	
	function FnAccountOpen(run, why_join, usr_typ) {
		if(why_join == "AM03"){
			if(usr_typ=="UT01"){
				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 FnPopupView(auction_id) {
		window.open( HTTP_HOST +"/auction_view_pop.run?auction_id="+ auction_id, "DetailView", "toolbar=no,directories=no,scrollbars=yes,resizable=yes,status=no,menubar=no,width=840,height=650");
	}
	