/****************************************************************************************************
제목 : sub1 , sub2 Frame 공용 JavaScript 함수 모음
----------------------------------------------------------------------------------------------------
목적 :
----------------------------------------------------------------------------------------------------
주의 :
----------------------------------------------------------------------------------------------------
POST
----------------------------------------------------------------------------------------------------
GET
----------------------------------------------------------------------------------------------------
REQUEST
----------------------------------------------------------------------------------------------------
작성자 : 고광진 (akanaka)
작성일 : 2009년 09월 07일
수정일 : 년 월 일
연락처 : akanaka@hanmail.net
****************************************************************************************************/


/**************************************************
IE 6 버전의 배경 처리
--------------------------------------------------
**************************************************/
$( document ).ready (function(){
	if ( $.browser.msie && parseInt ( jQuery.browser.version , 10 ) == 6 )
	{
		resizeBackgroundDiv () ;
		$( 'html' ).css( 'overflow-x' , 'hidden' ).css( 'padding-right' , '1em' ) ;
	}
});
$( window ).bind ( 'resize' , function(){
	if ( $.browser.msie && parseInt ( jQuery.browser.version , 10 ) == 6 )
		resizeBackgroundDiv () ;
}) ;
function resizeBackgroundDiv ()
{
	$( '.background' ).each(function( i ){			
		this.style.width	= $( document ).width() - 17 ;
	}) ;
}


/**************************************************
로그인 폼 Focus 효과
--------------------------------------------------
**************************************************/
function loginFormFocus ( obj ) 
{
	if ( obj.name == 'id' )
		obj.className	= 'inputText' ;
	else
		obj.className	= 'inputPassword marginLeft4px' ;
}


/**************************************************
로그인 폼 Blur 효과
--------------------------------------------------
**************************************************/
function loginFormBlur ( obj ) 
{
	var classText	= 'input' + UTIL.convert.cap ( obj.name ) + 'Text' ;
	if ( obj.value.length > 0 )
		return false ;	
	if ( obj.name == 'id' )
		obj.className	= 'inputText ' + classText ;
	else
		obj.className	= 'inputPassword marginLeft4px ' + classText ;
}


/**************************************************
기존 Bell포인트 내역 팝업
--------------------------------------------------
**************************************************/
function window_open(file,name,scroll,w,h,l,t) {
	if(window.osungetcprintwindow != undefined) {
		window.osungetcprintwindow.close();
	}
	osungetcprintwindow=window.open(file,name,"toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars="+scroll+",resizable=no,copyhistory=no,resizeble,width="+w+",height="+h+",left="+l+",top="+t+"");
}