//this file includes the scripts for validating the features form fields.

function numbers_and_decimals_only(evt) {
	var allowed=/[0123456789\+\-\.\/\b\t]/g;
	var e = (evt) ? evt : window.event;
	var charCode = (e.which) ? e.which : e.keyCode;
	var character = String.fromCharCode(charCode);
	if(character.match(allowed)){
			return true;
		}else{
			return false;
		}
}

/********************************************************************/

function numbersonly(evt) {
	var allowed=/[0123456789\b\t]/g;
	var e = (evt) ? evt : window.event;
	var charCode = (e.which) ? e.which : e.keyCode;
	var character = String.fromCharCode(charCode);
	if(character.match(allowed)){
			return true;
		}else{
			return false;
		}
}

/********************************************************************/
