//*---ÆË¾÷½ÃÀÛ---*/
function openwindow(url,winName,features) {
		if(url != ""){
			window.open(url,winName,features);
		}
}
function js_openPage(pageName)
{
	var xc = screen.availWidth/2 - 150 ;
    var yc = screen.availHeight/2 - 5 ;
	window.open(pageName,'openPageEB',"width=5 height=5 top="+yc+" left="+xc+" toolbar=no location=no status=no directories=no scrollbars=no menubar=no resizable=no");
}
//-- ÆË¾÷ OPTHION
function js_Popup(jv_url,jv_name,jv_option)
{
	window.open(jv_url,jv_name,jv_option+" location=no status=no directories=no menubar=no resizable=no");
}
function new_win(filename,p_name,s_width,s_height,s_scrol){
	var x = screen.width;
	var y = screen.height;
	var wid = (x / 2) - (s_width / 2);
	var hei = (y / 2) - (s_height / 2);

	window.open(filename, p_name, "toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=" + s_scrol + ",width=" + s_width + ",height=" + s_height + ",top=" + hei + ",left=" + wid + ",scrolbar=no"); 
}
//*---ÆË¾÷½ÃÀÛ---*/


function golink(url){
		if(url != "") location.href = url;
}
function js_move(pageName) {
	    location.href = pageName;
	    return;
}
function js_selectmove() {

	var f = document.topform;
	var key = f.quicklink.selectedIndex;

	js_move(f.quicklink[key].value);
}

//-- ÆäÀÌÁö ÇÁ¸°Æ®
function js_print(key) {
    
    var width  = '700' ;
    var height = '480' ; 
    var adjust = 3; 
    var resizable = false ;
    var scrollbar = true ;
    var winurl = '/include/admin_print.jsp?key='+key;
    var left, top;
    switch( adjust ) {
        case 1: //top left aligned
         	  	left = top = 0;
          	    break;
        case 2: //top RIGHT aligned
        		left = window.screen.availWidth - width - 10;
            	top = 0;
            	break;
        case 3: //centered
            	left = (window.screen.availWidth - width) / 2;
            	top = (window.screen.availHeight - height) / 2;
            	break;
        case 4: //bottom left aligned
            	left = 0;
            	top = window.screen.availHeight - height - 25 - 10;
              	break;
        case 5: //bottom RIGHT aligned
            	left = window.screen.availWidth - width - 10;
            	top = window.screen.availHeight - height - 25 - 10;
          		break;
     }

     var dynamic = "";
     if( adjust > 0 ) dynamic = "left=" + left + ",top=" + top;
     dynamic = dynamic + ",width=" + width + ",height=" + height;

     if( resizable ) dynamic = dynamic + ",resizable=yes";
     else dynamic = dynamic + ",resizable=no";

     if( scrollbar ) dynamic = dynamic + ",scrollbars=yes";
     else dynamic = dynamic = dynamic + ",scrollbars=no";

     printWin = window.open( winurl, 'openerPreView' , "toolbar=no," + dynamic + ",directories=no,status=no,menubar=no");	
}

//-- ´Ù¿î·Îµå ¸µÅ©
function js_download(jv_table,jv_name,jv_code) {

    var linkpass = "New/include/Download2.jsp?tb="+jv_table+"&name="+jv_name+"&code=" + jv_code;
	js_move(linkpass)

}

//*--- move ---*/
function js_movePage(jv_page) { 
        var f = document.cgiform;
        f.page.value = jv_page;
        f.submit();
}
//*--- move ---*/

    
/************************************************************************************
*  Function Name : js_dbDownload(type)
*  Description : ¿¢¼¿´Ù¿î·Îµå ÆÄÀÏÀ» È£ÃâÇÑ´Ù.
*                type - csv or xls
*  Return Value : Yes
*  usage :
************************************************************************************/
// ¹é¾÷ ´Ù¿î·Îµå ¸µÅ©
function js_dbDownload() {
    var f = document.cgiform;
    f.action = "/include/db_Download.jsp";
   	f.submit();
}

//-- µ¥ÀÌÅ¸ »èÁ¦ //-- board,notice
function js_delete(jv_No) {
    var f = document.cgiform;
    
    if (confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
	
		f.No.value = jv_No ;
		f.action = "delete_proc.jsp?delkind=del";
   		f.submit();
	
	}
}
	
/************************************************************************************
*  Function Name : js_lengthCheck()
*  Description   : ¹®ÀÚ¿­ÀÇ ±æÀÌ¸¦ Ã¼Å©ÇÏ¿© Á¤ÇÕ¼º ¿©ºÎ¸¦ ÆÇ´ÜÇÏ¿©ÁØ´Ù
*  Return Value  : True
*                  False
*  usage :         if(!js_lengthCheck(1,100,f.ar_tel_no.value,"MESSAGE",f.ar_tel_no)) return;
*                  if(!js_lengthCheck(1,100,f.ar_tel_no.value,"Message", null )) return;
*                  if(!js_lengthCheck(1,100,f.ar_tel_no.value,null, null )) return;
************************************************************************************/
function js_lengthCheck(min,max,data,strErrMessage,focus) {
    var count = 0;
    for ( var i=0; i < data.length; i++ ) {
        if( data.charCodeAt(i) < 127 )
            count++;
        else
            count = count + 2;
    }

    if ((count >= min) && (count <= max) ) return true;

    if ( strErrMessage != null  ) alert( strErrMessage );

    if ( focus != null ) {
        focus.focus();
        focus.select();
    }

    return false;
}


/************************************************************************************
*  Function Name : js_blankCheck()
*  Description   : °ø¹éÀ» Ã¼Å©ÇØ¼­ µ¥ÀÌÅ¸°¡ ¾øÀ¸¸é false¸¦ returnÇÑ´Ù.
*  Return Value  : True
*                  False
*  usage :         if(!js_blankCheck(f.ar_tel_no.value,"MESSAGE",f.ar_tel_no)) return;
************************************************************************************/
function js_blankCheck(data,strErrMessage,focus) {
    var f = document.ps_form;    
    if ( data != '' ) return true;
    if ( strErrMessage != null  ) alert( strErrMessage );
    if ( focus != '' ) {
        focus.focus();
    }
    return false;
}

