
/*** °øÅë»çÇ× ************************************************************************************/


// °øÅë_±âº»ÀÌ¹ÌÁö·Ñ¿À¹ö
function ChgImg(name,img){
	var imgUrl = "../../Images/"
	name.src = imgUrl + img;
}	

// °øÅë_HISTORICAL_PATH
function Home(){
	window.location.href = '../../';
}

// °øÅë_Å¾¹öÆ°½ºÅ©·Ñ
function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
                yButtonFrom = parseInt (DivTop.style.top, 10);
                yButtonTo   = document.body.scrollTop + document.body.clientHeight - 183;
        timeoutNextCheck = 500;
        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }
        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;
                        DivTop.style.top = parseInt (DivTop.style.top, 10) + yOffset;
             			timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;
                        DivTop.style.top = parseInt (DivTop.style.top, 10) + yOffset;
                		timeoutNextCheck = 10;
        }
        setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function OnLoad()
{
        var y;
                DivTop.style.top = document.body.scrollTop + document.body.clientHeight - 183;
                DivTop.style.visibility = "visible";
        CheckUIElements();
        return true;
}







/*** °³ÀÎ°í°´ ************************************************************************************/

// °³ÀÎ°í°´_HISTORICAL_PATH 
function Private_Home(){
	window.location.href = '../../';
}

function Private_Ins_Loan(){			//º¸Çè.´ëÃâ
	window.location.href = '../../Private/Ins_Loan/index.html';
}
function Private_Ins_Whole(){			//Á¾½Åº¸Çè
	window.location.href = '../../Private/Ins_Loan/Plan_Whole_Info.html';
}
function Private_Ins_Life(){			//¿¬±Ýº¸Çè
	window.location.href = '../../Private/Ins_Loan/Universal_Plan_Info.html';
}
function Private_Ins_Heal(){			//°Ç°­/¾Ïº¸Çè
	window.location.href = '../../Private/Ins_Loan/Power_Heal_Info.html';
}
function Private_Ins_Kid(){				//¾î¸°ÀÌº¸Çè
	window.location.href = '../../Private/Ins_Loan/Kid_plan_info.html';
}
function Private_Ins_Family(){			//»óÇØ/Á¤±âº¸Çè
	window.location.href = '../../Private/Ins_Loan/Family_Plan_Info.html';
}
function Private_Ins_Bank(){			//¹æÄ«½´¶û½º º¸Çè
	window.location.href = '../../Private/Ins_Loan/FaSon_Bank_Info.html';
}
function Private_Loan(){				//´ëÃâ¼­ºñ½º
	window.location.href = '../../Private/Ins_Loan/Apt_Loan_Info.html';
}
function Private_Cyber(){				//»çÀÌ¹öÃ¢±¸
	window.location.href = '../../Private/Cyber/Login.html';
}
function Private_Mny(){					//ÀÔÃâ±Ý¼­ºñ½º
	window.location.href = '../../Private/Cyber/Mny_Fee.html';
}


function Private_Util(){	//»óÇ°°ø½Ã½Ç
	window.location.href = '../../Private/Util/Prct_Publish_Info.html';
}


function Private_HelpDesk(){	//°í°´¼­ºñ½º
	window.location.href = '../../Private/HelpDesk/Faq_Lst.html';
}


function Private_Member(){	//È¸¿ø
	window.location.href = '../../Private/Member/Login.html';
}

function Private_About_Corp(){	//È¸»ç¼Ò°³
	window.location.href = '../../Private/About_Corp/index.html';
} 
  


// °³ÀÎ°í°´_¸ñ·Ï ·Ñ¿À¹öÄÃ·¯Á¦¾î
function PrivateOver(n){
	var obj = 'Lstrow_' + n ;
	document.all[obj].style.color = "#52A39C" ;				
	document.all[obj].style.backgroundColor = "#EFFBF7" ;					
}					
function PrivateOut(n){
	var obj = 'Lstrow_' + n ;
	document.all[obj].style.color = "#666666" ;			
	document.all[obj].style.backgroundColor = "#FFFFFF" ;							
}


