<!-- 
function JSField(name, value,  type, row_id, building_type, read_only) {
	//----- Variable Declarations
	this.name = name;
	this.value = value;
	this.type = type;
	this.building_type = building_type;
	this.row_id = row_id;
	this.readonly = (read_only == true) ? true : false;
	this.element = null;
			
	//----- Method Declarations
	this.setElement = setElementJSField;
	this.setValue = setValueJSField;
	this.getElement = getElementJSField;
	this.getName = getNameJSField;
	this.getValue = getValueJSField;
	this.getType = getTypeJSField;
	this.getBuildingType = getBuildingTypeJSField;
	this.show = showJSField;
	this.hide = hideJSField;
	this.enable = enableJSField;
	this.disable = disableJSField;
	this.setClassName = setClassNameJSField;
	this.isDisabled = isDisabledJSField;
}

		//----- JSField Public Functions
		function getElementJSField() { return this.element; }
		function getNameJSField() { return this.name; }
		function getValueJSField() { return this.value; }
		function getTypeJSField() { return this.type; }
		function getBuildingTypeJSField() { return this.building_type; }
		function setElementJSField() { this.element = document.forms["frm_input"].elements[this.name]; if (this.element) this.element.value = cent(this.value) }
		function setValueJSField(value) { this.value = value; this.element.value = cent(value); }
		function setClassNameJSField(newname) {  }
		function enableJSField() { this.getElement().disbled = false; this.show(); }
		function disableJSField() { this.getElement().disbled = true; this.hide(); }
		function showJSField() {  }
		function hideJSField() {  }
		function isReadOnly() { return this.readonly }
		function isDisabledJSField() { return this.getElement().disabled; }
//-->