<!--
// ==============================================================================
// File Name           : index_wizard_step5.htm
// Description         : index wizard step5 
// 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------------->		
<!-----------------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"/>
<link rel="stylesheet" href="search.css"/>
<!-----------------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="JavaScript" src="external_io.js"></script>
<script language="JavaScript" src="indexing_schedule.js"></script>
<script language="JavaScript" src="ui_utils.js"></script>

<script language="JavaScript" for="window" event="onload()">
var values = GetDailyIndexingSchedule();
SetDateBox(document.all.daily_start_date, values["StartDate"]);
SetTimeBox(document.all.daily_start_time, values["StartTime"]);
</script>

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

<script language="JavaScript" for="next_button" event="onclick()">
var new_values = new Array();
new_values["OnOff"] = "on";
new_values["Option"] = "daily";
new_values["Daily/StartDate"] = GetDateBox(document.all.daily_start_date);
new_values["Daily/StartTime"] = GetTimeBox(document.all.daily_start_time);
new_values["Daily/Option"] = "1";
//new_values["Weekly/StartDate"] = new_values["Daily/StartDate"];
//new_values["Weekly/StartTime"] = new_values["Daily/StartTime"];
//new_values["Weekly/Monday"] = "false";
//new_values["Weekly/Tuesday"] = "false";
//new_values["Weekly/Wednesday"] = "false";
//new_values["Weekly/Thursday"] = "false";
//new_values["Weekly/Friday"] = "false";
//new_values["Weekly/Saturday"] = "false";
//new_values["Weekly/Sunday"] = "false";

if(!SetIndexingSchedule(new_values))
  alert("Indexing Schedule will not be saved.\n");

location = "index_wizard_step6.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()">
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">
  
  <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> <b>Step 5 of 6</b></td>
          </tr>
          <tr>
            <td height="18" colspan="2" align="left" valign="top" class="Textbox">Select the date and time you want scheduled indexing to start.
	  Indexing will be performed in the background automatically every day at the specified time.  Additional options are available in Sharpdesk.</td>
          </tr>
          <tr>
            <td colspan="2" align="left" valign="top" class="Textbox"><br><br/> 
		  <table width="100%" border="0" cellpadding="0" cellspacing="0" height="80%">
        <tr>
          <td class="Textbox">
		    Start Date:<br/>
            <object id="daily_start_date" class="date_entry" classid="clsid:D58612F4-2E23-4810-852F-745FBAA95D7A">
			  <param name="DTFLAG" value="1"/>
			</object>
		  </td>
        </tr>
        <tr>
          <td class="Textbox">
		    Start Time:<br/>
            <object id="daily_start_time" class="time_entry" classid="clsid:D58612F4-2E23-4810-852F-745FBAA95D7A">
			  <param name="DTFLAG" value="2"/>
			</object>
		  </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>
