<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<link rel="stylesheet" type="text/css" href="../css/index.css">
		<link rel="stylesheet" media="screen" type="text/css" href="../css/colorpicker.css" />
		
		<title><%=LanguageHelper.getGUIString("title", request) %></title>
		<script type="text/javascript" src="../js/common.js"></script>
		<script src="../js/jquery.js"></script>
		<script type="text/javascript" src="../js/colorpicker.js"></script>
	</head>
	
	<body onload="oaOnLoad()">
		
 		<jsp:include page="snippets/header_userinfos.jsp"></jsp:include>

		<jsp:include page="snippets/main_menu.jsp"></jsp:include>
		
		<div id="information_area">
			<s:if test="hasActionErrors()">
   			<div id="error_area">
   				<label><%=LanguageHelper.getGUIString("error.title", request) %></label>
      			<s:actionerror/>
   			</div>
			</s:if>	
			
			<div id="list_area">
				<h2><%=LanguageHelper.getGUIString("webpages.oaconfig.header", request) %></h2>
								
				<s:form namespace="/secure" method="POST" enctype="multipart/form-data">
				
				
					<div class="oa_config_block">
					
						<s:if test="authUser.isAdmin()">
							<s:checkbox name="generalOA.Active" 
								value="%{generalOA.Active}"
								labelposition="left"
								key="webpages.oaconfig.general.isActive"
								cssClass="checkbox">
							</s:checkbox>
						</s:if>
					
						<s:textfield name="generalOA.identifier" 
							value="%{generalOA.identifier}" 
							labelposition="left"
							key="webpages.oaconfig.general.identification"
							cssClass="textfield_long">
						</s:textfield>
									
 						<s:textfield name="generalOA.friendlyName" 
							value="%{generalOA.friendlyName}" 
							labelposition="left"
							key="webpages.oaconfig.general.friendlyname"
							cssClass="textfield_long">
						</s:textfield>

                        <s:checkbox name="generalOA.businessService"
                                    value="%{generalOA.businessService}"
                                    labelposition="left"
                                    key="webpages.oaconfig.general.isbusinessservice"
                                    cssClass="checkbox"
                                    onclick="oaBusinessService();"
                                    id="OAisbusinessservice"
                                    >
                        </s:checkbox>


                        <s:checkbox name="generalOA.storkService"
                                    value="%{generalOA.storkService}"
                                    labelposition="left"
                                    key="webpages.oaconfig.general.isstorkservice"
                                    cssClass="checkbox"
                                    onclick="oaStorkService();"
                                    id="OAisstorkservice"
                                    disabled="%{isOnlyStorkService()}">
                        </s:checkbox>

					</div>
					
 					<div id="oa_config_businessservice" class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.business.header", request) %></h3>
						
						<s:select list="generalOA.identificationTypeList"
											key="webpages.oaconfig.general.business.value"
											labelposition="left"
											cssClass="selectfield"
											value="%{generalOA.identificationType}"
											name="generalOA.identificationType"
											disabled="%{isDeaktivededBusinessService()}">
						</s:select>
						
						<s:textfield name="generalOA.identificationNumber" 
							value="%{generalOA.identificationNumber}" 
							cssClass="textfield_middle"
							disabled="%{isDeaktivededBusinessService()}">
						</s:textfield>		
					</div>

                    <div id="oa_config_storkservice" class="oa_config_block">
                        <h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.stork.header", request) %></h3>
                        <s:textfield name="generalOA.storkSPTargetCountry"
                                     labelposition="left"
                                     key="webpages.oaconfig.general.stork.countrycode"
                                     value="%{generalOA.storkSPTargetCountry}"
                                     cssClass="textfield_middle"
                                     disabled="%{isDeactivatedStorkService()}">
                        </s:textfield>
                    </div>
					
					<s:if test="!isOnlyBusinessService()">
						<div id="oa_config_publicservice" class="oa_config_block">
							<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.public.header", request) %></h3>
							
							<s:if test="authUser.isAdmin()">
								<s:select list="generalOA.targetList"
													key="webpages.oaconfig.general.target"
													labelposition="left"
													cssClass="selectfield"
													value="%{generalOA.target}"
													name="generalOA.target"
													onchange="HideAdminTarget();">
								</s:select>						
							</s:if>
							<s:else>
								<s:select list="generalOA.targetList"
													key="webpages.oaconfig.general.target"
													labelposition="left"
													cssClass="selectfield"
													value="%{generalOA.target}"
													name="generalOA.target">
								</s:select>
							</s:else>
							
							<s:checkbox name="subTargetSet" 
								value="%{subTargetSet}"
								labelposition="left"
								key="webpages.oaconfig.general.target.subsector.checkbox"
								cssClass="checkbox"
								onclick="oaTargetSubSector();"
								id="OAisTargetSubSector">
							</s:checkbox>
							
							<s:textfield name="generalOA.target_subsector" 
								value="%{generalOA.target_subsector}" 
								labelposition="left"
								key="webpages.oaconfig.general.target.subsector"
								cssClass="selectfield"
								id="OAtarget_subsector">
							</s:textfield>
							
							
	 						<s:if test="authUser.isAdmin()">
	 							<s:checkbox
		 							name="generalOA.AdminTarget" 
									value="%{generalOA.AdminTarget}"
									cssClass="checkbox"
	 								onclick="AdminTarget();"
	 								labelposition="left"
									key="webpages.oaconfig.general.target.admin.checkbox"
									id="adminTarget">
	 							</s:checkbox>
	 							
	 							<div id="admin_target_area">
									<s:textfield name="generalOA.target_admin" 
										value="%{generalOA.target_admin}" 
										labelposition="left"
										key="webpages.oaconfig.general.target.admin"
										cssClass="textfield_short">
									</s:textfield>
									<s:textfield name="generalOA.targetFriendlyName" 
										value="%{generalOA.targetFriendlyName}" 
										labelposition="left"
										key="webpages.oaconfig.general.target.friendlyname"
										cssClass="textfield_long">
									</s:textfield>
								</div>
	 						</s:if>
	 						<s:else>
	 							<s:if test="generalOA.target_admin neq null">
	 								<s:textfield name="generalOA.target_admin" 
										value="%{generalOA.target_admin}" 
										labelposition="left"
										key="webpages.oaconfig.general.target.admin.disabled"
										cssClass="textfield_short"
										disabled="true">
									</s:textfield>
								</s:if>
	<%-- 							<s:if test="generalOA.targetFriendlyName neq null">
									<s:textfield name="generalOA.targetFriendlyName" 
										value="%{generalOA.targetFriendlyName}" 
										labelposition="left"
										key="webpages.oaconfig.general.target.friendlyname.disabled"
										cssClass="textfield_long">
									</s:textfield>
								</s:if> --%>
	 						</s:else>
						</div>
					</s:if>
					
					<s:if test="authUser.isAdmin()">
						<div class="oa_config_block">
							<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.bku.header", request) %></h3>
							
							<s:textfield name="generalOA.bkuOnlineURL" 
								value="%{generalOA.bkuOnlineURL}" 
								labelposition="left"
								key="webpages.oaconfig.general.bku.online"
								cssClass="textfield_long">
							</s:textfield>
	
							<s:textfield name="generalOA.bkuHandyURL" 
								value="%{generalOA.bkuHandyURL}" 
								labelposition="left"
								key="webpages.oaconfig.general.bku.handy"
								cssClass="textfield_long">
							</s:textfield>
	
							<s:textfield name="generalOA.bkuLocalURL" 
								value="%{generalOA.bkuLocalURL}" 
								labelposition="left"
								key="webpages.oaconfig.general.bku.local"
								cssClass="textfield_long">
							</s:textfield>
							
							<s:radio list="generalOA.keyBoxIdentifierList"
								name="generalOA.keyBoxIdentifier"
								value="%{generalOA.keyBoxIdentifier}"
								labelposition="left"
								key="webpages.oaconfig.general.bku.keyboxidentifier"
								cssClass="radio">
							</s:radio>						
							<s:checkbox name="generalOA.legacy" 
								value="%{generalOA.legacy}"
								labelposition="left"
								key="webpages.oaconfig.general.bku.legacy"
								cssClass="checkbox"
								onclick="oaLegacyService();"
								id="OAislegacy">
							</s:checkbox>
							<div id="oa_config_sltemplates">
								<s:textfield name="generalOA.SLTemplateURL1" 
									value="%{generalOA.SLTemplateURL1}" 
									labelposition="left"
									key="webpages.oaconfig.general.bku.sltemplate.first"
									cssClass="textfield_long">
								</s:textfield>
								<s:textfield name="generalOA.SLTemplateURL2" 
									value="%{generalOA.SLTemplateURL2}" 
									labelposition="left"
									key="webpages.oaconfig.general.bku.sltemplate.second"
									cssClass="textfield_long">
								</s:textfield>
								<s:textfield name="generalOA.SLTemplateURL3" 
									value="%{generalOA.SLTemplateURL3}" 
									labelposition="left"
									key="webpages.oaconfig.general.bku.sltemplate.third"
									cssClass="textfield_long">
								</s:textfield>
							</div>
							
							<div class="oa_protocol_area">
								<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.general.bku.bkuselection.header", request) %></h4>
								<s:iterator value="%{generalOA.bkuSelectionFileUploadFileName}" var="fileNameBKU">
									<div class="floatClass">
										<s:label key="webpages.oaconfig.general.bku.bkuselection.filename" value="%{fileNameBKU}"/>
										<s:checkbox key="webpages.oaconfig.general.bku.delete"
																labelposition="left"														
																cssClass="checkbox"
																name="generalOA.deleteBKUTemplate"></s:checkbox>
									</div>
									<div id="pvp2_certificate_upload">
										<s:file name="generalOA.bkuSelectionFileUpload" key="webpages.oaconfig.general.bku.bkuselection.upload" cssClass="textfield_long"></s:file>
									</div>
								</s:iterator>
								<s:if test="generalOA.bkuSelectionFileUploadFileName.size() == 0">
										<div id="pvp2_certificate_upload">
										<s:file name="generalOA.bkuSelectionFileUpload" key="webpages.oaconfig.general.bku.bkuselection.upload" cssClass="textfield_long"></s:file>
									</div>
								</s:if>
							</div>
							<div class="oa_protocol_area">
								<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.general.bku.sendassertion.header", request) %></h4>
								<s:iterator value="%{generalOA.sendAssertionFileUploadFileName}" var="fileNameBKU">
									<div class="floatClass">
										<s:label 	key="webpages.oaconfig.general.bku.sendassertion.filename" 
															value="%{fileNameBKU}"/>
										<s:checkbox key="webpages.oaconfig.general.bku.delete"
																labelposition="left"														
																cssClass="checkbox"
																name="generalOA.deleteSendAssertionTemplate"></s:checkbox>
									</div>
									<div id="pvp2_certificate_upload">
										<s:file name="generalOA.sendAssertionFileUpload" key="webpages.oaconfig.general.bku.sendassertion.upload" cssClass="textfield_long"></s:file>
									</div>
								</s:iterator>
								<s:if test="generalOA.sendAssertionFileUploadFileName.size() == 0">
										<div id="pvp2_certificate_upload">
										<s:file name="generalOA.sendAssertionFileUpload" key="webpages.oaconfig.general.bku.sendassertion.upload" cssClass="textfield_long"></s:file>
									</div>
								</s:if>
							</div>
							
						</div>
					</s:if>
					
					<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.mandate.header", request) %></h3>
						
						
						<s:checkbox name="generalOA.useMandates" 
												value="%{generalOA.useMandates}"
												labelposition="left"
												key="webpages.oaconfig.general.mandate.usemandate"
												cssClass="checkbox">
						</s:checkbox>	
						
						<s:textfield name="generalOA.mandateProfiles" 
							value="%{generalOA.mandateProfiles}" 
							labelposition="left"
							key="webpages.oaconfig.general.mandate.profiles"
							cssClass="textfield_long">
						</s:textfield>
						
						<s:checkbox name="formOA.onlyMandateAllowed" 
									value="%{formOA.onlyMandateAllowed}"
									labelposition="left"
									key="webpages.oaconfig.general.BKUSelection.isOnlyMandateLoginAllowed"
									cssClass="checkbox">
						</s:checkbox>
						
					</div>

					<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.sso.header", request) %></h3>
						
						<s:checkbox name="ssoOA.useSSO" 
							value="%{ssoOA.useSSO}"
							labelposition="left"
							key="webpages.oaconfig.sso.usesso"
							cssClass="checkbox"
							onclick="oaSSOService();"
							id="OAuseSSO">
						</s:checkbox>
						
						<div id="sso_bock">
							<s:if test="authUser.isAdmin()">
								<s:checkbox name="ssoOA.showAuthDataFrame" 
									value="%{ssoOA.showAuthDataFrame}"
									labelposition="left"
									key="webpages.oaconfig.sso.useauthdataframe"
									cssClass="checkbox"
									onclick="oaBusinessService();">
								</s:checkbox>
							</s:if>
					
