/*******************************************************************************
 * activateButtonCashOut
 * =====================
 * This function is use to change the disabled status for the cash out button
 * when the user has selected a payment method.
 *
 * @param iPaymentMethod , the value of the radio button
 *
 * @return null
 *******************************************************************************/
function activateButtonCashOut(iPaymentMethod)
{
    // If the payment method is Paypal.
    // -------------------------------------------------------------------------
    if(iPaymentMethod == 1)
    {
        if(document.dividend.form_paypal_account.value == "")
        {
            document.dividend.ACTION.disabled = true;
        }
        else
        {
            document.dividend.ACTION.disabled = false;
        }
    }
    
    // If the payment method is Check.
    // -------------------------------------------------------------------------
    if(iPaymentMethod == 2)
    {
        document.dividend.ACTION.disabled = false;
        document.dividend.form_paypal_account.value = "";
    }    
}

/*******************************************************************************
 * activateTextArea
 * ================
 * This function is use to change the disabled status for the mail button
 * when the user has enter text on the mail form.
 *
 * @param iPaymentMethod , the value of the radio button
 *
 * @return null
 *******************************************************************************/
function activateTextArea()
{
    if(document.mail_form.contact_message.value == "")
    {
        document.mail_form.ACTION.disabled = true;
    }
    else
    {
        document.mail_form.ACTION.disabled = false;
    }
}