/* ASTx 1.3 | (C) Copyright AhnLab, Inc. | $Revision: 23040 $ */
var $ASTX2_CUST =
{
// Customer option
/*
mUseJQuery: false, // Whether to use JQuery.
E2EFORM_TAIL: true,
E2EFORM_INIT: '_e2e_forminit',
E2EFORM_TAG1: '_e2e_1__',
E2EFORM_TAG2: '_e2e_2__',
E2EFORM_TAG1_PWD: '_e2e_1_pwd__',
E2EFORM_TAG2_PWD: '_e2e_2_pwd__',
*/
mCustomerID: null, // Customer ID for setProtect.
// ASTX2_CUST defined values
URL_GET_INIT : 101,
URL_GET_CERT : 102,
URL_GET_STAMP : 103,
URL_CHK_STAMP : 104,
setCustomerID: function(customerID)
{
if (customerID != null && customerID != 'undefined') {
this.mCustomerID = customerID;
}
},
getURL: function(type)
{
var result = '';
////:
var url = window.location.protocol+'//'+window.location.hostname;
url += (window.location.port ? ':'+window.location.port : '');
switch(type)
{
case this.URL_GET_INIT :
result = url+'/AOS2/astx2/do_get_init.jsp';
//result = url+'/AOS2/astx2_servlet/get_init';
break;
case this.URL_GET_CERT :
result = url+'/AOS2/astx2/do_get_cert.jsp';
//result = url+'/AOS2/astx2_servlet/get_cert';
break;
case this.URL_GET_STAMP :
result = url+'/AOS2/astx2/do_get_stamp.jsp';
//result = url+'/AOS2/astx2_servlet/get_stamp';
break;
case this.URL_CHK_STAMP :
result = url+'/AOS2/astx2/do_chk_stamp.jsp';
//result = url+'/AOS2/astx2_servlet/chk_stamp';
break;
} // end of switch
return result;
},
isE2EObject: function(obj)
{
return false;
},
getE2Etype: function(obj)
{
return null;
},
onCreatedFormValue: function(obj, obj_name)
{
},
onHandlerPreFocus: function(obj, event)
{
},
onHandlerKeyDown: function(obj, event)
{
return true;
},
getErrorMessage: function(errno)
{
var message = '[ASTx] ';
switch(errno)
{
case $ASTX2_CONST.ERROR_FAILED:
message += "내부 오류가 ë°œìƒí•˜ì˜€ìŠµë‹ˆë‹¤.";
break;
case $ASTX2_CONST.ERROR_NOINIT:
message += "초기화가 필요합니다.";
break;
case $ASTX2_CONST.ERROR_NOTINST:
message += "설치ë˜ì–´ 있지 않습니다.";
break;
case $ASTX2_CONST.ERROR_NOTSUPPORTED:
message += "지ì›í•˜ì§€ 않는 OS입니다.";
break;
case $ASTX2_CONST.ERROR_NOCONNECT:
message += "서버(Web) í†µì‹ ì‹¤íŒ¨ìž…ë‹ˆë‹¤.";
break;
case $ASTX2_CONST.ERROR_NCK:
message += "서버(Local) ì‘답 실패입니다.";
break;
case $ASTX2_CONST.ERROR_ERR:
message += "서버(Local) 내부 오류입니다.";
break;
case $ASTX2_CONST.ERROR_NSP:
message += "지ì›í•˜ì§€ ë˜ì§€ 않는 환경입니다.";
break;
case $ASTX2_CONST.ERROR_PARAM:
message += "ìž˜ëª»ëœ ì¸ìžìž…니다.";
break;
case $ASTX2_CONST.ERROR_PARAM:
message += "ìž¬ì‹œë„ íšŒìˆ˜ë¥¼ 초과 하였습니다.";
break;
case $ASTX2_CONST.ERROR_NEEDUPDATE:
message += "ì œí’ˆ ì—…ë°ì´íŠ¸ê°€ 필요합니다.";
break;
default:
message += 'errno='+errno;
break;
} // end of switch
return message;
},
errorAbort: function(errno)
{
alert(this.getErrorMessage(errno));
}
};