﻿// JScript File
function validateCombo(source, arguments) {
    var sValue;
    sValue = trim(arguments.Value);
    arguments.IsValid = (sValue != "") && (sValue != "0");
}


function trim(string) {
    return string.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}

function validateNumerico(source, arguments) {
    var sValue;
    sValue = trim(arguments.Value);
    debugger;
    if (Number(sValue) == NaN)
        arguments.IsValid = false;
    else
        arguments.IsValid = true;
}
