//<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
//if( location.host == "www.imtel.com" )
	//document.write( '<iframe name="ifrmSubmit" width="90%" height="100"></iframe>');
//else
document.write( '<iframe name="ifrmSubmit" width="0" height="0" style="display:none;"></iframe>'); // 2개의 action을 처리할때, 하나의 iframeSubmit을 사용하면 delay에 의한 소멸이 생긴다.

document.write('<div id="div_common_view" style="display:none;position:absolute;width:0;height:0;left:0;top:0;">');
document.write('<iframe name="ifrm_common_view" src="about:blank" width="1" height="1" scrolling="no" frameborder="3"></iframe>');
document.write('</div>');

document.write('<form name="menuMoveForm" method="post">');
document.write('<input type="hidden" name="tilesFlag" value="">');
document.write('</form>');

// 회원 정보 수정을 위한 폼.(곧바로 가기 위한))
document.write('<form name="memberModify" method="post">');
document.write('<input type="hidden" name="memberFlag" value="">');
document.write('</form>');

var bLogin = false;  //현제 active.js 에서 setting 하고 있다.

// IE5.5 버전 체크
var IE_Ver = new Number(((window.navigator.appVersion.split('; '))[1].split(' '))[1]);

if(!navigator.cookieEnabled) { // dialog일 경우에는 cookie 체크를 하지 않는다.
	//if(confirm("쿠키 설정이 되어 있지 않습니다.\n쿠키 설정 없이는 아이엠텔 사이트  사용이 불가능합니다.\n쿠키 설정 도움말을 보시겠습니까?")) 
	//	document.location.href = 'http://www.ontang.com/commons/asp/cookie_ie5.asp';
	alert("쿠키 설정이 되어 있지 않습니다.\n쿠키 설정 없이는 아이엠텔 사이트  사용이 불가능합니다.\n쿠키 설정을 보통으로 해주세요.")
}

// xp 서비스 팩 2 사용자 체크
var gbXp_Sp2Check = false;		//false 값이 팝업 허용이다.
gbXp_Sp2Check = (window.navigator.userAgent.indexOf("SV1") != -1);

var ImgDir = "http://img.imtel.com";

var error_reported = false;
//window.onerror=ERROR_TRAP;
window.onload = EXEC_WIN_ONLOAD;

// onload Handle
var ARR_WIN_ONLOAD = new Array();
function ADD_WIN_ONLOAD (eval_str, priority) {
	if ("undefined" != typeof(priority)) {
		if (priority >= 0) {
			if ("undefined" == typeof(ARR_WIN_ONLOAD[priority]))
				ARR_WIN_ONLOAD[priority] = eval_str;
			else {
				var tmpEvalStr = ARR_WIN_ONLOAD[priority];
				ARR_WIN_ONLOAD[ARR_WIN_ONLOAD.length] = tmpEvalStr;
				ARR_WIN_ONLOAD[priority] = eval_str;
			}
		}
	}
	else if ("undefined" == typeof(priority))
		ARR_WIN_ONLOAD[ARR_WIN_ONLOAD.length] = eval_str;
}
function EXEC_WIN_ONLOAD () {
  for (var i=0; i < ARR_WIN_ONLOAD.length; i++){
    eval(ARR_WIN_ONLOAD[i]);
  }
}

// iframe  ====================================================
var bMinSize = false;
var iFrmMaxWidth;
var iFrmMaxHeight;
var bMaxSize = false;
function parent_resize_ifrm(name, flag) {
	if (parent && parent != this && typeof(parent.resize_ifrm) != 'undefined') 
		try {parent.resize_ifrm(name, flag)} catch(e) {};
}

function set_MinSize(width, height) {
	iFrmMinWidth = width;
	iFrmMinHeight = height
	bMinSize = true;
}
function set_MaxSize(width, height) {
	iFrmMaxWidth = width;
	iFrmMaxHeight = height
	bMaxSize = true;
}

function resize_ifrm(name, flag) {
	if (name == null || !name) name = "ifrmSubmit";
	//alert(name)
	//try
	//{
	   // set_MinSize(500, 300)
		
	  var oBody   = document.frames(name).document.body;
		var oIFrame = document.all(name);
		var frmWidth  = oBody.scrollWidth;
		var frmHeight = oBody.scrollHeight;
		if(frmHeight == 0) {
			setTimeout("resize_ifrm('" + name + "')",100)
			return;
		}
		if (bMinSize) {
			frmWidth  = Math.max(frmWidth, iFrmMinWidth);
			frmHeight = Math.max(frmHeight, iFrmMinHeight);
		}
		if (bMaxSize) {
			frmWidth  = Math.min(frmWidth, iFrmMaxWidth);
			frmHeight = Math.min(frmHeight, iFrmMaxHeight);
		}
		oIFrame.style.height = frmHeight;
		if( flag ) oIFrame.style.width = frmWidth;
		//alert(flag);
		//alert(frmHeight)
	//}
	//catch (e) {	}
}

