title: Using Global Function in Titanium
body: <p>I am making Titanium mobile project where I want to make one global function which I can use throughout the application. For that I have created other .JS file where I have defined the function and I am including that .JS file where I need to use this function and I am successfully able to call the function.</p>
  
  <p>But My question is :</p>
  
  <p>Can I create new Window in that function? As I have added one Label and one MapView in that window but it is not showing, while at the start of function I have added <code>alert('FunctionCalled')</code>, it is showing me alert but not showing me the label I have added in the window.</p>
  
  <p>So anybody can help me to find out whether we can open window through function. If yes then any sample example, so that I can find out what mistake I am making.</p>
  
  <p>Thanks,</p>
  
  <p>Rakesh Gondaliya   </p>