It's not really a 'windows hack'*, but no, you shouldn't need it. If all you have is something like:
Code:
<form id="form1" name="form1" method="post" action="">
<p>
<input type="text" name="field1" id="field1" />
<input name="notefield1" type="text" id="notefield1" size="2" />
<br />
<input type="text" name="field2" id="field2" />
<input name="notefield2" type="text" id="notefield2" size="2" />
<br />
<input type="text" name="field3" id="field3" />
<input name="notefield3" type="text" id="notefield3" size="2" />
<br />
<input type="button" value="Update" onclick="setFields(this.form);" />
</p>
</form>
That would work just fine without the added IE init function.
In fact, if it isn't important that the user sees this extra numerical data, you could so something like this (also without the 'hack'):
Code:
<form id="form1" name="form1" method="post" action="" onsubmit="setFields(this);">
<p>
<input type="text" name="field1" id="field1" />
<input name="notefield1" type="hidden" id="notefield1" size="2" />
<br />
<input type="text" name="field2" id="field2" />
<input name="notefield2" type="hidden" id="notefield2" size="2" />
<br />
<input type="text" name="field3" id="field3" />
<input name="notefield3" type="hidden" id="notefield3" size="2" />
<br />
<input type="submit" value="Submit" />
</p>
</form>
Important Note: Whether seen or unseen, users with javascript disabled or without javascript will not generate the expected data.
* The term hack implies something that isn't technically supported by the browser. The code in my IE workaround is fully documented and supported in any browser that can pass its object tests.
Bookmarks