
	<form method="post" action="index.php?Step=4" onsubmit="return CheckStep3()">
	<table id="Table5" cellSpacing="0" cellPadding="0" width="95%" align="center">
		<tr>
			<td class="Heading1">Step 3 of 4: Database Settings</td>
		</tr>
		<tr>
			<td class="intro">
				<div>
					Please enter the details for your database in the form shown below.<br>The database tables and fields will be created for you automatically.
				</div>
				<div style="display: %%GLOBAL_HideErrorPanel%%">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="Message">
				<tr>
					<td width="20"><img src="images/error.gif" width="18" height="18" hspace="10" vspace="5" align="middle"></td>
					<td>
						An error occured while trying to build your database: %%GLOBAL_Error%%<br />
						This error usually occurs because the MySQL details you entered were invalid. Please check the details and try again.
					</td>
				</tr>
				</table>
				</div>
			</td>
		</tr>
		<tr>
			<td>
				<table class="Panel" id="Table7" width="98%">
					<tr>
						<td class="Heading2" colspan="2">Database Settings</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							<span class="Required">*</span>&nbsp;MySQL Server:
						</td>
						<td>
							<input type="text" name="mySQLServer" id="mySQLServer" value="%%GLOBAL_mySQLServer%%" class="Field300">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, 'MySQL Server', 'The server where your MySQL database exists, such as \'localhost\'.')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							<span class="Required">*</span>&nbsp;MySQL Username:
						</td>
						<td>
							<input type="text" name="mySQLUser" id="mySQLUser" value="%%GLOBAL_mySQLUser%%" class="Field300">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, 'MySQL Username', 'The username required to connect to the MySQL database, such as \'root\' or \'user\'.')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							&nbsp;&nbsp;&nbsp;MySQL Password:
						</td>
						<td>
							<input type="password" name="mySQLPass" value="%%GLOBAL_mySQLPass%%" class="Field300">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, 'MySQL Password', 'The password required to connect to the MySQL database, such as \'pass\'.')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							<span class="Required">*</span>&nbsp;MySQL Database:
						</td>
						<td>
							<input type="text" name="mySQLDatabase" id="mySQLDatabase" value="%%GLOBAL_mySQLDatabase%%" class="Field300">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, 'MySQL Database', 'The name of your MySQL database, such as \'activekb\'.')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							&nbsp;&nbsp;&nbsp;Table Prefix:
						</td>
						<td>
							<input type="text" name="tablePrefix" value="%%GLOBAL_tablePrefix%%" class="Field300">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, 'Table Prefix', 'The prefix of all database tables, such as \'ActiveKB_\'')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<TR>
						<TD class="Gap" colSpan="2"></TD>
					</TR>
					<TR>
						<TD class="FieldLabel"></TD>
						<TD>
							<input type="submit" name="Step1NextButton" value="Next >>" class="FormButton">&nbsp;<INPUT class="FormButton" id="Step1FinishButton" disabled type="button" value="Finish"
								name="Step1FinishButton">&nbsp;
							</TD>
					</TR>
					<TR>
						<TD class="Gap" colSpan="2"></TD>
					</TR>
				</TABLE>
			</TD>
		</TR>
	</TABLE>
	</form>

	<script type="text/javascript" language="javascript">

		function CheckStep3()
		{
			if (document.getElementById("mySQLServer").value == "") {
				alert("Please enter your MySQL server.");
				document.getElementById("mySQLServer").focus();
				return false;
			}

			if (document.getElementById("mySQLUser").value == "") {
				alert("Please enter your MySQL username.");
				document.getElementById("mySQLUser").focus();
				return false;
			}

			if (document.getElementById("mySQLDatabase").value == "") {
				alert("Please enter your MySQL database name.");
				document.getElementById("mySQLDatabase").focus();
				return false;
			}

			return true;
		}

	</script>