<%--TODO: insert if SLO is implemented!!!--%> 
<%--							<s:textfield name="ssoOA.singleLogOutURL" 
								value="%{ssoOA.singleLogOutURL}" 
								labelposition="left"
								key="webpages.oaconfig.sso.singlelogouturl"
								cssClass="textfield_long">
							</s:textfield> --%>
						</div>
					</div>

					<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.stork.header", request) %></h3>

						<s:checkbox name="storkOA.storkLogonEnabled" 
							value="%{storkOA.storkLogonEnabled}"
							labelposition="left"
							key="webpages.oaconfig.stork.usestork"
							cssClass="checkbox"
							onclick="oaStork();"
							id="OAuseSTORKLogon" />
						<div id="stork_block">
							<s:select list="#{1:'1', 2:'2', 3:'3', 4:'4'}"
								value="#{storkOA.qaa}"
								name="storkOA.qaa"
								key="webpages.moaconfig.stork.qaa"
								labelposition="left" />
							<h4>Attributes</h4>
							<table>
								<tr><th>verwendet</th><th>Attributname</th><th>mandatory</th></tr>
								<s:iterator value="storkOA.helperAttributes" status="stat">
									<tr><td><s:checkbox name="storkOA.helperAttributes[%{#stat.index}].used" value="%{used}" disabled="%{readOnly}" /></td>
										<td><s:property value="%{name}" /><s:hidden name="storkOA.helperAttributes[%{#stat.index}].name" value="%{name}" /></td>
										<td><s:checkbox name="storkOA.helperAttributes[%{#stat.index}].mandatory" value="%{mandatory}" /></td></tr>
								</s:iterator>
							</table>
						</div>
					</div>

					<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.protocols.header", request) %></h3>
						
							<s:if test="authUser.isAdmin() || saml1OA.isActive()">
								<button  type="button" class="oa_buttons" onclick="oaSAML1();" id="button_smal1_show">
									<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.saml1.show", request) %>
								</button>
								<button type="button" class="oa_buttons" onclick="oaSAML1();" id="button_saml1_hidden">
									<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.saml1.hidden", request) %>
								</button>
								
								<button  type="button" class="oa_buttons" onclick="oaVIDP();" id="button_vidp_show">
									<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.vidp.show", request) %>
								</button>
								<button type="button" style="display:none" class="oa_buttons" onclick="oaVIDP();" id="button_vidp_hidden">
									<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.vidp.hidden", request) %>
								</button>
							</s:if>
							
							<button type="button" class="oa_buttons" onclick="oaPVP2();" id="button_pvp2_show">
								<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.pvp2.show", request) %>
						  </button>
							<button type="button" class="oa_buttons" onclick="oaPVP2();" id="button_pvp2_hidden">
								<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.pvp2.hidden", request) %>
						  </button>
						  
						  <button type="button" class="oa_buttons" onclick="oaOAuth20();" id="button_oauth20_show">
								<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.oauth20.show", request) %>
						  </button>
							<button type="button" style="display:none" class="oa_buttons" onclick="oaOAuth20();" id="button_oauth20_hidden">
								<%=LanguageHelper.getGUIString("webpages.oaconfig.menu.oauth20.hidden", request) %>
						  </button>
						  						
						<div id="oa_saml1_area" class="oa_protocol_area hidden">
							<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.protocols.saml1.header", request) %></h4>
							
							<s:if test="authUser.isAdmin()">
								<s:checkbox name="saml1OA.Active" 
									value="%{saml1OA.Active}"
									labelposition="left"
									key="webpages.oaconfig.saml1.isActice"
									cssClass="checkbox">
								</s:checkbox>
							</s:if>
							<s:checkbox name="saml1OA.provideStammZahl" 
								value="%{saml1OA.provideStammZahl}"
								labelposition="left"
								key="webpages.oaconfig.saml1.provideStammZahl"
								cssClass="checkbox">
							</s:checkbox>
							<s:checkbox name="saml1OA.provideAuthBlock" 
								value="%{saml1OA.provideAuthBlock}"
								labelposition="left"
								key="webpages.oaconfig.saml1.provideAuthBlock"
								cssClass="checkbox">
							</s:checkbox>
							<br>
							<s:checkbox name="saml1OA.provideIdentityLink" 
								value="%{saml1OA.provideIdentityLink}"
								labelposition="left"
								key="webpages.oaconfig.saml1.provideIdentityLink"
								cssClass="checkbox">
							</s:checkbox>							
							<s:checkbox name="saml1OA.provideCertificate" 
								value="%{saml1OA.provideCertificate}"
								labelposition="left"
								key="webpages.oaconfig.saml1.provideCertificate"
								cssClass="checkbox">
							</s:checkbox>
							<s:checkbox name="saml1OA.provideFullMandateData" 
								value="%{saml1OA.provideFullMandateData}"
								labelposition="left"
								key="webpages.oaconfig.saml1.provideFullMandateData"
								cssClass="checkbox">
							</s:checkbox>
