define(function () { "use strict"; function PageModule() { }; function myvalidator(iMin, iMax, aValues) { return (aValues[0].use >= iMin && aValues[0].use <= iMax); }; PageModule.prototype.load = function (oPage) { var iMin = parseInt(oPage.getControlByName("txtMinValue").text); var iMax = parseInt(oPage.getControlByName("txtMaxValue").text); oPage.getControlByName("txtIDValue").setValidator(myvalidator.bind(null, iMin, iMax)); }; return PageModule; });