<!--
// ==============================================================================
// File Name           : search_init.htm 
// Description         : Search Init
// Author(s)           : Baskaran V
// Date created        : 2009.01.05
// Last reviewed by    : 
// Last date of review : 
// Copyright           : (c) 2008, Sharp Software Development India Pvt Ltd., All rights reserved.
//                       All rights are reserved. Reproduction or transmission in whole or in part, in
//                       any form or by an means, electronic, mechanical or otherwise, is prohibited
//                       without the prior written consent of the copyright owner.

// ==============================================================================

-->

<html xmlns:sds="">
<head>
	<title>Search Initialization Page</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<link rel="stylesheet" href="search.css"/>
	<script language="JavaScript" src="search_errors.js"></script>
	<script language="VBScript" src="vb_utils.js"></script>
	<script language="JavaScript" src="external_io.js"></script>
	<script language="JavaScript" src="ui_utils.js"></script>
	<script language="JavaScript" src="math_utils.js"></script>
	<link href="style.css" rel="stylesheet" type="text/css" />
	<script defer type="text/javascript" src="pngfix.js"></script>
	<script type="text/javascript" src="Themes.js"></script>

</head>

<body leftmargin="0" topmargin="0" class="Centerbg">
<script language="JavaScript" src="default_data.js"></script>
<script language="JavaScript" src="search_index.js"></script>
<script language="JavaScript">
// destination page that must be loaded after initialization
var destination_page = "";

// remove all links from the page
// (currently only icon link to home page exists)
function RemoveAllLinks()
{
  var links = document.links;
  for(var i = 0; MATH_Lt(i, links.length); i++)
    links[i].outerHTML = Tag("a href='default.htm' 'disabled'"); 
}

// set all persistent values in application
// scope to defaults
function SetAllDefaults()
{
  // set all defaults for application-level persistent data.
  // Load default data only once only when the first time
  // application runs.
  if(!GetApplicationState())
  {
    SetApplicationDefaults();
	UpdateApplicationDefaults();
    SetApplicationState(true);
  }
}

function LoadSessionInitPage()
{
  location = "search_session_init.htm?" + destination_page;
}
</script>

<script language="JavaScript" for="window" event="onload()">
// display text to indicate that initialization of Search Tool
// has started.
//OnDataInitStarted();

// destination page must be appended to the location of
// this page when this page is loaded
destination_page = unescape(location.search.substring(1));

// clear all links to other pages
// (needed because template has a link to home page)
RemoveAllLinks();

// set all application scope persistent values
// to defaults
SetAllDefaults();

// display text to indicate intialization of Search Tool
// is complete
//OnDataInitCompleted();

// loading session init. page immediately
LoadSessionInitPage();
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr></tr>
  <tr>
    <td height="1" align="left" valign="top"  class="bgcolor_2"></td>
  </tr>
  <tr>
    <td height="53" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="Default_top" height="53">
  <tr> 
    <td width="6%" align="center">
	<a id="home_link" onClick="GoToPage('default')" class="Normaltext">
	 <img src="Images/search_home.png" border="0"title="Back to Search Home" width="32" height="32" style="position:relative; top:2;"/></a></td>
    <td class="Titlewizard" align="center"><div id="page_title_area" align="center"><b>Search Initialization </b></div></td>
    <td width="180"><span id = "status_message"></span></td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td height="56" align="left" valign="top">&nbsp;</td>
  </tr>
</table>
</body>
</html>
