jQuery.fn.rval = function(regExp)
	{
		if (regExp == '') {
			regExp = [/^([0-9]{0,6})$/,/^[0-9]{1,6}[\.]{1}(|[0-9]{0,2})$/];
		}
		regularExpression = regExp;
		valueCurrent = "";
		blockInput = false;
			
		this.keypress(function(e){
			if (blockInput == false)
			{
				valueCurrent = this.value;
				blockInput = true;
			}
		})
	
		this.keyup(
			function(e)
			{
				instance = this;
				var allOk = false;
				jQuery.each(
					regularExpression,
					function( intIndex, objValue ){
						var re = new RegExp(objValue);
						if((re.exec(instance.value) || instance.value == '') && allOk == false)
						{
							allOk = true;
						}
					}
					);
				if (allOk != true) {
					instance.value = valueCurrent;
				}
				blockInput = false;
			}
			)
	
		return this;
	}