We need to see more code. Like the code that opens each popup. What exactly is the error when there are two if's? The code you listed in this message should not cause any problems based on the syntax. Bob Filipiak (Contractor) MCP -----Original Message----- From: Bill Marriott [mailto:bill.marriott at optusnet.com.au] Sent: Friday, July 06, 2001 1:58 AM To: javascript at LaTech.edu Subject: [Javascript] javascript problem Hi again, The following script works in IE 5.5 but creates an error in IE 5. ************************************************ function ClosePop() { if (ReportPick && !ReportPick.closed) { ReportPick.close(); } if (cropcheckHelp && !cropcheckHelp.closed) { cropcheckHelp.close(); } } //End of function ************************************************** It works in IE 5 , if I only want to check one popup, (ie one if statement) but not if there are 2. Can anyone see what I have done wrong? Bill _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010706/aa0aebd3/attachment.htm>