/************************************************************************************
*  Function Name : js_isTypeCheck()
*  Description : DataÀÇ TypeÀ» Ã¼Å©ÇÏ¿©ÁØ´Ù
*  Return Value : Yes
*  usage :         if(!js_isTypeCheck("AN",f.ar_tel_no.value,"MESSAGE",f.ar_tel_no)) return;
*                  if(!js_isTypeCheck("AN",f.ar_tel_no.value,"Message", null )) return;
*                  if(!js_isTypeCheck("AN",f.ar_tel_no.value,null, null )) return;
************************************************************************************/
function js_isTypeCheck(type,data,strErrMessage,focus) {
    var count=0;
    var bSwitch = true;

    switch (type.toUpperCase()) {
        case 'F' : //½Ç¼öÃ¼Å©...
            data = js_removeComma(data);    //ÄÞ¸¶Á¦°Å
            var Dotcount = 0;
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) == 46 ) {
                    Dotcount++;
                    if ( Dotcount > 1 ){ //µµÆ®°¡ µÎ¹øÀÌ»ó Ç¥±â µÇ¾ú´ÂÁöÈ®ÀÎÇÏ´Ù.
                        bSwitch = false;
                        break;
                    }

                    if(i == 0 ) {    //µµÆ®°¡ ¸Ç¾Õ¿¡ ¿ÀÁö ¾Ê¾Ò´ÂÁö È®ÀÎÇÑ´Ù.
                        bSwitch = false;
                        break;
                    }
                }
                else {
                    if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) {
                        bSwitch = false;
                        break;
                    }
                }
            }
            break;
        case 'FLOAT' :
        //Return number value ¼ýÀÚ,µµÆ® ÀÌ¿Ü ¹®ÀÚ´Â ÀÚ¸§
        //»ç¿ë¹ý : onkeyup="js_isTypeCheck('FLOAT',this,null,null)"
            var nRtn="";
            var sData = data.value;
            var Dotcount = 0;
            for ( var i=0; i < sData.length; i++ ) {
                if ( (sData.charCodeAt(i) > 47 && sData.charCodeAt(i) < 58) || sData.charCodeAt(i) == 46) {
                    if ( sData.charCodeAt(i) == 46 ) {  // µµÆ®°¡ ÀÔ·ÂµÇ¾úÀ» °æ¿ì
                        Dotcount++;
                        if ( Dotcount > 1 ){ //µµÆ®°¡ µÎ¹øÀÌ»ó Ç¥±â µÇ¾ú´ÂÁöÈ®ÀÎÇÏ´Ù.
                            break;
                        }

                        if(i == 0 ) {    //µµÆ®°¡ ¸Ç¾Õ¿¡ ¿ÀÁö ¾Ê¾Ò´ÂÁö È®ÀÎÇÑ´Ù.
                            break;
                        }
                    }
                    nRtn = nRtn+sData.charAt(i);
                }
            }
            data.value = nRtn;
            return;
            break;
        case 'N' : //Number ASCII Code 48 ~ 57
            data = js_removeComma(data);    //ÄÞ¸¶Á¦°Å
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) {
                    bSwitch = false;
                    break;
                }
            }
            break;
        case 'NUM' :
        //Return number value ¼ýÀÚÀÌ¿Ü ¹®ÀÚ´Â ÀÚ¸§
        //»ç¿ë¹ý : onkeyup="js_isTypeCheck('NUM',this,null,null)"
            var nRtn="";
            var sData = data.value;
            var zeroCount = 0;
            for ( var i=0; i < sData.length; i++ ) {
                if ( sData.charCodeAt(i) > 47 && sData.charCodeAt(i) < 58) {
                    if ( sData.charCodeAt(i) == 48 ) {  //zero°¡ ÀÔ·ÂµÇ¾úÀ» °æ¿ì
                        zeroCount++;
                        if( i == 0 ) {    //zero°¡ ¸Ç¾Õ¿¡ ¿ÀÁö ¾Ê¾Ò´ÂÁö È®ÀÎÇÑ´Ù.
                            break;
                        }
                    }
                    nRtn = nRtn+sData.charAt(i);
                }
            }
            data.value = nRtn;
            return;
            break;
        case 'NH' : //Number(48~57) + Hippen( 45 )
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) != 45 ) {
                    if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57){
                        bSwitch = false;
                        break;
                    }
                }
            }
            break;
        case 'A' : //Alphabetic(65~90)
            data = data.toUpperCase()
            for ( var i=0; i < data.length; i++ ) {
                if (( data.charCodeAt(i) < 65 || data.charCodeAt(i) > 90 ) && ( data.charCodeAt(i) != 32)) {
                        bSwitch = false;
                        break;
                }
            }
            break;
        case 'AN' : //AlphaNumeric
            data = data.toUpperCase()
            for ( var i=0; i < data.length; i++ ) {
                if (( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) && ( data.charCodeAt(i) != 32)) {
                    if ( data.charCodeAt(i) < 65 || data.charCodeAt(i) > 90 ) {
                        bSwitch = false;
                        break;
                    }
                }
            }
            break;
        case 'ADH' : //Alphabetic( 65~90) + µµÆ®(46) + Hippen(45) + °ø¹é(32)
            data = data.toUpperCase()
            for ( var i=0; i < data.length; i++ ) {
                if ( (data.charCodeAt(i) < 65 && data.charCodeAt(i) != 45 && data.charCodeAt(i) != 46 && data.charCodeAt(i) != 32) || (data.charCodeAt(i) > 90 && data.charCodeAt(i) != 45 && data.charCodeAt(i) != 46 && data.charCodeAt(i) != 32) ) {
                    bSwitch = false;
                    break;
                }
            }
            break;
        case 'ENG' : //Only English ¼ýÀÚ Æ÷ÇÔ
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) > 127  ) {
                    bSwitch = false;
                    break;
                }
            }
            break;
        case 'KOR' : //Only Korean
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) < 0xAC00 || data.charCodeAt(i) > 0xD7A3){
                    if (( data.charCodeAt(i) < 12593 || data.charCodeAt(i) > 12643 ) && ( data.charCodeAt(i) != 32)) {
                        bSwitch = false;
                        break;
                    }
                }
            }
            break;
        case 'B' : //Blank ¹®ÀÚ¿­Áß ºó°ø¹é Ã¼Å© ¸¶Áö¸·ÀÌ °ø¹éÀÌ¶óµµ false
            for( var i=0; i<data.length; i++) {
                if ( data.charCodeAt(i) == 32 ) {
                    bSwitch = false;
                    break;
                }
            }
            break;
        case 'E' : //Empty ºñ¾îÀÖ´Â ¹®ÀÚ¿­ Ã¼Å© SPACE¸¸ µé¾î ¿Â°æ¿ì Ã¼Å©
            if( data.length < 1 ) {
                bSwitch = false;
                break;
            }

            for( var i=0; i<data.length; i++) {
                if ( data.charCodeAt(i) == 32 ) count++;
            }

            if ( count == data.length ) bSwitch = false;

            break;
        
        
        case 'EMAIL' : //EMAIL Check
           
            if (data.indexOf('@', 0) == -1) bSwitch = false;
		 	break;
		 	
        case 'SSN' : // ÁÖ¹Îµî·Ï¹øÈ£Ã¼Å©
            if ( data.length != 13 ) {
                bSwitch = false;
                break;
            }
            var sum_1 = 0;
            var sum_2 = 0;
            var at = 0;
            sum_1 = (data.charAt(0)*2)+(data.charAt(1)*3)+(data.charAt(2)*4)+(data.charAt(3)*5)+(data.charAt(4)*6)+(data.charAt(5)*7)+(data.charAt(6)*8)+(data.charAt(7)*9)+(data.charAt(8)*2)+(data.charAt(9)*3)+(data.charAt(10)*4)+(data.charAt(11)*5);
            sum_2 = sum_1%11;

            if (sum_2 == 0) {
                at = 10;
            }
            else {
                if (sum_2 == 1) {
                    at = 11;
                }
                else {
                    at = sum_2;
                }
            }

            att = (11-at);

            if (data.charAt(12) != att) bSwitch = false;

            break;
        case 'DATE' : // DATE Check Input : YYYYMMDD
            if( data.length != 8 ) {
                bSwitch = false;
                break;
            }

            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) {
                    bSwitch = false;
                    break;
                }
            }

            var strYear = data.substr(0, 4);
            var strMonth = data.substr(4, 2);
            var strDay = data.substr(6, 2);
            LastDay = new Array(31,28,31,30,31,30,31,31,30,31,30,31);

            if ( strYear < 1900 ) {
                bSwitch = false;
                break;
            }

            if ((strYear % 4 == 0) && (strYear % 100 != 0) || (strYear % 400 == 0)) {
                LastDay[1] = 29;
            }

            if ((strMonth <= 0) || (strMonth > 12)) {
                bSwitch = false;
                break;
            }

            if ((strDay > LastDay[strMonth-1]) || (strDay <= 0)) {
                bSwitch = false;
            }
            break;
        case 'YYYYMM' : // DATE Check Input : YYYYMM
            if( data.length != 6 ) {
                bSwitch = false;
                break;
            }

            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) {
                    bSwitch = false;
                    break;
                }
            }

            var strYear = data.substr(0, 4);
            var strMonth = data.substr(4, 2);

            if ( strYear < 1900 ) {
                bSwitch = false;
                break;
            }

            if ((strMonth <= 0) || (strMonth > 12)) {
                bSwitch = false;
                break;
            }

            break;
        case 'YYYY' : // DATE Check Input : YYYY
            if( data.length != 4 ) {
                bSwitch = false;
                break;
            }

            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) {
                    bSwitch = false;
                    break;
                }
            }

            var strYear = data;

            if ( strYear < 1900 ) {
                bSwitch = false;
                break;
            }

            break;
        case 'TEL' : // Phone Number Check
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charCodeAt(i) != 45 ) {
                    if ( data.charCodeAt(i) < 48 || data.charCodeAt(i) > 57) {
                        bSwitch = false;
                        break;
                    }
                }
            }

            if( bSwitch ) {
                if( data.length < 7 || data.length > 13 ) bSwitch = false;
            }
            break;
        case 'SQ' : // Single Quotation Check
            for ( var i=0; i < data.length; i++ ) {
                if ( data.charAt(i) == "'" ) {
                    bSwitch = false;
                    break;
                }
            }
            break;
    }
    //Á¤»óÀûÀÌ¸é
    if (bSwitch) return true;

    //ºñÁ¤»óÀûÀÎ °æ¿ì ¸Þ¼¼Áö°¡ ÀÖ´Â °æ¿ì
    if ( strErrMessage != null  ) alert( strErrMessage );

    if ( focus != null ) {
        focus.focus();
        focus.select();
    }

    return false;
}


