We have started testing Office 2010 and have discovered a problem with Infopath forms. We have many old Infopath 2003 developed forms which utilize the InfoPath custom task pane with javascript and an ASPX page. The ASPX performs a search of our Active Directory to pull employee information. We realize that we probably need to eliminate this custom task pane code and use the contact selector control to pull AD information but we have many forms to convert and we need to move forward with Office 2010. Here is the Javascript with the line highlighted that is failing. Any help would be greatly appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> <HEAD> <title>Eastman User Search</title> <link REL="stylesheet" TYPE="text/css" HREF="InfoPathTaskPane.css"> <script language="javascript"> function itemSelected (userid) { var xDoc = window.external.Window.XDocument; if (xDoc == null) { alert ("Could not obtain reference to XDocument."); } else { xDoc.Extension.UserLookupDone (userid); } return false; } function disableSearch() { document.forms(0).startSearch.value = "Searching..."; document.forms(0).startSearch.disabled = true; } </script></HEAD>