<%-- 							<br>
							<br>
							<br>
							<s:checkbox name="saml1OA.useCondition" 
								value="%{saml1OA.useCondition}"
								labelposition="left"
								key="webpages.oaconfig.saml1.useCondition"
								cssClass="checkbox">
							</s:checkbox>
							<s:textfield name="saml1OA.conditionLength" 
								value="%{saml1OA.conditionLength}" 
								labelposition="left"
								key="webpages.oaconfig.saml1.conditionLength"
								cssClass="textfield_short">
							</s:textfield> --%>
							
						</div>
						
						<div id="oa_pvp2_area" class="oa_protocol_area hidden">
							<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.protocols.pvp2.header", request) %></h4>
						
							<s:checkbox 	key="webpages.oaconfig.pvp2.reload"
														labelposition="left"														
														cssClass="checkbox"
														name="pvp2OA.reLoad"></s:checkbox>
						
						  <s:textfield name="pvp2OA.metaDataURL" 
								value="%{pvp2OA.metaDataURL}" 
								labelposition="left"
								key="webpages.oaconfig.pvp2.metaDataURL"
								cssClass="textfield_long">
							</s:textfield>
						
							<s:label key="webpages.oaconfig.pvp2.certifcate.info" value="%{pvp2OA.certificateDN}"/>
							
							<div id="pvp2_certificate_upload">
								<s:file name="pvp2OA.fileUpload" key="webpages.oaconfig.pvp2.certifcate" cssClass="textfield_long"></s:file>
							</div>
						</div>
						
						<div id="oa_oauth20_area" class="oa_protocol_area hidden">
							<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.protocols.oauth20.header", request) %></h4>
						
							<s:label key="webpages.oaconfig.oauth20.clientId" value="%{oauth20OA.clientId}"/>
							
							<s:label key="webpages.oaconfig.oauth20.clientSecret" value="%{oauth20OA.clientSecret}"/>
														
							<s:textfield name="oauth20OA.redirectUri" 
								value="%{oauth20OA.redirectUri}" 
								labelposition="left"
								key="webpages.oaconfig.oauth20.redirectUri"
								cssClass="textfield_long">
							</s:textfield>
						</div>
						
											
						<div id="oa_vidp_area" class="oa_protocol_area">
							<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.stork.header", request) %></h4>
	
							<p><s:checkbox name="storkOA.vidpEnabled" 
								value="%{storkOA.vidpEnabled}"
								labelposition="left"
								key="webpages.oaconfig.vidp.enabled"
								cssClass="checkbox"
								id="OAuseVidp" /></p>
							<h5><%=LanguageHelper.getGUIString("webpages.oaconfig.vidp.ap.list", request) %></h5>
							<table id="stork_aplist">
								<tr><th>AP Plugin</th><th>URL</th><th>Attribute (CSV)</th></tr>
								<s:iterator value="storkOA.attributeProviderPlugins" status="stat">
								  <tr><td><s:select name="storkOA.attributeProviderPlugins[%{#stat.index}].name" value="%{name}" list="%{storkOA.availableAttributeProviderPlugins}"/></td>
								      <td><s:textfield name="storkOA.attributeProviderPlugins[%{#stat.index}].url" value="%{url}" cssClass="textfield_mail"/></td>
								      <td><s:textfield name="storkOA.attributeProviderPlugins[%{#stat.index}].attributes" value="%{attributes}" cssClass="textfield_mail"/></td>
								      <td><input type="button" value="<%=LanguageHelper.getGUIString("webpages.oaconfig.vidp.ap.remove", request) %>" onclick='this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);'/></td></tr>
								</s:iterator>
							</table>
							<input type="button" value="<%=LanguageHelper.getGUIString("webpages.oaconfig.vidp.ap.new", request) %>" onclick='newAp();' />
								
						</div>
					</div>


					<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.aditional.header", request) %></h3>
												