function ifrm_common_location(src){
	ifrm_common_view.location.href = src;
}

function parent_div_hidden(div_name, ifrm_name) {
	if (parent && parent != this && typeof(parent.div_hidden) != 'undefined') 
		try {parent.div_hidden(div_name, ifrm_name)} catch(e) {};
		
	return;
}

function div_hidden(div_name, ifrm_name){	
	if(!div_name){
	 div_name="div_common_view";
	 ifrm_name="ifrm_common_view";
	}
	if(!ifrm_name) ifrm_name = "ifrm_common_view";
	var ifrm = document.all(ifrm_name);
	var ifrmBody = document.frames(ifrm_name).document.body;
	
	ifrm_common_location("about:blank");
	eval(div_name+".style.display='none'");
	//alert(ifrm.style.height);
	ifrm.style.height = 1;
	ifrm.style.width = 1;
	
	eval(div_name+".style.top=0");
	eval(div_name+".style.left=0");
	eval(div_name+".style.width=0");
	eval(div_name+".style.height=0");
	
	return;
}

function parent_div_view(div_name, ifrm_name) {
	if (parent && parent != this && typeof(parent.div_view) != 'undefined') 
		try {parent.div_view(div_name, ifrm_name)} catch(e) {};
}

function div_view(div_name, ifrm_name){	//width, height, top, left
	if(!div_name){
	 div_name="div_common_view";
	 ifrm_name="ifrm_common_view";
	}
	if(!ifrm_name) ifrm_name = "ifrm_common_view";
	
	eval(div_name+".style.display='inline'");
	var winBody = document.body;
	var winWidth = winBody.clientWidth;
	var winHeight = winBody.clientHeight;
	
	var ifrm = document.all(ifrm_name);
	var ifrmBody = document.frames(ifrm_name).document.body;
	var ifrmWidth = ifrmBody.scrollWidth;
	var ifrmHeight = ifrmBody.scrollHeight;
	
	var pos_x = (winWidth - ifrmWidth)/2;
	var pos_y = (winHeight - ifrmHeight)/2;
	
	if(pos_x<=0) pos_x = 10;
	if(pos_y<=0) pos_y = 10;
	
	eval(div_name+".style.top="+pos_y);
	eval(div_name+".style.left="+pos_x);
	eval(div_name+".style.width="+ifrmWidth);
	eval(div_name+".style.height="+ifrmHeight);
	
	resize_ifrm(ifrm_name,true);
	return;
}




//*****************************  *****************************

//XP 서비스팩 사용자 이면서 팝업 허용 메세지 
function xpsp2_popup_check(){
	//alert("팝업 차단");
}

