<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>undefined - is a reserved key word, so you should 
use it without ". If you say: "undefined" - this is just a string. I used 
undefined in IE5 and IE6 and it worked fine... But in your case, I think is 
better to use:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>var AverageStudentsObj = 
document.getElementById("AverageStudents");<FONT face="Times New Roman" size=3> 
<BR></FONT><FONT face=sans-serif size=2>&nbsp; if 
(AverageStudentsObj)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; alert 
(AverageStudentsObj);</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;else</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; alert ('object not 
found');<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Dan.</DIV></FONT>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=bill.marriott@agric.nsw.gov.au 
  href="mailto:bill.marriott@agric.nsw.gov.au">bill.marriott@agric.nsw.gov.au</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, December 10, 2003 2:17 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] RE: Undefined is 
  Undefined in IE 5</DIV>
  <DIV><BR></DIV><BR><FONT face=sans-serif size=2>HI Everyone,</FONT> 
  <BR><BR><FONT face=sans-serif size=2>The following code works in IE 6 but 
  falls over with the error "Undefined is Undefined"</FONT> <BR><FONT 
  face=sans-serif size=2>in IE 5. &nbsp;Does anyone know what the actual problem 
  is and is there &nbsp;a workaround?</FONT> <BR><BR><FONT face=sans-serif 
  size=2>var AverageStudentsObj = 
  document.getElementById("AverageStudents");</FONT> <BR><FONT face=sans-serif 
  size=2>&nbsp; if ( AverageStudentsObj != undefined )</FONT> <BR><BR><FONT 
  face=sans-serif size=2>thanks</FONT> <BR><BR><FONT face=sans-serif size=2>Bill 
  Marriott<BR>Analyst/Programmer<BR>Information Technology<BR>NSW 
  Agriculture<BR>Orange<BR><BR>Ph. &nbsp;02 6391 3657<BR>Fax. 02 6391 
  3290<BR><BR><BR>This message is intended for the addressee named and may 
  contain confidential information. If you are not the intended recipient or 
  received it in error, please delete the message and notify sender. Views 
  expressed are those of the individual sender and are not necessarily the views 
  of their organisation.</FONT>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Javascript mailing 
  list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>