<!--
// ==============================================================================
// File Name           : index_wizard_begin.htm
// Description         : index wizard Begin process
// 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.

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

-->
<!-- 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="">
<head>

<!--Title------------>		
<title>Sharpdesk Search Setup Initialization</title>
<!--End of the Title------------->		
<!-----------------CSS File Location (Default Blue theme  load)----------------------->		
<link href="style.css" rel="stylesheet" type="text/css" />
<!-----------------End of the CSS File Location (Default Blue theme  load)------------>	
<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 topmargin="0" leftmargin="0" SCROLL=NO>
<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>
<script type="text/javascript" src="Themes.js"></script>

<script language="JavaScript" for="window" event="onload()">
//var index_name;
document.all.back_button.disabled = true;
document.all.next_button.disabled = true;

var run_mode = GetURLParameter(location.search, "mode");
//DisplayHeader(run_mode, document.all.header_area1);

// 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>


<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" cellpadding="0" cellspacing="0" class="tablebroder" >
  
  <tr>
    <td height="300"  colspan="3" align="left" valign="top" class="Centerbg"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="14%" height="200"  align="left" valign="bottom"><img src="images/Searchicon1.png" ></td>
        <td width="1%" rowspan="2" align="left" valign="top" class="Speartline">&nbsp;</td>
        <td width="85%" rowspan="2" align="left" valign="top" class="Textbox"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
            <td height="10" colspan="2" align="left" valign="top"></td>
          </tr>
          <tr>
            <td height="26" align="left" valign="top" class="Textbox"></td>
          </tr>
          <tr>
            <td height="201" align="left" valign="top" class="Textbox"></td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td height="48"  align="left" valign="bottom"></td>
      </tr>
      
    </table></td>
  </tr>
  <tr>
  	<td height="1" colspan="3" align="left" valign="top" class="bgcolor_2" >
  </tr>
  <tr>
    <td height="61" colspan="3" align="left" valign="top" class="bottombg">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="24%" height="62" rowspan="2" align="left" valign="top">&nbsp;</td>
        <td width="24%" align="center" valign="bottom"><input type="button" class="button_style" name="back_button" value="&lt; Bakt" loc="value:id=IDS_BUTTON_BACK"/></td>
        <td width="27%" align="center" valign="bottom"><input type="button" class="button_style" name="next_button" value="Nsta &gt;" loc="value:id=IDS_BUTTON_NEXT"/></td>
        <td width="25%" align="center" valign="bottom"><input type="button" class="button_style" name="cancel_button" value="Avbryt" loc="value:id=IDS_BUTTON_CANCEL"/></td>
        </tr>
      <tr>
		<td align="center" valign="top"><img src="images/Cancel_shd1.png" ></td>
        <td width="26%" align="center" valign="top"><img src="images/Cancel_shd1.png" ></td>
        <td width="26%" align="center" valign="top"><img src="images/Cancel_shd1.png" ></td>      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