/************************************************************************************
*  Function Name : js_moneyCheck()
*  Description : ¼ýÀÚ,¸¶ÀÌ³Ê½º,µµÆ®¸¸ ÀÔ·Â¹Þ´Â´Ù.
*                onkeypress Event¿¡¼­ »ç¿ë
*  Return Value : Yes
*  usage :   <input type=text name=money value='' size=25 maxlength=15 class=input2
*                   onkeypress='js_moneyCheck()'>
************************************************************************************/
function js_moneyCheck() {
    // ie¿¡¼­¸¸ ÀÛµ¿ (45:¸¶ÀÌ³Ê½º(-), 46:µµÆ®(.))
    var keyCode = event.keyCode;
    if ( (keyCode > 47 && keyCode < 58) || keyCode == 45 || keyCode == 46 ) {
    }
    else {
//          alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."+"["+keyCode+"]")
         event.returnValue=false;
     }
 }
 
 
 /************************************************************************************
 *  Function Name : js_getRadioChecked(obj, msg)
 *  Description : radio¹öÆ°ÀÇ Ã¼Å©¿©ºÎ¸¦ ¾Ë·ÁÁØ´Ù.
 *                radio¹öÆ°ÀÇ ¿ÀºêÁ§Æ® ÀÌ¸§À» ¹Þ¾Æ¼­ »ç¿ëÇÑ´Ù.
 *                radio¹öÆ°À» ¹è¿­·Î ¼±¾ðÇßÀ» °æ¿ì¿¡ »ç¿ëÇÑ´Ù.(php¿¡¼­ »ç¿ë)
 *  Return Value : Yes
 *  usage :  if ( !js_getRadioChecked('arr_radio[]') ) return;
 ************************************************************************************/
 function js_getRadioChecked(obj, msg) {
     var f = document.ps_form;
     if ( obj == null ) obj = 'arr_radio[]';
     if ( msg == '' ) msg = "¼±ÅÃµÈ ·¹ÄÚµå°¡ ¾ø½À´Ï´Ù.";     
     for (i=0; i<f.elements.length; i++) {
         if(f.elements[i].name == obj && f.elements[i].checked==true && f.elements[i].type=='radio'){
             return true;
             break;
         }
     }
     alert(msg);
     return false;
 }
 
 /************************************************************************************
 *  Function Name : js_setRadioChecked(insTan,item,itemVal)
 *  Description : insTan  f.object
 *                item    object 
 *                itemVal ¼±ÅÃµÆ´ø°ª(µðºñ¿¡ ÀúÀåµÈ°ª)
 *  Return Value : true
 *  usage :  if ( !js_setRadioChecked('arr_radio[]') ) return;
 ************************************************************************************/ 
 function js_setRadioChecked(insTan,item,itemVal) {    
     for (i=0; i<insTan.length; i++){
         if(insTan[i].name == item && insTan[i].type=='radio' && insTan[i].value==itemVal){
             insTan[i].checked=true;
             return true;
             break;
         }
     }
     insTan[0].checked=true;
     return false;
 } 

