function fvFieldInput(title, name, format, solver)
{
	this.title = title;
	this.name = name;
	this.format = format;
	
	this.solve = solver;
}


fvFieldInput.prototype.getValue = function(form)
{
	return this.format.unformat(form[this.name].value);
}

fvFieldInput.prototype.setValue = function(form, value)
{
	form[this.name].value = this.format.format(value);
}

fvFieldInput.prototype.clearValue = function(form)
{
	form[this.name].value = "";
}

fvFieldInput.prototype.isEmpty = function(form)
{
	return (form[this.name].value == "");
}

fvFieldInput.prototype.setChangeEvent = function(form, rowReadyFunc)
{
	form[this.name].onchange = rowReadyFunc;
}
