 	var form=enableProxy.form;
 	var disable=!enableProxy.checked;
 	var fields=['server','port','username','password'];
-	
+
 	for(var i=0;i<fields.length;i++) {
 		var field=fields[i];
 		form[field].disabled=disable;

<cfset error.message="">
<cfset error.detail="">

<cfadmin 
	action="getProxy"
	type="#request.adminType#"
	password="#session["password"&request.adminType]#"
	returnVariable="proxy">

<cfadmin 
	action="securityManager"
	type="#request.adminType#"
	password="#session["password"&request.adminType]#"

<tr>
	<td colspan="2">#stText.proxy[request.adminType]#</td>
</tr>

<tr>
	<td colspan="2"><h2>#stText.proxy.settings#</h2></td>
</tr>
<!--- Server --->
<tr>
	<th scope="row">#stText.proxy.server#</th>
	<td>
		<div class="comment">#stText.proxy.serverDescription#</div><br />
		<cfif hasAccess>
		<cfinputClassic type="text" name="server" value="#proxy.server#"
			style="width:200px" required="no">

		<cfelse>
			<input type="hidden" name="server" value="#proxy.server#">

			<b>#proxy.server#</b>
		</cfif>
	</td>
</tr>

<!--- Port --->
<tr>
	<th scope="row">#stText.proxy.port#</th>
	<td>
		<div class="comment">#stText.proxy.portDescription#</div><br />
		<cfif hasAccess>
		<cfinputClassic type="text" name="port" value="#proxy.port#"
			style="width:50px" required="yes" message="#stText.proxy.missingPort#">

		<cfelse>
			<input type="hidden" name="port" value="#proxy.port#">

			<b>#proxy.port#</b>
		</cfif>
	</td>
</tr>

<!--- Username --->
<tr>
	<th scope="row">#stText.proxy.username#</th>
	<td>
		<div class="comment">#stText.proxy.usernameDescription#</div><br />
		<cfif hasAccess>
		<cfinputClassic type="text" name="username" value="#proxy.username#"
			style="width:200px" required="no">

		<cfelse>
			<input type="hidden" name="username" value="#proxy.username#">

			<b>#proxy.username#</b>
		</cfif>
	</td>
</tr>

<!--- Password --->
<tr>
	<th scope="row">#stText.proxy.password#</th>
	<td>
		<div class="comment">#stText.proxy.passwordDescription#</div><br />
		<cfif hasAccess>
		<cfinputClassic type="password" name="password" value="#proxy.password#"
			style="width:200px" required="no" passthrough='autocomplete="off"'>

		<cfelse>
			<input type="hidden" name="password" value="#proxy.password#">

			<b>#proxy.password#</b>
		</cfif>
	</td>
</tr>

<!--- Enabled --->
<tr>
	<th scope="row">#stText.proxy.enable#</th>
	<td>		
		<cfif hasAccess>
			<cfinputClassic type="checkbox" name="enabled" value="true" checked="#proxy.enabled#">
		<cfelse>
			<input type="hidden" name="eabled" value="#proxy.enabled#">

			<b>#proxy.enabled#</b>
		</cfif>
	</td>
</tr>

<cfif hasAccess>
	<tr>
		<td colspan="2">
			<input class="button submit" type="submit" name="mainAction" value="#stText.Buttons.Update#">
			<input class="button reset" type="reset" name="cancel" value="#stText.Buttons.Cancel#">
		</td>
	</tr>
</cfif>

	
</cfformClassic>

</table></cfoutput>
<br><br>
