<!--
    function form_control_cardnumber(form, field)
    {
        if(field.value)
        {
           var testre = /^[0-9]+$/;
           if(!field.value.match(testre))
               return false;
        }
        return true;
    }

    function form_control_cardauthorization(form, field)
    {
        if(field.value)
        {
           var testre = /^[0-9]+$/;
           if(!field.value.match(testre))
               return false;
        }
        return true;
    }

    function form_control_cardmonth(form, field)
    {
        if(field.value)
        {
           var testre = /^[0-9]+$/;
           if(!field.value.match(testre))
               return false;
        }
        return true;
    }

    function form_control_cardyear(form, field)
    {
        if(field.value)
        {
           var testre = /^[0-9]+$/;
           if(!field.value.match(testre))
               return false;
        }
        return true;
    }

    function form_control_cardholder(form, field)
    {
        return true;
    }

    function canadian_psc(form, field)
    {
        return true;
    }

    function greatbritain_psc(form, field)
    {
        // kontrolu u fakturacni adresy neprovadet u cizincu
        var fns = 'form_fakturacni_stat';
        if (field.name == 'form_dodaci_psc') {
            fns = 'form_dodaci_stat';
        }
        if (form[fns].options[form[fns].selectedIndex].value == '4') {
            return true;
        }
        if (field.value == '') {
            return false;
        }
        return true;
    }

    function canadian_street(form, field)
    {
        return true;
    }
    
    function canadian_phone(form, field)
    {
        return true;
    }
    
    function magyar_psc(form, field)
    {
        // kontrolu u fakturacni adresy neprovadet u cizincu
        if(field.value)
        {
           var testre = /^ *[0-9]{2} ?[0-9]{2} *$/;
           if(!field.value.match(testre))
               return false;
        }
        return true;
    }
    
// -->