/************************************************************************************
 *  Function Name : js_getSelectChecked(obj, msg)
 *  Description : Select ¹Ú½ºÀÇ ¼±ÅÃ¿©ºÎ¸¦  ¾Ë·ÁÁØ´Ù.
 *                Select ¹Ú½ºÀÇ ¿ÀºêÁ§Æ® ÀÌ¸§À» ¹Þ¾Æ¼­ »ç¿ëÇÑ´Ù.
 *  Return Value : Yes
 *  usage :  if ( !js_getSelectChecked('selet1name') ) return;
 ************************************************************************************/
 function js_getSelectChecked(field, msg) {
     
     if ( msg == '' ) msg = "¼±ÅÃµÈ ·¹ÄÚµå°¡ ¾ø½À´Ï´Ù.";
	
     if(field.selectedIndex == 0) {
     	alert( msg );
     	field.focus();
     	return false;
     }
     return true;
 }
	

     

/************************************************************************************
 *  Function Name : js_getChecked(obj)
 *  Description : Ã¼Å©¹Ú½ºÀÇ Ã¼Å©¿©ºÎ¸¦ ¾Ë·ÁÁØ´Ù.
 *                Ã¼Å©¹Ú½º ¿ÀºêÁ§Æ® ÀÌ¸§À» ¹Þ¾Æ¼­ »ç¿ëÇÑ´Ù.
 *                php¿¡¼­´Â Ã¼Å©¹Ú½º¸¦ ¹è¿­·Î ¼±¾ðÇØ¾ß submit ÆäÀÌÁö¿¡¼­ ¹è¿­·Î ¹ÞÀ» ¼ö ÀÖ´Ù.
 *  Return Value : Yes
 *  usage :  if ( !js_getChecked('arr_chk[]') ) return;
 ************************************************************************************/
 function js_getChecked(obj) {
     if ( obj == null ) obj = 'arr_chk[]';

     var cnt = 0;
     var elementName = eval("document.cgiform['"+obj+"']");
     var elementSize = elementName.length;
     if( elementSize ) {    // ¿©·¯°ÇÀÏ¶§...
         for( i=0; i<elementSize; i++ ) {
             if( elementName[i].checked ) {
                 cnt = cnt + 1;
             }
         }

         if( cnt == 0 ) {
             alert("¼±ÅÃµÈ ·¹ÄÚµå°¡ ¾ø½À´Ï´Ù.");
             return false;
         }
     }
     else { // ÇÑ°ÇÀÏ¶§...
         if( !elementName.checked ) {
             alert("¼±ÅÃµÈ ·¹ÄÚµå°¡ ¾ø½À´Ï´Ù.");
             return false;
         }
     }
     return true;
 }

/************************************************************************************
 *  Function Name : js_checkAllOnOff(obj)
 *  Description : Ã¼Å©¹Ú½º ÀüÃ¼¼±ÅÃ/ÇØÁ¦(Åä±Û±â´É)
 *                Ã¼Å©¹Ú½º ¿ÀºêÁ§Æ® ÀÌ¸§À» ¹Þ¾Æ¼­ »ç¿ëÇÑ´Ù.
 *                php¿¡¼­´Â Ã¼Å©¹Ú½º¸¦ ¹è¿­·Î ¼±¾ðÇØ¾ß submit ÆäÀÌÁö¿¡¼­ ¹è¿­·Î ¹ÞÀ» ¼ö ÀÖ´Ù.
 *  Return Value : Yes
 *  usage : <a href="javascript:js_checkAllOnOff('arr_chk[]')"><img src="ico_allselect.gif" height="11" border=0></a>
 ************************************************************************************/
 var select_flag = false;
 function js_checkAllOnOff(obj) {
     if ( obj == null ) obj = 'arr_chk[]';

     if ( !select_flag ) {
         value = true;
         select_flag = true;
     }
     else {
         value = false;
         select_flag = false;
     }

     var elementName = eval("document.cgiform['"+obj+"']");
     var elementSize = elementName.length;
     if( elementSize ) {    // ¿©·¯°ÇÀÏ¶§...
         for( i=0; i<elementSize; i++ ) {
             elementName[i].checked = value;
         }
     }
     else { // ÇÑ°ÇÀÏ¶§...
         elementName.checked = value;
     }
 }

