<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [Javascript] javascript problem</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Bob,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#800000><FONT color=#000000 face=Arial size=2>The funning thing
is when I replaced it with the following code the problem went
away.</FONT></FONT></DIV>
<DIV><FONT color=#800000><FONT color=#000000 face=Arial
size=2>***********************************************************************</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>function ClosePop()</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>{</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2> if
(typeof(cropcheckHelp) != "undefined")</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
{ </FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
if (cropcheckHelp.closed == false)</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
{ </FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
cropcheckHelp.close();
</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
}</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
}</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2> if
(typeof(ReportPick) != "undefined")</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
{ </FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
if (ReportPick.closed == false)</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
{ </FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
ReportPick.close();
</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
}</FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>
} </FONT></DIV>
<DIV><FONT color=#000000 face=Arial size=2>} //End of function</FONT></DIV><FONT
size=2><FONT face=Arial>
<DIV></FONT><FONT
color=#000000>*************************************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV>I think it must have been something to do with the 2 lots of &&'s.
It could handle the ones in the first if, but fell </DIV>
<DIV>over when it came to the next lot. Weird!</DIV>
<DIV> </DIV>
<DIV>Thanks for your interest.</DIV>
<DIV> </DIV>
<DIV>Bill</FONT></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:filipiab@atsc.army.mil" title=filipiab@atsc.army.mil>Filipiak,
Bob (Contractor)</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:'javascript@LaTech.edu'"
title=javascript@LaTech.edu>'javascript@LaTech.edu'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 06, 2001 10:20
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] javascript
problem</DIV>
<DIV><BR></DIV>
<P><FONT size=2>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.</FONT></P>
<P><FONT size=2>Bob Filipiak (Contractor)</FONT> <BR><FONT size=2>MCP
</FONT></P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Bill
Marriott [<A
href="mailto:bill.marriott@optusnet.com.au">mailto:bill.marriott@optusnet.com.au</A>]</FONT>
<BR><FONT size=2>Sent: Friday, July 06, 2001 1:58 AM</FONT> <BR><FONT
size=2>To: javascript@LaTech.edu</FONT> <BR><FONT size=2>Subject: [Javascript]
javascript problem</FONT> </P><BR>
<P><FONT size=2>Hi again,</FONT> </P>
<P><FONT size=2>The following script works in IE 5.5 but creates an error
in IE 5.</FONT> <BR><FONT
size=2>************************************************</FONT> <BR><FONT
size=2>function ClosePop()</FONT> <BR><FONT size=2>{</FONT> <BR><FONT
size=2> if (ReportPick && !ReportPick.closed)</FONT>
<BR><FONT size=2> {</FONT> <BR><FONT
size=2> ReportPick.close();</FONT>
<BR><FONT size=2> }</FONT> <BR><FONT size=2> if
(cropcheckHelp && !cropcheckHelp.closed)</FONT> <BR><FONT
size=2> { </FONT><BR><FONT size=2>
cropcheckHelp.close(); </FONT><BR><FONT size=2>
} </FONT><BR><FONT size=2>} //End of
function</FONT> <BR><FONT
size=2>**************************************************</FONT> <BR><FONT
size=2>It works in IE 5 , if I only want to check one popup, (ie one if
statement)</FONT> <BR><FONT size=2>but not if there are 2.</FONT> </P>
<P><FONT size=2>Can anyone see what I have done wrong?</FONT> </P>
<P><FONT size=2>Bill</FONT> </P><BR><BR><BR>
<P><FONT size=2>_______________________________________________</FONT>
<BR><FONT size=2>Javascript mailing list</FONT> <BR><FONT
size=2>Javascript@LaTech.edu</FONT> <BR><FONT size=2><A
href="http://www.LaTech.edu/mailman/listinfo/javascript"
target=_blank>http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P></BLOCKQUOTE></BODY></HTML>