<!-- This page is needed to pre-process one time loading     of default index information before first page of wizard	 is displayed.	 	 This page also makes vertical scrollbar disappear in all	 subsequent pages.  Without this page, the first page displays	 vertical scrollbar even though this option is turned off in	 SDSearchWizard code.	 	 When this page is called from Search Setup Wizard's HTML View,	 additional parameters are passed in the form of...	 	 "index_wizard_init.htm?parm1=value1&param2=value2&...	 	 The paramter value pairs must include at least "mode=xxx" option	 where xxx = "all" or "config".  "all" mode performs all search	 features (create and configure Index Database, scheduling automatic	 update of indexing, and indexing to build Index Database).	 "config" mode performs only creation and configuration of Index	 Database.	 	 The parameter "name=yyy" may be passed as well.  If this is the	 case, yyy is suggested name for new Index Database.  This is the	 Index Database Name appears in as default in Step1 unless this	 name already exists (in such cases, unique number is appended	 to it).  If this parameter is not specified, default value from	 Indexer component will be used.	 	 Step 4 will add parameter "schedule=zzz" where zzz = "yes" or "no".	 This parameter indicates whether schedule step is performed or not. -->
	 
<html xmlns:sds=""><!-- #BeginTemplate "/Templates/wizard_top_page.dwt" -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Sharpdesk Search Setup Initialization</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" href="search.css"/>
<style type="text/css">
HTML {width:450px; height:350px;}
</style>
</head>

<body bgcolor="#CCCCCC" text="#000000" topMargin="0" leftMargin="0">
<script language="JavaScript" src="search_errors.js"></script>
<script language="VBScript" src="vb_utils.js"></script>
<script language="JavaScript" src="search_index.js"></script>
<script language="JavaScript" src="index_wizard_common.js"></script>
<script language="JavaScript" src="math_utils.js"></script>

<!-- #BeginEditable "Script%20Area" -->
<script language="JavaScript" for="window" event="onload()">
//var index_name;
document.all.back_button.disabled = true;
document.all.next_button.disabled = true;

// set all index options to defaults
LoadDefaultIndexInfo();

// extract index name from URL passed
var index_name = GetURLParameter(location.search, "name");

// if not specified in URL, get default name
if(index_name == "")
  index_name = GetIndexName();

// set index name unique (if not unique, make it unique
// by appending numeral).
SetIndexName(GetUniqueIndexName(index_name));

location = "index_wizard_begin.htm" + location.search;
</script>
<!-- #EndEditable -->

<script language="JavaScript" for="document" event="onreadystatechange()">
if(document.readyState == "complete")
  document.all.next_button.focus();
</script>

<script language="JavaScript" for="document" event="onkeydown()">
// backspace key must be ignored
if(event.keyCode == 8)
  event.returnValue = false;
</script>

<script language="JavaScript" for="cancel_button" event="onclick()">
var mode = GetURLParameter(location.search, "mode");
if(ConfirmTerminate(mode))
{
  if(mode == "all")
    location = "index_wizard_incomplete.htm";
  else if(mode == "config")
    location = "index_wizard_config_incomplete.htm";
  else
    alert("Invalid mode specified.");
}
</script>
<table width="100%" border="0" height="90%" cellpadding="0" cellspacing="0">
  <tr>
    <td width="29%" background="Images/branding.gif" valign="top">
      <div align="right"><img src="Images/search.gif" width="48" height="48" vspace="10" hspace="10"/></div>
    </td>
    <td width="71%" valign="top" bgcolor="#FFFFFF"> 
      <table width="100%" border="0" height="100%" cellpadding="5" cellspacing="5">
        <tr>
          <td valign="top"> 
            <div align="left">
              <p><!-- #BeginEditable "Header" -->
			  <!-- #EndEditable --></p>
              <!-- #BeginEditable "Description" -->
			  <!-- #EndEditable --></div>
          </td>
        </tr>
      </table>
      <div align="right"></div>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" height="10%">
  <tr> 
    <td width="40%" loc="width:id=ID_BTN_WIDTH_1"> </td>
    <td width="45%" loc="width:id=ID_BTN_WIDTH_2"> 
      <div align="left">
        <input type="button" name="back_button" value="&lt; Indietro" loc="value:id=IDS_BUTTON_BACK"/>
        <input type="button" name="next_button" value="Avanti &gt;" loc="value:id=IDS_BUTTON_NEXT"/>
      </div>
    </td>
    <td width="15%"> 
      <div align="center">
        <input type="button" name="cancel_button" value="Annulla" loc="value:id=IDS_BUTTON_CANCEL"/>
      </div>
    </td>
  </tr>
</table>
</body>
<!-- #EndTemplate --></html>