/************************************************************************************
 *  Function Name : js_checkOne(obj)
 *  Description : Ã¼Å©¹Ú½º ÇÏ³ª¸¸ ¼±ÅÃ
 *                Ã¼Å©¹Ú½º ¿ÀºêÁ§Æ® ÀÌ¸§À» ¹Þ¾Æ¼­ »ç¿ëÇÑ´Ù.
 *                Ã¼Å©¹Ú½º¸¦ ¹è¿­·Î ¼±¾ðÇßÀ» °æ¿ì¿¡ »ç¿ëÇÑ´Ù.(php¿¡¼­ »ç¿ë)
 *  Return Value : Yes
 *  usage : <input type=checkbox name=arr_chk[] value='0' onclick="javasript:js_checkOne('arr_chk[]')">
 ************************************************************************************/
 function js_checkOne(obj) {
     var f = document.forms[0];
     var cnt = 0;
     if ( obj == null ) obj = 'arr_chk[]';

     for (i=0; i<f.elements.length; i++) {
         if(f.elements[i].checked==true && f.elements[i].type=='checkbox'){
             cnt = cnt + 1;
             if( cnt > 1 ){
                 alert('Áßº¹ÇØ¼­ ¼±ÅÃÇÒ ¼ö ¾ø½À´Ï´Ù');
                 f.elements[i].checked = false;
                 break;
             }
         }
     }
 }

/************************************************************************************
 *  Function Name : js_checkFileType(obj)
 *  Description : ¾÷·Îµå °¡´É ÆÄÀÏ Å¸ÀÔ Ã¼±×
 *                file¹Ú½º¸¦ ¹è¿­·Î ¼±¾ðÇßÀ» °æ¿ì¿¡ »ç¿ëÇÑ´Ù.(php¿¡¼­ »ç¿ë)
 *  Return Value : Yes
 *  usage :        if(!js_checkFileType()) return;
 ************************************************************************************/
 function js_checkFileType(obj) {
     var f = document.forms[0];
     if ( obj == null ) obj = 'upload_file[]';

     for(i=0; i<f.elements.length; i++) {
         if (f.elements[i].name == obj && f.elements[i].value.match(/\.(php|php3|php4|inc|html|htm|js)$/i)) {
             alert("¾÷·Îµå¸¦ Áö¿øÇÏÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù.");
             return false;
             break;
         }
     }
     return true;
 }

/************************************************************************************
 *  Function Name : js_enterKeyDisable()
 *  Description : ÀÔ·Â¹Ú½º¿¡¼­ EnterÅ°¸¦ ÀÔ·ÂÇßÀ» °æ¿ì disable ½ÃÅ²´Ù.
 *  Return Value :
 *  usage : <input type=text name=ar_txt onkeydown='js_enterKeyDisable()'>
 ************************************************************************************/
 function js_enterKeyDisable(){
     if( event.keyCode == 13 ){
         event.returnValue = false;
     }
 }

/************************************************************************************
 *  Function Name : js_strToUpper()
 *  Description : ÀÔ·Â¹ÞÀº ¹®ÀÚ Áß ¿µ¹® ¼Ò¹®ÀÚ¸¦ ´ë¹®ÀÚ·Î º¯È¯ÇÑ´Ù.
 *                onkeypress Event¿¡¼­ »ç¿ë
 *  Return Value : Yes
 *  usage :   <input type=text name=alpha value='' size=25 maxlength=15 class=input
 *                    onkeypress="javascript:js_strToUpper()">
 ************************************************************************************/
 function js_strToUpper() {
     var key = window.event.keyCode;

     if (key == 13) {
         return false;
     }
     if (97 <= key && key <= 122) {
         window.event.keyCode = key - 97 + 65;
         str1 = window.event.keyCode;
     }
 }

/************************************************************************************
 *  Function Name : js_str_replace(sInput, sSearch, sReplace)
 *  Description : ¹®ÀÚ¿­(sInput)¿¡¼­ Æ¯Á¤¹®ÀÚ(sSearch)¸¦ ´ëÄ¡¹®ÀÚ(sReplace)·Î º¯È¯ÇÑ´Ù.
 *  Return Value : Yes
 *  usage :
 ************************************************************************************/
 function js_str_replace(sInput, sSearch, sReplace) {
     if (sInput == null || sSearch == null || sReplace == null) return "";
     var re = eval("/"+sSearch+"/g");
     return sInput.replace(re, sReplace);
 }

/************************************************************************************
 *  Function Name : js_delSQuote(str)
 *  Description : ¹®ÀÚ¿­¿¡¼­ ''¸¦ '·Î ¹Ù²Û´Ù.
 *  Return Value : Yes
 *  usage :
 ************************************************************************************/
 function js_delSQuote(str) {
     if (str == null || str == "") return "";
     var re = /''/g;
     return str.replace(re, "'");
 }

/************************************************************************************
 *  Function Name : js_encodeSpecial(str)
 *  Description : ¹®ÀÚ¿­¿¡¼­ Æ¯¼ö¹®ÀÚ¸¦ encodingÇÑ´Ù.
 *  Return Value : Yes
 *  usage :
 ************************************************************************************/
 function js_encodeSpecial(str) {
     if (str == null || str == "") return "";
     var result = "";
     result = str;
     result = js_str_replace(result, "&", "£¦");
     result = js_str_replace(result, "<", "£¼");
     result = js_str_replace(result, ">", "£¾");
     result = js_str_replace(result, "'", "¡Ç");
     result = js_str_replace(result, '"', '£¢');
     return result;
 }

