function campoCheck(control, mensaje) {
    if (!control.value || control.value == '')
    {
        alert(mensaje);
        control.select();
        control.focus();
        return false;
    }

    return true;
}

function numberCheck(control, mensaje)
{
    valor = parseInt(control.value);

    if (isNaN(valor))
    {
        alert(mensaje);
        control.select();
        control.focus();
        return false;
    }
    
    return true;
}

function dropCheck(control, mensaje)
{
    valor = control.value;

    if (!valor || valor == "")
    {
        alert(mensaje);
        control.focus();
        return false;
    }

    return true;
}

