Hi,

I am facing problem to open a popup window in IE. But it works fine in Mozilla. I am getting an error as : 'document.forms[..].elements' is null or not an object' But i am passing value. and using the following code. 1st alert is working, 2nd alert is not able to open.

Code:
function openCompanyPopup( formName, idField, nameField )
  {
    customerPopupForm = formName;
    customerPopupIdField   = idField;
    customerPopupNameField = nameField;
    alert('formName'+formName);
    alert(document.forms[formName].elements[nameField].value);
    var popupURL = "ozSlsLOVCompany.jsp?searchParam="+document.forms[formName].elements[nameField].value;
    var lovWin = window.open(popupURL, 'LOVCompany', 'left=100,top=60,width=700, height=540, scrollbars=yes');
    lovWin.opener = self;
    lovWin.focus();
  }
thanks..