/************************************************************************************
 *  Function Name : js_decodeSpecial(str)
 *  Description : ¹®ÀÚ¿­¿¡¼­ Æ¯¼ö¹®ÀÚ¸¦ decodingÇÑ´Ù.
 *  Return Value : Yes
 *  usage :
 ************************************************************************************/
 function js_decodeSpecial(str) {
     if (str == null || str == "") return "";
     var result = "";
     result = str;
     result = js_str_replace(result, "£¦", "&");
     result = js_str_replace(result, "£¼", "<");
     result = js_str_replace(result, "£¾", ">");
     result = js_str_replace(result, "¡Ç", "'");
     result = js_str_replace(result, "''", "'");
     result = js_str_replace(result, '£¢', '"');
     return result;
 }

/************************************************************************************
 *  Function Name : js_editSpecial(str)
 *  Description : ÀÔ·Â³­¿¡¼­ Æ¯¼ö¹®ÀÚ¸¦ ÀÎ½ÄÇÏ°Ô ¹Ù²Û´Ù.
 *  Return Value : Yes
 *  usage :
 ************************************************************************************/
 function js_editSpecial(str) {
     if (str == null || str == "") return "";
     var result = "";
     result = str;
     result = js_str_replace(result, "'", "&#39;");
     result = js_str_replace(result, '"', '&quot;');
     result = js_str_replace(result, "<", "&lt;");
     result = js_str_replace(result, ">", "&gt;");
     return result;
 }

/************************************************************************************
 *  Function Name : js_dateFormat(str, type)
 *  Description : yyyymmdd Æ÷¸ËÀ» type(-,/,...)¿¡ µû¶ó Æ÷¸ËÀ» ¹Ù²Û´Ù.
 *  Return Value : Yes
 *  usage :
 ************************************************************************************/
 function js_dateFormat(str, type) {
     if (str == null || type == null) return "";
     var strYear = str.substr(0, 4);
     var strMonth = str.substr(4, 2);
     var strDay = str.substr(6, 2);
     return strYear+type+strMonth+type+strDay;
 }

/************************************************************************************
*  Function Name : js_removeComma(str)
*  Description : ¹®ÀÚ¿­¿¡¼­ ,¸¦ Á¦°ÅÇÑ ÈÄ ¼ýÀÚ·Î returnÇÑ´Ù.
*  Return Value : Yes
*  usage :
************************************************************************************/
function js_removeComma(str) {
    if(str == null || str == "") return 0;
    var re = /,/g;
//        return parseInt(str.replace(re, ""));
    return str.replace(re, "");
}


/************************************************************************************
*  Function Name : js_stringToDate(str_datetime)
*  Description : yyyymmd Çü½ÄÀÇ stringÀ» date Çü½ÄÀ¸·Î º¯È¯ÇÑ´Ù.
*  Return Value : Yes
*  usage :
************************************************************************************/
function js_stringToDate(str_datetime) {
    if (str_datetime == null || str_datetime == "") return "";
    var re_date = /^(\d{4})(\d{2})(\d{2})$/;
    if (!re_date.exec(str_datetime))
        return alert("À¯È¿ÇÑ ³¯Â¥ Æ÷¸ËÀÌ ¾Æ´Õ´Ï´Ù.");
    return (new Date (RegExp.$1, RegExp.$2-1, RegExp.$3));
}

/************************************************************************************
*  Function Name : js_gapDaysCheck(str_from_date, str_to_date, maxDays)
*  Description : °Ë»ö±â°£(from~to)¿¡¼­ ÃÖ´ë °Ë»ö °¡´É ÀÏ¼ö¸¦ Ã¼Å©ÇÑ´Ù.
*  Return Value : Yes
*  usage :
************************************************************************************/
function js_gapDaysCheck(str_from_date, str_to_date, maxDays) {
    if( parseInt(str_from_date) > parseInt(str_to_date) ) {
        alert("½ÃÀÛÀÏÀÌ Á¾·áÀÏº¸´Ù Å®´Ï´Ù.");
        return false;
    }

    dt_from_date = js_stringToDate(str_from_date);
    dt_to_date   = js_stringToDate(str_to_date);
    daysLeft = (dt_to_date.getTime() - dt_from_date.getTime()) / (1000*60*60*24);

    if( parseInt(daysLeft) > parseInt(maxDays) ) {
        maxMonths = Math.round(maxDays/30);
        return false;
    }
    return true;
}


