AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.189.192.214


Current Path : /var/www/lhjmq-records.qc.ca/public_html/administration/js/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/administration/js/vfText.js

function vfText(value, minSize, maxSize, allowedValues){
	//System constants
	var AllowedChars = allowedValues;
	var i = 0;
	//Check if the value contains nothing other than the allowed values
	for(i=0; i<value.length; i++){
		if(AllowedChars.indexOf(value.substr(i,1)) == -1){
			return false;
		}
	}
	//Check the min size and max size
	if(value.length < minSize || value.length > maxSize){
		return false;
	}
	//Value is ok
	return true;
}