<!--
//var layoutBaseUrl = "/mLogger/html";


var nn4 = (document.layers) ? true : false;
var ie  = (document.all) ? true : false;
var bDom = (document.getElementById && !document.all) ? true : false;

// function.inc 에서도 전화번호
function writePhone() { document.write( "02-6919-5555" ); }
function writePhoneSolution() { document.write( "02-6919-5511" ); }
function writeFax() { document.write( "02-6919-5599" ); }
function writeZipcode() { document.write( "135-010" ); }
function writeAddr() { document.write( "서울시 강남구 논현동 38-1번지 조광빌딩1층" ); }
function writeAddrEng() { document.write( "1F Chokwang Bldg., Nonhyun-dong 38-1, Kangnam-gu Seoul, Republic of Korea(S.Korea)" ); }
function writeCompanyEng() { document.write( "BizSpring Inc." ); }
function writeCompany() { document.write( "(주)비즈스프링" ); }
function writeCopyYear() { var cDate = new Date(); var currentYear = (document.all)?(cDate.getYear()):(cDate.getFullYear()); document.write( "2002-" + currentYear ); }
function writeCeo() { document.write( "대표 구자훈" ); }
function writePrivate() { document.write( "이철승 팀장" ); }
function writeEmail() { document.write( "service@bizspring.co.kr" ); }
function writeEmailLogger() { document.write( "service@logger.co.kr" ); }
function writeEmailBizmailer() { document.write( "cs@bizmailer.co.kr" ); }
function writeEmailAdmonster() { document.write( "svc@admonster.co.kr" ); }
function writeEmailEdu() { document.write( "edu@bizspring.co.kr" ); }
function writeEmailConsult() { document.write( "consult@bizspring.co.kr" ); }
function writeEmailSales() { document.write( "sales@bizspring.co.kr" ); }
function writeEmailMarketing() { document.write( "mkt@bizspring.co.kr" ); }
function writeRecord1() { document.write( "120-86-63550" ); }
function writeRecord2() { document.write( "제3300호" ); }

// 새로추가( 기존 Logger에서 )
function writeMailAddr( emailAddr ){
    mailAddr = emailAddr + "@" + "logger.co.kr";
    document.write( "<a href=mailto:" + mailAddr +">" + mailAddr + "</a>" );
}
function writeMailAddr2( emailAddr ){
    mailAddr = emailAddr + "@" + "bizspring.co.kr";
    document.write( "<a href=mailto:" + mailAddr +">" + mailAddr + "</a>" );
}
function writeMailAddrWhite( emailAddr ){
    mailAddr = emailAddr + "@" + "logger.co.kr";
    document.write( "<a href='mailto:" + mailAddr +"' class='white'><font color='white'>" + mailAddr + "</font></a>" );
}


// contents
function writeSave() { document.write( "3년" ); }
function writeUpdata() { document.write( "1시간" ); }
function writeBank() { document.write( "신한은행 476-01-006822 (주)비즈스프링" ); }
function writeBank1() { document.write( "신한은행 476-01-006822" ); }
function writeBank2() { document.write( "**" ); }
function writeBank3() { document.write( "**" ); }


//Logger menu Over
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/* openPOP */
function openPop( URL, name, popWidth, popHeight, scroll ) { 
		if( popWidth != 0 && popHeight != 0 ) {
			popLeft = screen.width/2 - popWidth/2; 
			popTop = screen.height/2 - popHeight/2; 
		} else {
			popWidth = screen.width-12;
			popHeight = screen.height-100;
			popLeft = 0; 
			popTop = 0; 
		}

		//popLeft = 0;
		//popTop = 0;
		option = 'width='+popWidth+',height='+popHeight+',toolbar=0,locationbar=0,status='+scroll+',menubar=0,scrollbars='+scroll+',resizable=1,top='+popTop+',left='+popLeft; 
		win = window.open( URL, name, option ); 
		win.focus();
		//return win; 
}