/*--- Form Check ---*/
function cs_email(str){
var emailStr = str.value
if(emailStr != ""){
	var emailPat=/^(.+)@(.+)$/
	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
	var validChars="\[^\\s" + specialChars + "\]"
	var firstChars=validChars
	var quotedUser="(\"[^\"]*\")"
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
	var atom="(" + firstChars + validChars + "*" + ")"
	var word="(" + atom + "|" + quotedUser + ")"
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	var matchArray=emailStr.match(emailPat)
	    if (matchArray==null) {
		    alert("E-mail ÁÖ¼Ò¸¦ Á¤È®È÷ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		    str.focus();
		    return false;
		}
	}
return true;	
}
/************************************************************************************
 *  Function Name : cs_isArray(inputArray)
 *  Description   : inputArray ¹è¿­¿©ºÎ Ã¼Å©
 *  Return Value  : Yes
 *  usage         :
 ************************************************************************************/
function cs_isArray(inputArray) {
	if (inputArray.length == null) {
		return false;
	}
	return true;	
}

// ¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÏ°Ô ÇÏ´Â ½ºÅ©¸³Æ®..
function onlynum(objtext1){
	var inText = objtext1.value;
	var ret;

	for (var i = 0; i < inText.length; i++) {
    ret = inText.charCodeAt(i);
		if (!((ret > 47) && (ret < 58))){
			alert("¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù.");objtext1.value = "";objtext1.focus();return false;
		}
	}
	return true;
}
// ¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÏ°Ô ÇÏ´Â ½ºÅ©¸³Æ®..
function onlyEng(objtext1) {
	var inText = objtext1.value;
	var ret;

	for (var i = 0; i < inText.length; i++) {
		ret = inText.charCodeAt(i);
		if ((ret > 122) || (ret < 48) || (ret > 57 && ret < 65) || (ret > 90 && ret < 97)) {
			alert("¿µ¹®ÀÚ¿Í ¼ýÀÚ¸¸À» ÀÔ·ÂÇÏ¼¼¿ä");objtext1.value = "";objtext1.focus();return false;
		}
	}
	return true;
}
function js_reset(){
    var f=document.ps_form;
    f.reset();
}

function checkImgFormat1(imgPath) {
	if ( imgPath.indexOf(".PNG") != -1 ||
		imgPath.indexOf(".JPG") != -1 ||
		imgPath.indexOf(".GIF") != -1 ||
		imgPath.indexOf(".png") != -1 ||
		imgPath.indexOf(".gif") != -1 ||
		imgPath.indexOf(".jpg") != -1 ) 
	{
		//document.previewImg1.src = imgPath;
	
	}else {	
		if ( imgPath != "" )
			alert("Áö¿øÇÏÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù.");      
			return false;
		}	
	}
function checkImgFormat2(imgPath) {
	if ( imgPath.indexOf(".PNG") != -1 ||
	imgPath.indexOf(".JPG") != -1 ||
	imgPath.indexOf(".GIF") != -1 ||
	imgPath.indexOf(".png") != -1 ||
	imgPath.indexOf(".gif") != -1 ||
	imgPath.indexOf(".jpg") != -1 ) 
	{
    	document.previewImg2.src = imgPath;
  	
  	}else {
    	
    	if ( imgPath != "" )
      	alert("Áö¿øÇÏÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù.");
      	return false;
  	}  	
}
function checkImgFormat3(imgPath) {
	if ( imgPath.indexOf(".PNG") != -1 ||
		imgPath.indexOf(".JPG") != -1 ||
		imgPath.indexOf(".GIF") != -1 ||
		imgPath.indexOf(".png") != -1 ||
		imgPath.indexOf(".gif") != -1 ||
		imgPath.indexOf(".jpg") != -1 ) 
	{
		document.previewImg3.src = imgPath;
	}else {
    	if ( imgPath != "" )
			alert("Áö¿øÇÏÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù.");
			return false;
	}	
}


//*--- Form Check ---*/
//*--- Form Input Item ---*/
/************************************************************************************
 *  Function Name : js_selectAdd(insTan,optItemText,optItemVal,itemVal)
 *  Description   : select Box option Ãß°¡
 *  Return Value  : Yes
 *  usage         : insTan=eval("f.Acplace["+i+"]"); 
 *  param         : insTan(°´Ã¼ÀÌ¸§)
                    optItemText(option¿¡ Ãß°¡µÉ ÅØ½ºÆ®)
                    optItemVal(option¿¡ Ãß°¡µÉ °ª)
                    itemVal(¼±ÅÃµÈ°ª)
 ************************************************************************************/
 
function js_selectAdd(insTan,optItemText,optItemVal,itemVal){	
	var s = eval(insTan);
	var i=0;
	var itemSelected="";
	var optItemArrText =optItemText.split(",");	
	var optItemArrVal ="";
	if(optItemVal!=null) optItemArrVal  =optItemVal.split(",");
    else optItemArrVal  =optItemText.split(",");
    
	for(i=0 ; i<optItemArrText.length; i++){
		s.options[i+1] = new Option(optItemArrText[i],optItemArrVal[i]);
		if(optItemArrVal[i]==itemVal) s.options[i+1].selected=true;
	}
	
}

/************************************************************************************
 *  Function Name : js_selectAdd(optItemText,optItemVal)
 *  Description   : ½ºÅ¸ÀÏ Ã³¸®µÈ select Box option Ãß°¡
 *  Return Value  : Yes
 *  usage         : insTan=eval("f.Acplace["+i+"]"); 
 *  param         : optItemText(option¿¡ Ãß°¡µÉ ÅØ½ºÆ®)                    
                    optItemVal(option¿¡ Ãß°¡µÉ °ª)                    
 ************************************************************************************/
function js_selectStyleAdd(optItemText,optItemVal,itemVal){	
	var i=0;	
	var itemSelected="";
	var optItemArrText =optItemText.split(",");	
	var optItemArrVal ="";
	var r="";
	
	if(optItemVal!=null) optItemArrVal  =optItemVal.split(",");
    else optItemArrVal  =optItemText.split(",");
            
	for(i=0 ; i<optItemArrText.length; i++){
	    if(optItemArrVal[i]==itemVal) itemSelected="selected";
	    else itemSelected="";	        
	    r += "<option value='"+optItemArrVal[i]+"' "+itemSelected+">"+optItemArrText[i]+"</option>\n";	    
	}	
	return r+"</select>";
}

/************************************************************************************
 *  Function Name : js_selectStyleSel(insTan,optItemText,optItemVal,itemVal)
 *  Description   : ½ºÅ¸ÀÏÃ³¸®µÈ select Box ¼±ÅÃµÈ°ª Ç¥½Ã
 *  Return Value  : Yes
 *  usage         : insTan=eval("f.Acplace["+i+"]"); 
 *  param         : insTan(°´Ã¼ÀÌ¸§)
                    optItemText(option¿¡ Ãß°¡µÉ ÅØ½ºÆ®)
                    optItemVal(option¿¡ Ãß°¡µÉ °ª)
                    itemVal(¼±ÅÃµÈ°ª)
 ************************************************************************************/
function js_selectStyleSel(insTan,optItemText,optItemVal,itemVal){
	var s = eval(insTan);
	var i=0;	
	var optItemArrText =optItemText.split(",");
	var optItemArrVal ="";
	
	if(optItemVal!=null) optItemArrVal  =optItemVal.split(",");
    else optItemArrVal  =optItemText.split(",");
        
	for(i=0 ; i<optItemArrText.length; i++){
	    if(optItemArrVal[i]==itemVal) s.options[i+1].selected=true;
	}
}


function js_dayAdd(sDay,eDay){
    var f=document.ps_form;
    var s="";
    var i=0;
    for(i=sDay;i<=eDay;i++){
        if(i<10) s+="0"+i+",";
        else s+=""+i+",";
    }
    return s.substr(0,s.length-1);
}

function js_nextMove(obj,insTan){
    if (obj.value.length > 5){
        //ps_form.jumin2.focus();
        insTan.focus();
        
    }
}

function js_test(){
    var f=document.ps_form;
    alert(f.elements[4].name);
}

/*
function MakeInt( val )
{
	for (var i=0; i<val.length; i++) {
		if ( val.charAt(i) != '0' ) {
			return parseInt(val.substring( i, val.length ));
		}
	}
	return 0;
}
function isDigit(val, allowable)
{
	var valid = true;
	var cmp = "0123456789" + allowable;

	for (var i=0; i<val.length; i++) {
		if (cmp.indexOf(val.charAt(i)) < 0) {
			valid = false;
			break;
		}
	}
	return valid;
}
function birthfunc( pObj )
{
	var pForm = document.signform;
	if ( pObj.value.length != 6 ) {
		alert( "ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â ¼ýÀÚ 6ÀÚ¸® ÀÔ´Ï´Ù." );	
		return false;
	}
	
	if ( !isDigit( pObj.value, '' ) ) {
		alert( "ÁÖ¹Îµî·Ï¹øÈ£´Â °ø¹é¾øÀÌ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä!" );
		pObj.focus();
		return false;
	}
	
	var str = pObj.value.length;
	
	pForm.m_birth_y.value = 1900 + parseInt(pObj.value.substring(0,2));
	pForm.m_birth_m.value = MakeInt(pObj.value.substring(2,4));
	pForm.m_birth_d.value = MakeInt(pObj.value.substring(4,6));
	
	return true;	
}
*/
//*--- Form Input Item ---*/
//*--- constant Begin ---*/
var Con_Sido  ="¼­¿ï,°æ±â,°­¿ø,ÀÎÃµ,ÃæºÏ,Ãæ³²,°æºÏ,°æ³²,´ëÀü,´ë±¸,ÀüºÏ,Àü³²,±¤ÁÖ,¿ï»ê,ºÎ»ê,Á¦ÁÖ,¹Ì±¹,Áß±¹"
var Con_SidoEx="¼­¿ï,°æ±â,°­¿ø,ÀÎÃµ,ÃæºÏ,Ãæ³²,°æºÏ,°æ³²,´ëÀü,´ë±¸,ÀüºÏ,Àü³²,±¤ÁÖ,¿ï»ê,ºÎ»ê,Á¦ÁÖ,ÇØ¿Ü"
var Con_Year="2005,2006,2007"

var Con_BoardenText="Corporate,Product,IR News";
var Con_BoardenVal="A,B,C";
var Con_BoardkoText="Corporate,Product,IR News";
var Con_BoardkoVal="A,B,C";
var Con_BoardjpText="Corporate,Product";
var Con_BoardjpVal="A,B";
var Con_BoardchText="Corporate,Product";
var Con_BoardchVal="A,B";

var Con_langText="English,Korea,Japaness,China";
var Con_langVal="en,ko,jp,ch";
//*--- constant Finish---*/


function view_detail(what) { 
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10'); 
imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>Image View</title>\n"); 

imgwin.document.write("<sc"+"ript>\n"); 
imgwin.document.write("function resize() {\n"); 
imgwin.document.write("pic = document.il;\n"); 
//imgwin.document.write("alert(eval(pic).height);\n"); 
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 20; myWidth = eval(pic).width + 12;\n"); 
imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
imgwin.document.write("  clearTimeout();\n"); 
imgwin.document.write("  var height = screen.height;\n"); 
imgwin.document.write("  var width = screen.width;\n"); 

imgwin.document.write("  if (myWidth > width){\n"); 
imgwin.document.write("     myWidth = width; \n"); 
imgwin.document.write("     eval(pic).width = width; \n"); 
imgwin.document.write("  }\n"); 
imgwin.document.write("  if (myHeight > height){\n"); 
imgwin.document.write("     myHeight = height \n"); 
imgwin.document.write("  }\n"); 

imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
imgwin.document.write("</sc"+"ript>\n"); 

imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
imgwin.document.write("<a href='javascript:window.close()'><img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'></a>\n"); 

imgwin.document.write("</body>\n"); 
imgwin.document.close(); 

} 

/*
ÀÌ¹ÌÁö resize ±â´É

window.onload = img_resize;    
    function img_resize(){
      if ( eval('document.img' + '.width > 540') ) {
          eval('document.img' + '.width = 540') ;
       }
    }
    
*/


/************************************************************************************
*  Function Name : jf_blankCheck()
*  Description   : °ø¹éÀ» Ã¼Å©ÇØ¼­ µ¥ÀÌÅ¸°¡ ¾øÀ¸¸é false¸¦ returnÇÑ´Ù.
*  Return Value  : True
*                  False
*  usage :         if(!jf_blankCheck(f.ar_tel_no.value,"MESSAGE",f.ar_tel_no)) return;
************************************************************************************/
function jf_blankCheck(data,strErrMessage,focus) {
    if ( data != '' ) return true;

    if ( strErrMessage != null  ) alert( strErrMessage );

    if ( focus != null ) {
        focus.focus();
//            focus.select();   select¹Ú½º¿¡¼­´Â ¿¡·¯³².
    }

    return false;
}