<!--
// ==============================================================================
// File Name           : index_wizard_step3.htm
// Description         : index wizard step3
// 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------------>		
<title>Sharpdesk Search Setup</title>
<!--End of the Title------------->		
<style>
@media all
{
  sds\:checklist {behavior:url(checklist.htc)}
}
</style>
<!-----------------CSS File Location (Default Blue theme  load)----------------------->		
<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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<!-----------------End of the CSS File Location (Default Blue theme  load)------------>	
	
</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 language="VBScript" src="vb_utils.js"></script>
<script language="JavaScript" src="ui_utils.js"></script>

<script language="JavaScript">
var mode;
var extensions;

function OnAllButtonClick()
{
  SelectAllCheckListItems(document.all.extension_list);
}

function OnNoneButtonClick()
{
  ClearAllCheckListItems(document.all.extension_list);
}

function OnDefaultButtonClick()
{
  // clear the entire list first
  ClearAllCheckListItems(document.all.extension_list);
  
  // select all extensions in the default list
  SelectCheckListItems(document.all.extension_list,
    GetDefaultExtensions());
}
</script>

<script language="JavaScript" for="window" event="onload()">
mode = GetURLParameter(location.search, "mode");
DisplayTitle(mode, "3", document.all.title_area);

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


SetCheckListItems(document.all.extension_list, GetExtensions());
SelectCheckListItems(document.all.extension_list, GetIncludedExtensions());
</script>

<script language="JavaScript" for="all_button" event="onclick()">
OnAllButtonClick();
</script>

<script language="JavaScript" for="none_button" event="onclick()">
OnNoneButtonClick();
</script>

<script language="JavaScript" for="set_to_default_button" event="onclick()">
OnDefaultButtonClick();
</script>

<script language="JavaScript" for="back_button" event="onclick()">
location = "index_wizard_step2.htm" + location.search;
</script>

<script language="JavaScript" for="next_button" event="onclick()">
extensions = GetSelectedCheckListItems(document.all.extension_list);
if(!IsIncludedExtensionSelected(extensions))
{
  alert("At least one file extension must be selected for indexing.");
  return;
}

SetIncludedExtensions(extensions);

if(mode == "all")
  location = "index_wizard_step4.htm" + location.search;
else if(mode == "config")
  location = "index_wizard_step4_config.htm" + location.search;
else
  alert("Invalid mode specified.");
</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()">
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" colspan="2" align="left" valign="top" class="Textbox"><span id="title_area"></span></td>
          </tr>
          <tr>
            <td height="18" colspan="2" align="left" valign="top" class="Textbox">Select all file extensions you want to index.
	  Sharpdesk Search will find only the file types you select, within the folders you have chosen. </td>
          </tr>
          <tr>
            <td colspan="2" align="left" valign="top" class="Textbox"><br>File Extensions to Index:<br/> 
		  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="120">
      <tr class="Textbox">  
        <td rowspan="3"  class="Textbox">
		  <sds:checklist id="extension_list" width="100%" height="135" /> 
        </td>
        <td align="center" valign="middle" > 
            <input type="button" class="button_style" name="all_button" value="All"/></td>
      </tr>
      <tr> 
        <td width="40%" align="center" valign="middle"> 
                <input type="button" class="button_style" name="none_button" value="None"/></td>
      </tr>
      <tr> 
        <td width="40%" align="center" valign="middle">           
            <input type="button" class="button_style1" name="set_to_default_button" value="Set to Default"/></td>
      </tr>
    </table>
	</td>
          </tr>
          
        </table></td>
        </tr>
      <tr>
        <td height="48"  align="left" valign="bottom">&nbsp;</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; Back"/></td>
        <td width="27%" align="center" valign="bottom"><input type="button" class="button_style" name="next_button" value="Next &gt;"/></td>
        <td width="25%" align="center" valign="bottom"><input type="button" class="button_style" name="cancel_button" value="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>
