When you define a variable name same as an IFRAME name, I.E won't be able to get back the iframe. See following example:
<html> <body> <iframe id='ifLoan' name='ifLoan'> </iframe> </body> </html> <script> var ifLoan=frames['ifLoan']; alert(ifLoan); </script>
In IE, it will display undefined. In firefox, it's fine.
So you have to rename var ifloan to some other value.