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 = parseInt(control.value);

    if (isNaN(valor) || valor == -1)
    {
        alert(mensaje);
        control.focus();
        return false;
    }

    return true;
}
