Evening All

I wonder if anyone could help me out with where I am going wrong with the
following:

I want to launch a search of the local Sharepoint site from within an
Account record in MSCRM passing the Account name as the search parameter and
have done the following:

1. Created a new picklist field and added it to the Account screen having
values of 'Search' (default) and 'Sharepoint'
2. Added the following script in the OnChange properties:
var strId =
crmForm.name.value;window.open("http://sharepoint/Search.aspx?k="+strId+"&SUBMIT1=Go");

If I try to preview the create or update form I get the standard Micosoft
CRM - An error has occurred....etc" error message. The preview of Read Only
is OK.

I can successfully manually enter the URL in the script into a browser
window(replacing the variable with a string).

I am having difficulty working out initially why the error occurs when I
preview the form as surely the code should not be called until I change the
picklist value, and secondly what is wrong with the script.

Any ideas would be welcomed..........
--
Regards

Peter