  value = (value.indexOf(dec)==0) ? '0'+value : value;  
dojox.validate.isInRange = function(/*String*/value, /*Object?*/flags){	// summary:	//	Validates whether a string denoting an integer, 	//	real number, or monetary value is between a max and min. 	//	// value: A string	// flags: {max:Number, min:Number, decimal:String}	//    flags.max  A number, which the value must be less than or equal to for the validation to be true.	//    flags.min  A number, which the value must be greater than or equal to for the validation to be true.	//    flags.decimal  The character used for the decimal point.  Default is ".".		if(isNaN(value)){		return false; // Boolean	}		// assign default values to missing paramters	flags = (typeof flags == "object") ? flags : {};	var max = (typeof flags.max == "number") ? flags.max : Infinity;	var min = (typeof flags.min == "number") ? flags.min : -Infinity;	var dec = (typeof flags.decimal == "string") ? flags.decimal : ".";		var cache = dojox.validate._isInRangeCache;	var cacheIdx = value+"max"+max+"min"+min+"dec"+dec;	if(typeof cache[cacheIdx] != "undefined"){		return cache[cacheIdx];	}		// splice out anything not part of a number	var pattern = "[^" + dec + "\\deE+-]";	value = value.replace(RegExp(pattern, "g"), "");		// trim ends of things like e, E, or the decimal character	value = value.replace(/^([+-]?)(\D*)/, "$1");	value = value.replace(/(\D*)$/, "");		// replace decimal with ".". The minus sign '-' could be the decimal!	pattern = "(\\d)[" + dec + "](\\d)";	value = value.replace(RegExp(pattern, "g"), "$1.$2");		value = Number(value);	if ( value < min || value > max ) { cache[cacheIdx] = false; return false; } // Boolean	cache[cacheIdx] = true; return true; // Boolean}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/1afce35e824f94883af1d36dec246edf7bbfee8c/_base.js/clean/validate/_base.js