<!--
	// toggle.js
	// Copyright (c) 2007 coastwoodworkingmachinery.com.  All Rights Reserved.
	// To obtain a legal license for this software, contact info@egauge.com.
	// Unauthorized usage, distribution and/or reverse engineering are strictly prohibited and may result in legal action.
	// code generated by the appGenerator on June 27, 2007
	// hide/show rows based on author specifications;

	function toggle() {
		frm = false;
		if (document.inputForm) {
			// if the form exists;
			var frm = document.inputForm;
		}

		if (document.modifyForm) {
			// if the form exists;
			var frm = document.modifyForm;
		}

		if (frm) {
			// ie doesn't support the table-row css2 attribute for "display", so we have to use "block" for ie, and "table-row" for firefox, safari and everything else;
			var newDisplayStyle = document.all ? "block" : "table-row";
			/// define variables from form input ////////
		
	}
	// end-if form exists;
	}
	// close toggle function;
	// if a switch is activated to hide a set of rows, empty those values before submitting the form;

	function SetValueToNull(el) {
		var elem = eval('document.inputForm.' + el);
		if (elem == null) {
			return;
		}

		for (var b = 0; b < elem.length; b++) {
			elem[b].checked = false;
		}
	}

	function SetCheckboxValueToNull(el) {
		var elem = eval('document.inputForm[\'' + el + '[]\']');
		for (var b = 0; b < elem.length; b++) {
			elem[b].checked = false;
		}
	}

	/// end toggle.js ////
	//-->