// flash tag to javascript 
function draw_flash(para, width, height){
	var param = encodeURI(para);
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=" + width + " HEIGHT=" + height + "><PARAM NAME=movie VALUE=" + param + "> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor VALUE=#FFFFFF> <PARAM NAME=wmode VALUE=Transparent><EMBED src="+param+" loop=false menu=false quality=best bgcolor=#FFFFFF wmode=Transparent  WIDTH=" + width + " HEIGHT=" + height + " TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"https://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>");
}


/* jump menu */
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if( selObj.options[selObj.selectedIndex].value+""  != "" ) 
	  window.open( selObj.options[selObj.selectedIndex].value );
  if (restore) selObj.selectedIndex=0;
}
//function MM_jumpMenu(targ,selObj,restore){ //v3.0
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//  if (restore) selObj.selectedIndex=0;
//}


// Object Control
function showIdObj( idname ) {
	var layerObject = document.getElementById(idname);
	layerObject.style.visibility = "visible";
}

function hideIdObj( idname ) {
	var layerObject = document.getElementById(idname);
	layerObject.style.visibility = "hidden";
}




/* start of balloon text for input help */
/* 과거 이용하던 마우스커서를 따라다니는 풍선도움말은 삭제함  - 2010/01 */
// div balloon 을 공유할 경우 문제발생하여 분리됨.
// exyjs 모듈을 부분적으로 이용하였음.
// 연속된 input box에서 이전 항목을 마우스로 클릭할 수 있도록 하기 위해 mouse over시 숨겨버림. over 시 마우스의 위치가 공교롭게 div 위일때 작동하는 경우(FF)가 있어서, onMouseMove로 하였음.
document.writeln('<div id=\"inputHelpBalloon\" class=\"layerBalloon\" onMouseMove=\"hideBalloonInp()\"></div>');

function	balloonInnerText( SlayerName, Sstring ){
	var layerObject = document.getElementById(SlayerName);
	layerObject.innerHTML = Sstring;
}

function	showBalloon( SlayerName ) {
    showIdObj( SlayerName );
}

function	hideBalloon( ) {
    hideIdObj( 'balloon' );
}

function	shBalloonInp( balloonString, inputObj ){
	// 도움말 말풍선은 500px가 넘지 않도록 문구를 입력할 것.
	var contentsString = "";
	if( balloonString.replace(/ /gi, "")  != "" ) {
		contentsString = contentsString + '<table border="0" cellspacing="0" cellpadding="0"><tr><td width="3" height="3"><img src="/images/200805/msgbox_01.gif" width="3" height="3"></td><td style="background-image: url(/images/200805/msgbox_02.gif); background-repeat: no-repeat; background-position: left top;"></td><td width="4" height="3"><img src="/images/200805/msgbox_03.gif" width="4" height="3" ></td></tr><tr><td background="/images/200805/msgbox_04.gif"></td><td style="color: #222233; background-color:#feffd7;padding:5px; font-family: Dotum; ">';
		contentsString = contentsString + balloonString + '</td><td background="/images/200805/msgbox_06.gif"></td></tr><tr><td width="3" height="8"><img src="/images/200805/msgbox_07.gif" width="3" height="8" ></td><td style="background-image:url(/images/200805/msgbox_08.gif); background-position:left; background-repeat:no-repeat"></td><td width="4" height="8"><img src="/images/200805/msgbox_09.gif" width="4" height="8" ></td></tr></table>';
	}
	showBalloonTextInp( 'inputHelpBalloon', contentsString, inputObj);
}

