I was getting ready to ask this question, but figured it out so I thought I might as well share. This seemed like something one might likely encounter when programming javascript for standard iForms.
We were getting that red iform alert on the bottom our standard iForms in HEO, but filled with a big javascript expression instead of any kind of real error message. I traced the code it was displaying down to some code I added that began with
"Array.prototype.indexOf = function(obj, start) { //add support for "Array.indexOf()" method in IE"
Quirksmode (what HEO uses) strips out some useful standard javascript methods, and this function adds back in the "indexOf" method to arrays. This didn't agree with the validation code that HEO uses from the file "BASEURLdbmi/iForm/iFormValidation.js". I traced it back to this line, which uses some bad practice for looping arrays:
Line 125: for (var i in _iFormAlertMessage) {
Just change this to the standard method of iterating through loops to fix the bug:
for (var i=0; i<_iFormAlertMessage.length; i++) {
This was a big pain to figure out so hopefully I can save others some grief.