/**
 * ¾ÏÈ£È­ ¿äÃ»¹æ¹ý
 */
function encryptSubmit() 
{
	AuthSSLManager.weave({
		// encrypt / decrypt
		'auth_mode': 'encrypt'
		// ¿¤¸®¸ÕÆ® ¾ÆÀÌµð È¤Àº ¶óµð¿À¹Ú½º´Â name
		, 'aEleId': ['secret_passwd']
		// callback function-name
		, 'auth_callbackName': 'encryptSubmit_Complete'
	});
	return false;
}
/**
 * callback
 * @param String output
 */
function encryptSubmit_Complete(output) {

	if( AuthSSLManager.isError(output) == true ) {
		alert("°³ÀÎÁ¤º¸ ¾ÏÈ£È­ ½ÇÆÐ. °ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇØ ÁÖ¼¼¿ä.");
		return false;
	}
	
    for (i=0; i<document.forms.length; i++) {
        try {
            
            if (typeof document.forms[i].secret_passwd == "object") {
                var oBjencode_str = document.createElement("input");
                oBjencode_str.name = "encode_str";
                oBjencode_str.id = "encode_str";
                oBjencode_str.type = "hidden";
                
                document.forms[i].appendChild(oBjencode_str);
            	document.getElementById('encode_str').value = output;
            
                try {
                    document.forms[i].secret_passwd.value ='';
                } catch(e) {}
                
                
                document.forms[i].submit();
            }
        } catch(e) {}
    }
}