/*** ±â¾÷°í°´ ************************************************************************************/

// ±â¾÷°í°´_HISTORICAL_PATH 
function Corporation_Home(){
	window.location.href = '../../';
}
function Corporation_Cyber(){
	window.location.href = '../../Corporation/Cyber/Retire_Slct.html';
}
function Corporation_HelpDesk(){
	window.location.href = '../../Corporation/HelpDesk/FAQ.html';
}
function Corporation_Ins_Loan(){			//º¸Çè.´ëÃâ
	window.location.href = '../../Corporation/Ins_Loan/Retir_Info.html';
}

// ±â¾÷°í°´_¸ñ·Ï ·Ñ¿À¹öÄÃ·¯Á¦¾î
function CorporationOver(n){
	var obj = 'Lstrow_' + n ;
	document.all[obj].style.color = "#3C94BE" ;				
	document.all[obj].style.backgroundColor = "#EEF8FC" ;					
}					
function CorporationOut(n){
	var obj = 'Lstrow_' + n ;
	document.all[obj].style.color = "#666666" ;			
	document.all[obj].style.backgroundColor = "#FFFFFF" ;							
}



/*************************************************************************************************/

/*** °ü¸®ÀÚÆäÀÌÁö ************************************************************************************/

// °ü¸®ÀÚÈ¨_HISTORICAL_PATH
function Admin_Home(){
	window.location.href = '../';
}


// È¸¿ø°ü¸®_HISTORICAL_PATH 
function Mem_Control(){
	window.location.href = '../../Admin/Member_Mng/Mem_Lst.html';
}



// »çÀÌÆ®°ü¸®_HISTORICAL_PATH 

function Site_News(){
	window.location.href = '../../Admin/Site_Mng/News_Lst.html';
}
function Site_Cont(){
	window.location.href = '../../Admin/Site_Mng/Dic_Lst.html';
}
function Site_Yun(){
	window.location.href = '../../Admin/Site_Mng/Eth_Lst.html';
}
function Site_GA(){
	window.location.href = '../../Admin/Site_Mng/GA_News_Lst.html';
}

// »çÀÌ¹öÃ¢±¸_HISTORICAL_PATH 

function Cyber_Ttol(){			//·Î±×ÀÎÅë°è
	window.location.href = '../../Admin/Cyber_Mng/Cyber_Kong_Static.html';
}

function Cyber_Mny(){			//ÀÔÃâ±Ý¼­ºñ½ºÅë°è
	window.location.href = '../../Admin/Cyber_Mng/Cyber_Mny_Static.html';

}
function Cyber_Ins(){			//º¸Çè°è¾à´ëÃâÅë°è
	window.location.href = '../../Admin/Cyber_Mng/Cyber_Agree_Static.html';
}

function Cyber_Sheet(){			//Á¦Áõ¸í¼­¹ß±Þ
	window.location.href = '../../Admin/Cyber_Mng/Cyber_Sheet_Static.html';
}

function Cyber_Poom(){			//Ç°Áúº¸ÁõÇØÁö½ÅÃ»
	window.location.href = '../../Admin/Cyber_Mng/Cyber_QLst_Static.html';
}

function Cyber_Lim(){			//ÀÔÃâ±Ý °ü¸®
	window.location.href = '../../Admin/Cyber_Mng/Cyber_MnLim_Static.html';
}

// ´ëÃâ°ü·Ã Áõ¸í¼­ ¹ß±Þ°ü¸®_HISTORICAL_PATH 

function Loan_Save(){
	window.location.href = '../../Admin/Loan_Mng/Loan_Save.html';
}

// »óÇ°°ø½Ã½Ç_HISTORICAL_PATH 

function Util_Prct(){
	window.location.href = '../../Admin/Util_Mng/Good_Prct.html';
}
function Util_Rate(){
	window.location.href = '../../Admin/Util_Mng/Mny_Rate.html';
}
function Util_Ins(){
	window.location.href = '../../Admin/Util_Mng/Aree_Wrt.html';
}
function Util_Rate_B(){
	window.location.href = '../../Admin/Util_Mng/In_RateUpdate.html';
}
function Util_Reti(){
	window.location.href = '../../Admin/Util_Mng/Retire_Rate.html';
}
function Util_Bang(){
	window.location.href = '#';
}

