OK, so I figured this out this morning. Nothing like getting a good nights sleep. What I did was this:
Moved the function to the top, gave it a name, changed the document.getElementByID to document.FormName.FieldName, added the onChange event on the select list and it is working fine Thanks all for your advice. I do like Firebug though. I am finding it to be very handy. <script type="text/javascript"> function Populate(Contacts) { var SiteContact = {}; var SitePhone = {}; <!--- Populate Site Contact Information ---> <cfloop query="qSelectAllSites"> SiteContact["#qSelectAllSites.SiteID#"] = '#qSelectAllSites.SiteContact#'; SitePhone["#qSelectAllSites.SiteID#"] = '#qSelectAllSites.SitePhone#'; </cfloop> // Listen for changes to the select box document.OpenNewCase.SiteContact.value=SiteContact[Contacts]; document.OpenNewCase.SitePhone.value=SitePhone[Contacts]; } </script> </cfoutput> Bruce ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303674 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4