<%-- 				<s:checkbox name="generalOA.calculateHPI" 
							value="%{generalOA.calculateHPI}"
							labelposition="left"
							key="webpages.oaconfig.general.aditional.calculateHPI"
							cssClass="textfield_long">
						</s:checkbox> --%>
						
						<s:checkbox name="generalOA.HideBPKAuthBlock" 
							value="%{generalOA.HideBPKAuthBlock}"
							labelposition="left"
							key="webpages.oaconfig.general.isHideBPKAuthBlock"
							cssClass="checkbox">
						</s:checkbox>
						
						<s:if test="authUser.isAdmin()">						
							<s:textarea name="generalOA.aditionalAuthBlockText" 
								value="%{generalOA.aditionalAuthBlockText}" 
								labelposition="left"
								key="webpages.oaconfig.general.aditional.authblocktext"
								cssClass="textfield_large">
							</s:textarea>
							
							
							<button type="button" class="oa_buttons" onclick="oaFormCustom();" id="formcustom_button_show">
								<%=LanguageHelper.getGUIString("webpages.oaconfig.general.BKUSelection.button.show", request) %>
						  </button>
							<button type="button" class="oa_buttons" onclick="oaFormCustom();" id="formcustom_button_hidden">
								<%=LanguageHelper.getGUIString("webpages.oaconfig.general.BKUSelection.button.hidden", request) %>
						  </button>
						  						
							<div id="formcustom_area" class="oa_protocol_area hidden">
								<h4><%=LanguageHelper.getGUIString("webpages.oaconfig.general.BKUSelection.header", request) %></h4>
																
								<div id="formCustomValues">													
									<s:textfield name="formOA.backGroundColor" 
										value="%{formOA.backGroundColor}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.backgroundcolor"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("MAIN_BACKGOUNDCOLOR")'
										id="MAIN_BACKGOUNDCOLOR">
									</s:textfield>								
									<s:textfield name="formOA.frontColor" 
										value="%{formOA.frontColor}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.frontcolor"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("MAIN_COLOR")'
										id="MAIN_COLOR">
									</s:textfield>
									
									<s:textfield name="formOA.header_BackGroundColor" 
										value="%{formOA.header_BackGroundColor}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.backgroundcolor"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("HEADER_BACKGROUNDCOLOR")'
										id="HEADER_BACKGROUNDCOLOR">
									</s:textfield>
									<s:textfield name="formOA.header_FrontColor" 
										value="%{formOA.header_FrontColor}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.frontcolor"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("HEADER_COLOR")'
										id="HEADER_COLOR">
									</s:textfield>
									<s:textfield name="formOA.header_text" 
										value="%{formOA.header_text}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.text"
										cssClass="textfield_middle"
										onchange='updateBKUFormPreview("HEADER_TEXT")'
										id="HEADER_TEXT">
									</s:textfield>
									
	<%-- 							<s:textfield name="formOA.button_BackGroundColor" 
										value="%{formOA.button_BackGroundColor}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.button.background"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("BUTTON_BACKGROUNDCOLOR")'
										id="BUTTON_BACKGROUNDCOLOR">
									</s:textfield>
									<s:textfield name="formOA.button_BackGroundColorFocus" 
										value="%{formOA.button_BackGroundColorFocus}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.button.background.focus"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("BUTTON_BACKGROUNDCOLOR_FOCUS")'
										id="BUTTON_BACKGROUNDCOLOR_FOCUS">
									</s:textfield>
									<s:textfield name="formOA.button_FrontColor" 
										value="%{formOA.button_FrontColor}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.button.front"
										cssClass="textfield_middle colorfield"
										onchange='updateBKUFormPreview("BUTTON_COLOR")'
										id="BUTTON_COLOR">
									</s:textfield> --%>
									
									<s:select list="formOA.appletRedirectTargetList"
														key="webpages.oaconfig.general.BKUSelection.redirectTarget"
														labelposition="left"
														cssClass="selectfield"
														value="%{formOA.appletRedirectTarget}"
														name="formOA.appletRedirectTarget">
									</s:select>
									
									<s:textfield name="formOA.applet_height" 
										value="%{formOA.applet_height}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.applet.height"
										cssClass="textfield_middle"
										id="HEADER_HEIGHT">
									</s:textfield>
									
									<s:textfield name="formOA.applet_width" 
										value="%{formOA.applet_width}" 
										labelposition="left"
										key="webpages.oaconfig.general.BKUSelection.header.applet.width"
										cssClass="textfield_middle"
										id="HEADER_WIDTH">
									</s:textfield>
									
									<s:select list="formOA.fontTypeList"
														key="webpages.oaconfig.general.BKUSelection.fonttype.list"
														labelposition="left"
														cssClass="selectfield"
														value="%{formOA.fontType}"
														name="formOA.fontTypeListValue"
														id="fontTypeList"
														onchange='$("#FONTTYPE").val($("#fontTypeList").val());updateBKUFormPreview("FONTTYPE");'>
									</s:select>
									
									<s:textfield 	name="formOA.fontType" 
																value="%{formOA.fontType}" 
																labelposition="left"
																key="webpages.oaconfig.general.BKUSelection.fonttype"
																cssClass="textfield_mail"													
																onchange='updateBKUFormPreview("FONTTYPE")'
																id="FONTTYPE">
									</s:textfield>		
								</div>
								
								<div id="formCustomPreview">
										<iframe scrolling="none" 
														title="BKUForm Preview"
														height="260"
														width="250">
										</iframe>
								</div>
																
							</div>
						</s:if>
							
					</div>
					
					<s:hidden name="formID" 
							value="%{formID}"></s:hidden>
					
					<div id="button_area">
					
						<s:submit key="webpages.edit.back" action="cancleandbackOA"/>		
						
						<s:submit key="webpages.edit.save" action="saveOA"/>
						
						<s:if test="!isNewOA()">
							<s:submit key="webpages.edit.delete" action="deleteOA"/>
						</s:if>								
					</div>
				
				</s:form>
			</div>
			
		</div>
		
		<jsp:include page="snippets/footer.jsp"></jsp:include>
		
	</body>
</html>