<!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.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The only way variables shouldn't be able to be 
referenced in another file is if they were declared inside a function. It 
wouldn't matter if they were declared in another 'script block' assuming we're 
talking about the same type of 'script block' which is just code defined inside 
of &lt;script&gt;&lt;/script&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<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=trojani2000@hotmail.com href="mailto:trojani2000@hotmail.com">BEKIM 
  BACAJ</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 02, 2003 5:26 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] Function scope 
  question</DIV>
  <DIV><BR></DIV>
  <DIV>
  <DIV>
  <P>not sure about that, but the problem is that var's from one script block 
  can't communicate with the function in another script block<BR>even if they 
  are written in the same (html) page<BR></P></DIV>
  <DIV></DIV>&gt;From: Robert Pollard <RPOLLARD@APPLE.COM>
  <DIV></DIV>&gt;Reply-To: "[JavaScript List]" <JAVASCRIPT@LATECH.EDU>
  <DIV></DIV>&gt;To: <A 
  href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A> 
  <DIV></DIV>&gt;Subject: [Javascript] Function scope question 
  <DIV></DIV>&gt;Date: Wed, 1 Oct 2003 15:32:08 -0700 
  <DIV></DIV>&gt; 
  <DIV></DIV>&gt;Hello all, 
  <DIV></DIV>&gt; 
  <DIV></DIV>&gt;I have 2 files that has several functions that are related. I 
  <DIV></DIV>&gt;needed 2 of the functions in one file to be available in the 
  other. 
  <DIV></DIV>&gt;Can you not have a function in 1 file and call it from another 
  file? 
  <DIV></DIV>&gt; 
  <DIV></DIV>&gt;Thanks, 
  <DIV></DIV>&gt; 
  <DIV></DIV>&gt;Robert Pollard 
  <DIV></DIV>&gt; 
  <DIV></DIV>&gt;_______________________________________________ 
  <DIV></DIV>&gt;Javascript mailing list 
  <DIV></DIV>&gt;Javascript@LaTech.edu 
  <DIV></DIV>&gt;https://lists.LaTech.edu/mailman/listinfo/javascript 
  <DIV></DIV></DIV><BR clear=all>
  <HR>
  Tired of spam? Get <A href="http://g.msn.com/8HMBEN/2734??PS=">advanced junk 
  mail protection</A> with MSN 8. 
  <P>
  <HR>

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