// window open, resize ==========================================================================
function open_win (url, name, w, h, t, l) {
	var feature;
	feature =  "scrollbars=no,resizable=no,width="+w+",height="+h;
	
	if(t){
		feature += ',top=' + t;
	}else{
		//feature += ',top=0';
	}

	if(l){
		feature += ',left=' + l;
	}else{
		//feature += ',left=0';
	}
	
	var oWin = window.open(url, name, feature) 
	
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_center(url, name, w, h) {
	var height = screen.height;
  var width = screen.width;
	var toppos = height / 2 - h/2;
	var leftpos = width / 2 - w/2;

	var oWin = window.open(url, name, "scrollbars=no, resizable=no,width="+w+",height="+h+",top="+toppos+",left="+leftpos);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}


function open_win_center_submit(url, name, w, h, frm) {
	var height = screen.height;
	var width = screen.width;
	var toppos = height / 2 - h/2;
	var leftpos = width / 2 - w/2;

	var oWin = window.open(url, name, "scrollbars=no, resizable=no,width="+w+",height="+h+",top="+toppos+",left="+leftpos);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		frm.target = name;
		frm.action = url;
		frm.submit();
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_scroll (url, name, w, h) {
	var oWin = window.open(url, name, "scrollbars=yes,resizable=no,width="+w+",height="+h);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_autoscroll (url, name, w, h) {
	var oWin = window.open(url, name, "scrollbars=auto,resizable=yes,width="+w+",height="+h);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_resizable (url, name, w, h) {
	var oWin = window.open(url, name, "scrollbars=no,resizable=yes,width="+w+",height="+h);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_ret (url, name, w, h) {
	var oWin = window.open(url, name, "scrollbars=no,resizable=yes,width="+w+",height="+h);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_features (url, name,features) {
	var oWin = window.open(url, name, features);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function open_win_mpop(url, name, w, h) {	
	var height = window.screenTop + 215;
  var width = window.screenLeft + 195;
	var toppos = height - h/2;
	var leftpos = width - w/2;

	var oWin = window.open(url, name, "scrollbars=no,resizable=no,width="+w+",height="+h+",top="+toppos+",left="+leftpos);
	if(oWin == null){
		xpsp2_popup_check();
	}else {
		try{ oWin.focus(); }catch(Exception){}
	}
	return oWin;
}

function showWholeImg(url) {
	open_win(url,'_blank',50,50);
}

// Opener 
function url_OpenerRootWin(url) {
	var root_win = get_OpenerRoot()
	//alert(root_win)
	if(root_win == null) {
		url_newWin(url);
	}
	else {
		try {
			root_win.location = url;
			root_win.focus();
		} 
		catch (e) {
			url_newWin(url);
		}
	}
}

// Opener 
function url_OpenerRootNewWin(url) {
	var root_win = get_OpenerRoot('new')
	//alert(root_win)
	if(root_win == null) {
		url_newWin(url);
	}
	else {
		try {
			root_win.location = url;
			root_win.focus();
		} 
		catch (e) {
			url_newWin(url);
		}
	}
}

 
function get_OpenerRoot(flg) {
	var root_win;
	c = self.top;
	if (c.opener) {
		if(!c.opener.closed) {
			var cnt = 0;
			while (cnt++ < 20 && (c.opener && c != c.opener) && !c.opener.closed) {c = c.opener.top;}
		}
		else { c = null }
	}
	
	root_win = c;
	
	if(flg == 'new')
		if(root_win == null || c == self.top ) root_win = null;
	else
		if(root_win.closed || root_win == null || typeof(root_win.Navigate_pop) == 'undefined')  root_win = null;
		
	
	return root_win;
}

function GetBase() { //private
    var oBaseColl = document.all.tags('BASE');
    return ( (oBaseColl && oBaseColl.length) ? oBaseColl[0].target : null );
}

function Navigate_pop(url) { //private
	var base_target = GetBase();
	if (base_target != null)
		window.open(url, base_target);
	else
		document.location.assign(url);
	if (event) event.returnValue = false;
}

var newWindow_pop;
function url_newWin(url) {//private
  if ('object' == typeof(newWindow_pop)) {
    try {
      newWindow_pop.Navigate_pop(url);
      return;
    } 
    catch (e) {}
  }
  if(window.name!="ontang"){
  	newWindow_pop = window.open(url, "ontang");
  	newWindow_pop.focus();
  }
	else
		newWindow_pop = window.open(url, "_blank");	
}

//  윈도우 자동 리사이즈 수행(xp 등 브라우저 특성과 다이얼로그 제어기능 포함) ==================
function resize_win_auto(new_width) { 

	if (new_width) winWidth = new_width;
	document.writeln("<img name='blank_resizeimg' src='" + ImgDir + "/www/include/t.gif' align=top width='300' height='300' onload='resize_win();'>\n");
}

var winClientHeight = -1;
var winWidth = -1;
function resize_win () {//private
	//alert(winWidth)
	//alert(typeof(document.blank_resizeimg));
	if ('object' != typeof(document.blank_resizeimg)) return;
	if (document.blank_resizeimg.style.display == 'none') document.blank_resizeimg.style.display = '';
	if (winWidth == -1) winWidth = document.body.offsetWidth+6;		//document.body.offsetWidth+8;
	if (IE_Ver < 5.5) 
		winClientHeight = 29;
	else if (winClientHeight < 0) {
		win_resizeTo(winWidth, 180,true);
		winClientHeight = 180 - document.body.clientHeight;
	}
	
	var winHeight = 0;
	//alert('document.blank_resizeimg.offsetTop=' + document.blank_resizeimg.offsetTop);
	//alert('document.body.clientHeight=' + document.body.clientHeight);
	if (document.blank_resizeimg) winHeight = document.blank_resizeimg.offsetTop + winClientHeight;
	document.blank_resizeimg.style.display = 'none';
	var maxHeight = screen.availHeight * (9/10);
	//alert('winHeight=' + winHeight + ':maxHeight = ' + maxHeight);
	if (winHeight > maxHeight) {winHeight = maxHeight;winWidth = winWidth + 20; document.body.scroll= 'yes';}
	
	//alert(winHeight);
	win_resizeTo(winWidth+10, winHeight);	//win_resizeTo(winWidth + 10, winHeight);
	 
}

function win_resizeTo(width,height,moveless) {
	var t_win = self.top
	t_win.resizeTo(width, height);
	//try{ t_win.resizeTo(width, height); }catch(Exception){}
}

// ============================================================================


// virtual Data 관련 ==========================================
function _xmlGetData (url) {
	var virtual = new ActiveXObject("Microsoft.XMLHTTP"); 
	var _httpMethod = "GET"; // post/get/put/etc optional 
	var _syncFlag = false;
	virtual.open(_httpMethod,url, _syncFlag); 
	virtual.setRequestHeader("Content-type:", "text/html");   
	virtual.setRequestHeader("Referer:", url);   
	virtual.send(); 
	if (virtual.status > 200) {//
	}
	return virtual.responseText;
}

function virtualGetData(url) {
	return _xmlGetData(url);
}
//=========================================================================

function showWholeImg(url) {
	open_win(url,'_blank',10,10);
}



// 쿠키 관련 함수  =====================================================
function GetCookie (Name,Name2) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {// if cookie exists
			offset += search.length;
			returnvalue = getCookieVal(offset);
		}
		else {
			returnvalue = '';
		}
	}
	if(Name2) { 
		cookie = returnvalue
		search = Name2 + "="
		offset = returnvalue.indexOf(search)
		if (offset != -1) {// if cookie exists
			offset += search.length;
			returnvalue = getCookieVal(offset,cookie,"&");
		}
		else {
			returnvalue = '';
		}
	}
	return returnvalue;
}

function SetCookie (name,value,expires,path,domain,secure) {
	
	document.cookie = name + "=" + value +
	((expires) ? "; expires=" + expires.toGMTString() : "") +
	"; path=/" +
	((domain) ? "; domain" : "") +
	((secure) ? "; secure" : "");
	
}

function setCookie( name, value, expiredays )
{
    var todayDate = new Date();
    todayDate.setDate( todayDate.getDate() + expiredays );
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
    //alert("name:"+name+" value:"+value);
}

function getCookieVal (offset,cookie,token) {
	if(!token) token = ";";
	if(!cookie) cookie = document.cookie;
	var end = cookie.indexOf(token, offset);// set index of beginning of value
	if (end == -1) end = cookie.length;// set index of end of cookie value
	return unescape(cookie.substring(offset, end));
}
// =============================================================================


// js  =========================================================================
document.write('<script src="/commons/javascript/activex.js"></script>');
// =============================================================================


//주민번호
  function ssnCheck(vform1,vform2) {
    var str_jumin1=vform1.value;
    var str_jumin2=vform2.value;

    var chk =0;
    var yy = str_jumin1.substring(0,2);
    var mm = str_jumin1.substring(2,4);
    var dd = str_jumin1.substring(4,6);
    var sex = str_jumin2.substring(0,1);

    if (str_jumin2.split(" ").join("") == "")  return false;
    if (str_jumin1.length!=6) return false;
    if (str_jumin2.length != 7 ) return false;
    if (isNaN(str_jumin1) || isNaN(str_jumin2)) return false;
    if ((str_jumin1.length!=6)||(mm <1||mm>12||dd<1)) return false;
    if (sex != 1 && sex !=2 && sex != 3 && sex !=4) return false;
    
    for (var i = 0; i <=5 ; i++) {
        chk = chk + ((i%8+2) * parseInt(str_jumin1.substring(i,i+1)))
    }
    for (var i = 6; i <=11 ; i++) {
        chk = chk + ((i%8+2) * parseInt(str_jumin2.substring(i-6,i-5)))
    }

    chk = 11 - (chk %11)
    chk = chk % 10

    if (chk != str_jumin2.substring(6,7)) return false;
    return true;
	}


//바로가기 함수
function GoMyBiz(biz_id){
	top.location.href="/"+biz_id;
}

function goShop(){
	location.href="/shop/shop.jsp";
}

//********************결제 관련 ****************************
function funPayment(flag){
	var url = "";
	url = "http://pay.imtel.com/";
		
	if( flag == "en" )
		url += "pay.do?lang=en";
	else
		url += "pay.do?lang=kr";
	
  var winobj = open_win_center(url,'payment',474,495);	//474,495
}

function funPresent(flag){
	var url="";
	url = "http://pay.imtel.com/";
		
	if( flag == "en" )
		url += "pay.do?lang=en";
	else
		url += "pay.do?lang=kr";
	
	url += "&present=1";
	
	var winobj = open_win_scroll(url,'payment',492,600);	//474,495
}

function funTrans(){
	var url = "/commons/login_pop_trans.jsp";
  var winobj = open_win_scroll(url,'payment',492,530);	//440,495
}

function changeMail(flag){
	if( flag=='en')
		open_win_center('/commons/en_change_mail.jsp','mail','420','350');
	else
		open_win_center('/commons/change_mail.jsp','mail','420','350');

	return;
}

//*******************새로이 추가된 함수*************************
			// 1개의 value값을 바꾸고 submit를 한다.
function frm_value_chagne1_submit(frmobject, val, frmobject2) {
	frmobject.value		= val;
	frmobject2.submit();
	return ;
}


/*
// 팝업 띄우기 =====================================================================================================================
function openPopup(url, name, width, height, top, left, bScroll){
	var feature;
	if( bScroll ) feature =  "scrollbars="+bScroll; else feature = "scrollbars=no";
	feature += ",resizable=no,width="+width+",height="+height;
	
	if(top=="" || !top || top == "center") top	= (screen.height / 2) - (height / 2);
	if(left=="" || !left || left == "center") left= (screen.width /2) - (width / 2);

	if(top) feature += ",top=" + top;
	if(left) feature += ",left=" + left;
	var popObj = window.open(url, name, feature);
	
	 // 팝업이 차단 되었어도 아무것도 하지말자.
	if(popObj != null){ try {popObj.focus();} catch(Exception){} }
	
	return popObj;
}
*/

// 이미지롤오버 롤아웃 =============================================================================================================
function subHost(){
	var href = location.href;
	endPoint = href.indexOf(".");
	return href.substring(7,endPoint);
}
function overimg(url,imgname){
	eval(imgname+ ".src='" + "http://img.imtel.com/"+ subHost() +"/" + url + imgname + "_on.gif'");
}
function outimg(url,imgname){
	eval(imgname+ ".src='" + "http://img.imtel.com/"+ subHost() +"/" + url + imgname + ".gif'");
}
function clickimg(url,imgname){
	eval(imgname+ ".src='" + "http://img.imtel.com/"+ subHost() +"/" + url + imgname + "_click.gif'");
}




// 탭버튼클릭시 DIV컨텐츠 교체해서 보여주기 =======================================================================================
function chgCon(maxCount,num,imgSrc){
	var i_;
	for(i=1; i<=maxCount; i++){
		if( i < 10 ) i_ = "0"+i; else i_ = i;

		if(i == num){
			eval("document.all.con" +i_+ ".style.display='';");
			eval("document.all.tab" +i_+ ".src='http://img.imtel.com" +imgSrc+ "_tab" +i_+ "_on.gif';");
			eval("document.all.titleIMG.src='http://img.imtel.com" +imgSrc+ "_title" +i_+ ".gif';");
		}else{
			eval("document.all.con" +i_+ ".style.display='none';");
			eval("document.all.tab" +i_+ ".src='http://img.imtel.com" +imgSrc+ "_tab" +i_+ ".gif';");
		}
	}
}

// 탭버튼클릭시 DIV컨텐츠 교체해서 보여주기 (타이틀없는형태) =======================================================================================
function chgCon_noTitle(maxCount,num,imgSrc){
	var i_;
	for(i=1; i<=maxCount; i++){
		if( i < 10 ) i_ = "0"+i; else i_ = i;
		if(i == num){
			eval("document.all.con" +i_+ ".style.display='';");
			eval("document.all.tab" +i_+ ".src='http://img.imtel.com" +imgSrc+ "_tab" +i_+ "_on.gif';");
		}else{
			eval("document.all.con" +i_+ ".style.display='none';");
			eval("document.all.tab" +i_+ ".src='http://img.imtel.com" +imgSrc+ "_tab" +i_+ ".gif';");
		}
	}
}
// 탭버튼클릭시 버튼만 교체해서 보여주기 =======================================================================================
function chgConEx(maxCount,num,imgStartName,imgSrc,numException){ // 즉각적인 배열은 fun(['value1', 'value2']) 식으로 넘긴다.
	var i_;
	var continueFlag = false;
	for(i=1; i<=maxCount; i++){
		continueFlag = false;
		if( i < 10 ) i_ = "0"+i; else i_ = i;
		// 예외로 처리할 숫자는 처리하지 않는다.
		if( numException != null ) {
			for( j=0; j<=numException.length; j++ ){
				if( numException[j] == i ) {continueFlag = true;}
			}
		}
		if( !continueFlag ) {
			if(i == num){
				eval("document.all."+ imgStartName +i_+ ".src='http://img.imtel.com" +imgSrc+ "_"+ imgStartName +i_+ "_on.gif';");
			}else{
				eval("document.all."+ imgStartName +i_+ ".src='http://img.imtel.com" +imgSrc+ "_"+ imgStartName +i_+ ".gif';");
			}
		}
	}
}

// 2탭버튼클릭시 DIV컨텐츠 교체해서 보여주기 =======================================================================================
function chgCont(maxCount,num){
	var i_;
	for(i=1; i<=maxCount; i++){
		if( i < 10 ) i_ = "0"+i; else i_ = i;

		if(i == num){
			eval("document.all.cont" +i_+ ".style.display='';");
		}else{
			eval("document.all.cont" +i_+ ".style.display='none';");
		}
	}
}

// 공통 파일 업로드 함수 ==========================================================================================================
function popFileUpload(keyword) {
	open_win_center('http://file1.imtel.com/file_upload.do?flag=defaultUpload&keyword=' + keyword,'','474','279');
	return true;
}
function popFileUploadLocal(keyword) {
	open_win_center('http://biz.imtel.com/file_upload.do?flag=defaultUpload&keyword=' + keyword,'','474','279');
	return true;
}
function popFileUploadLan(keyword, lan) {
	if( lan == null ) {
		lan = "";
	}
	open_win_center('http://file1.imtel.com/file_upload.do?flag=defaultUpload&keyword=' + keyword + '&lan=' + lan,'','474','279');
	return true;
}
function popFileUPnDel(keyword, delPath) {
	open_win_center('http://file1.imtel.com/file_upload.do?flag=defaultUpload&keyword=' + keyword + '&subFlag=delete&delFilePath=' + delPath,'','474','279');
	return true;
}

function popFileDelete(filePath) {
	//ex )  popFileDelete("/webfile/etc/20074/tjxnrxddeec.jpg");
	open_win_center('http://file1.imtel.com/file_upload.do?flag=delete&filePath='+filePath, '', '474', '279');
	return true;
}

function quietFileDelete(filePath) {
	//ex )  popFileDelete("/webfile/etc/20074/tjxnrxddeec.jpg");
	ifrm = document.getElementById("ifrmSubmit").contentWindow;
	ifrm.location.href='http://file1.imtel.com/file_upload.do?flag=quietdelete&filePath='+filePath;
	ifrm.close();
	return true;
	
}

// 메뉴이동함수
function menuMove(url, tilesFlag){
	//alert("url="+ url+"||tilesFlag="+ tilesFlag);
	var tileFrm = document.menuMoveForm;
	tileFrm.tilesFlag.value=tilesFlag;
	tileFrm.action = url;
	tileFrm.submit();
}
function menuNewWindow(url, tilesFlag){
	//alert("url="+ url+"||tilesFlag="+ tilesFlag);
	var tileFrm = document.menuMoveForm;
	tileFrm.tilesFlag.value=tilesFlag;
	tileFrm.target= "_blank";
	tileFrm.action = url;
	tileFrm.submit();
}
// link function :  member Modify   and    docuemntWirte. Form memberModify(top define)
// flag values === > update : 정보 수정   pwd : 패스워드 변경
function goMemberLink(flag, option) {
	var frm = document.memberModify;
	if( option	!= null || option != "" ) {
		frm.action="member.do";
		frm.target="_blank";
		frm.memberFlag.value=flag;
		frm.submit();
	} else {
		frm.action="member.do";
		frm.memberFlag.value=flag;
		frm.submit();
	}
}

// -- 커뮤니티 -- //
// 유저 정보 보기 팝업 띄우기
function popUserInfo(clientUid){
	open_win_center("/mem_pop_myinfo.do?clientUid="+clientUid, "", 508, 200);
}
function popUserInfoId(clientId){
	open_win_center("/mem_pop_myinfo.do?clientId="+clientId, "", 508, 200);
}