// ÀÌº¥Æ®°ü¸®_HISTORICAL_PATH 

function Event_Street(){
	window.location.href = '../../Admin/Event_Mng/Event_Street_Lst.html';
}
function Event_Quiz(){
	window.location.href = '../../Admin/Event_Mng/Event_Quiz_Lst.html';
}

// Ã¤¿ë°ü¸®_HISTORICAL_PATH 

function Reccruit_Rec(){
	window.location.href = '../../Admin/Reccruit_Mng/Rec_Noti_Lst.html';
}
function Reccruit_Man(){
	window.location.href = '../../Admin/Reccruit_Mng/Rec_New_ALst.html';
}
function Reccruit_Mail(){
	window.location.href = '../../Admin/Reccruit_Mng/Mail_ReUp.html';
}
function Reccruit_Ttol(){
	window.location.href = '../../Admin/Reccruit_Mng/Rec_Lst.html';
}
function Reccruit_FAQ(){
	window.location.href = '../../Admin/Reccruit_Mng/Rec_FAQ_Lst.html';
}

// ¸ðÁý°ü¸®_HISTORICAL_PATH 

function Employ_FP(){
	window.location.href = '../../Admin/Employ_Mng/Emp_FP_Lst.html';
}
function Employ_TSR(){
	window.location.href = '../../Admin/Employ_Mng/Emp_TSR_Lst.html';
}



// »çÀÌÆ®°ü¸®_¸ñ·Ï ·Ñ¿À¹öÄÃ·¯Á¦¾î
function SiteOver(n){
	var obj = 'Lstrow_' + n ;
	document.all[obj].style.color = "#52A3A0" ;				
	document.all[obj].style.backgroundColor = "#F1FBF8" ;					
}					
function SiteOut(n){
	var obj = 'Lstrow_' + n ;
	document.all[obj].style.color = "#666666" ;			
	document.all[obj].style.backgroundColor = "#FFFFFF" ;							
}

/*************************************************************************************************/





//ÅÇ3°³ ÀÌ»ó ·Ñ¿À¹öÄÃ·¯Á¦¾î(ÀÌ¹ÌÁö¸Ê)

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
preimg = newImage("../../Images/Private/Ins_Loan/Ins_Tab01.gif.gif");
preimg = newImage("../../Images/Private/Ins_Loan/Ins_Tab02.gif.gif");
preimg = newImage("../../Images/Private/Ins_Loan/Ins_Tab03.gif.gif");
preimg = newImage("../../Images/Private/Ins_Loan/Ins_Tab04.gif.gif");
preloadFlag = true;
}
}


/*************************************************************************************************/


//»õÃ¢¿­±â ÄÜÆ®·Ñ

function openNewWindow(window) {
open (window,"NewWindow","left=20, top=20, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes");
}


/*************************************************************************************************/



//¼¼ÀÚ¸®¼ö ÄÞ¸¶

function FormatNumber2(num){ 
       
        fl="" 
        if(isNaN(num)) { alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");return 0} 
        if(num==0) return num 
         
        if(num<0){ 
                num=num*(-1) 
                fl="-" 
        }else{ 
                num=num*1 
        } 
        num = new String(num) 
        temp="" 
        co=3 
        num_len=num.length 
        while (num_len>0){ 
                num_len=num_len-co 
                if(num_len<0){co=num_len+co;num_len=0} 
                temp=","+num.substr(num_len,co)+temp 
        } 
        return fl+temp.substr(1) 
} 

function FormatNumber3(num){ 
        num=new String(num) 
        num=num.replace(/,/gi,"") 
        return FormatNumber2(num) 
} 
function num_check() { 
        var keyCode = event.keyCode 
        if (keyCode < 48 || keyCode > 57){ 
                alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."+"["+keyCode+"]") 
                event.returnValue=false 
        } 
} 
/*************************************************************************************************/

