<!--
/* Form Element¿¡ °ªÀ» ¾ò¾î¿É´Ï´Ù. */
function getValue (obj){
    if ( typeof ( obj ) == 'object' ) {
        return obj.value;
    } else {
        window.status = "getValue JavaScript ¿À·ù ¹ß»ý2 + " + obj ;
        return '';
    }
}

/* Form AÀÇ °ªÀ» Form B ·Î º¹»ç ÇÕ´Ï´Ù. */
function copyElement (frmParentStr,frmPropNm, toParentStr,toPropNm) {
    var frmObj = eval ( frmParentStr + "." + frmPropNm   );
    var toObj  = eval ( toParentStr  + "." + toPropNm    );
//  alert ( " copyElement : " + typeof ( frmObj )  + ' / ' + typeof ( toObj ) );

    if ( typeof ( frmObj ) == "object" && typeof ( toObj ) == "object" ) {
        toObj.value = frmObj.value;
    } else {
//        window.status = "copyElement JavaScript ¿À·ù ¹ß»ý1 + " + toObj );
    }
}

/* Object¿¡ Æ÷Ä¿½º¸¦ ÁÝ´Ï´Ù. */
function setFocus (obj){
    if ( typeof ( obj ) == 'object' ) {
        obj.focus();
    } else {
        window.status = "setFocus JavaScript ¿À·ù ¹ß»ý1 +" + obj ;
    }
}
                                                
/* Form Element¿¡ °ªÀ» ÇÒ´çÇÕ´Ï´Ù. */
function setObjectValue (obj1, obj2) {
    if ( typeof ( obj1 ) == "object" && typeof ( obj2 ) == "object" ) {
        obj1.value = obj2.value;
    } else {
        window.status = "setObjectValue JavaScript ¿À·ù ¹ß»ý1 +" + obj1 + " / " + obj2 ;
    }
}

/* Form Element¿¡ °ªÀ» ÇÒ´çÇÕ´Ï´Ù. */
function setValue (obj, value){
    if ( typeof ( obj ) == 'object' ) {
            obj.value = value;
    } else {
        window.status = "setValue JavaScript ¿À·ù ¹ß»ý1 +" + obj + " / " + value ;
    }
}

/* FormÀ» Action ÆäÀÌÁö¸¦ ÁöÁ¤ÇÏ¿© ¼­ºê¹ÔÇÔ. */
// enctype : application/x-www-form-urlencoded
//         : multipart/form-data                : ÆÄÀÏÀü¼Û½Ã
function submitForm (form, action, enctype, method){
    if ( typeof( form ) == 'object' ) {
        if ( typeof( action ) != 'undefined' && action != '' ){
            form.action = action;
        }
        if ( typeof( enctype ) != 'undefined' && enctype != '' ){
            form.enctype = enctype;
        }

        if ( typeof( method ) != 'undefined' && method != '' ){
            form.method = method;
        }

        form.submit();
    } else {
        window.status = "submitForm JavaScript ¿À·ù ¹ß»ý" ;
    }
}
//->