// JavaScript Document
    // js form validation stuff
    var errorMsg0   = 'Missing value in the form!';
    var errorMsg1   = 'This is not a number!';
    var noDropDbMsg = '';
    var confirmMsg  = 'ยืนยันการทำงานขั้นตอนนี้ ';
    var confirmMsgDropDB  = 'You are about to DESTROY a complete database!';
    // ]]>
function confirmLink(theLink, othLink,theSqlQuery)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
    if (is_confirmed) {
        if ( typeof(theLink.href) != 'undefined' ) {
            theLink.href += '&cfm=1'+othLink;
        } else if ( typeof(theLink.form) != 'undefined' ) {
            theLink.form.action += '?is_js_confirmed=1';
        }
    }

    return is_confirmed;
} // end of the 'confirmLink()' function