function showBalloonTextInp( SlayerName, contentsString, inputObj ) {
	var left;
  	var top;

	// 도움말이 있을 경우 말풍선 도움말 보여준다.
	if( contentsString.replace(/ /gi, "")  != "" ) {

		balloonInnerText( SlayerName, contentsString );

		var objX = Ext.get(inputObj).getX();
		var objY = Ext.get(inputObj).getY();

		var ballWidth = Ext.get(SlayerName).getWidth();
		var ballHeight = Ext.get(SlayerName).getHeight();

		// input 항목 입력시 마우스의 겹쳐짐으로 인해 도움말 사라지지 않도록 추가여백을 3px정도 추가함.
		Ext.get(SlayerName).setLeftTop( objX, objY - ballHeight - 3 );

		showBalloon( SlayerName );
		setTimeout( 'showDivSafe( "'+SlayerName+'" );', 5 );

	}
	// inputObj 의 테두리등 강조 ( 입력 type 이 문자열인 경우 ), FF의 selectbox는 변형되어 적용하지 않음.
	//alert( inputObj.tagName + ":" + inputObj.type );
	var objType = "";
	try{ objType =  inputObj.type.toUpperCase() } catch(e){ ; }
	if( objType == "TEXT" || objType == "TEXTAREA" ) {
		inputObj.style.border = "2px solid #00AAFF";
		inputObj.style.padding = "1px";
	}
	//if( inputObj.type.toUpperCase() == "SELECT-ONE" ) {
	//	inputObj.style.background = "#FFFFEE";
	//}
}

function	hideBalloonInp( inputObj ) {

	hideIdObj( 'inputHelpBalloon' );	// 무조건 수행.
	hideDivSafe();

	var objType = "";
	try{ objType =  inputObj.type.toUpperCase() } catch(e){ ; }
	if( objType == "TEXT" || objType == "TEXTAREA" ) {
		inputObj.style.border = "1px solid #AAAAAA";
		inputObj.style.padding = "2px";
	}
	//if( inputObj.type.toUpperCase() == "SELECT-ONE" ) {
	//	inputObj.style.background = "#FFFFFF";
	//}
}

/* end of balloon text for input help */


/* div & iframe control */
// 셀렉트박스와 DIV 레이어와의 문제해결. 테스트시 layerBack 의 background-color: red; 적용시 편리.
document.writeln('<iframe src=\"/images/dot.gif\" id=\"layerBack\" frameborder=\"0\" style=\"z-index:900; filter:Alpha(Opacity=0); opacity: 0; top:0px; left:0px; display: ; position:absolute; border:0px; width:1px; height:1px; \"></iframe>');
function showDivSafe( divIdName ) {
	// DIV 레이어 하단에
		var objX = Ext.get(divIdName).getX();
		var objY = Ext.get(divIdName).getY();
		var ballWidth = Ext.get(divIdName).getWidth();
		var ballHeight = Ext.get(divIdName).getHeight();

		Ext.get('layerBack').setLeftTop( objX-2, objY-2 );
		Ext.get('layerBack').setWidth( ballWidth+3 );
		Ext.get('layerBack').setHeight( ballHeight+3 );

		try {
			// 이상하게 showBalloonTextInp() 일때 zindex 조정에 문제가... 다른곳에선 문제없음. 일단 주석처리.
			//alert( (typeof(divIdName)+"").toUpperCase()  );
			//if( (typeof(divIdName)+"").toUpperCase() == "OBJECT" )
			//	document.getElementById("layerBack").style.zIndex = document.getElementById(divIdName).style.zIndex - 1;
			//else
			//	document.getElementById("layerBack").style.zIndex =divIdName.style.zIndex - 1;
		} catch(e) {}

		showIdObj( "layerBack" );
}

function hideDivSafe( divIdName ) {
		// parameter ?
		hideIdObj( "layerBack" );
}
/* end of div & iframe control */


function blindUp( objIdName ) {
    var obj = document.getElementById( objIdName );
    new Effect.BlindUp(objIdName, {duration: 0.2});
}
function blindDown( objIdName ) {
    var obj = document.getElementById( objIdName );
    new Effect.BlindDown(objIdName, {duration: 0.2});
}

function toggleBlind( objIdName ) {
    var obj = document.getElementById( objIdName );

    if( obj.style.display == "none" ) {
       blindDown( objIdName );
    } else {
       blindUp( objIdName );
    }
}
//-->


