<%@ page import="
    org.opencms.workplace.CmsWorkplace,
    org.opencms.workplace.CmsDialog,
	org.opencms.workplace.commons.*,
    org.opencms.widgets.CmsCalendarWidget
"%><%
	// initialize the workplace class
	CmsPreferences wp = new CmsPreferences(pageContext, request, response);
	
//////////////////// start of switch statement 
	
switch (wp.getAction()) {

case CmsDialog.ACTION_CANCEL:		
//////////////////// ACTION: cancel button pressed, leave dialog

	if (!"true".equals(wp.getParamSetPressed())) {
//		wp.actionCloseDialog();
//////////////////// ACTION: reload the workplace window after pressing "cancel"
%>
<html>
<head></head>
<body onload="window.top.head.doReload();"></body>
</html>
<%
		break;
	}	

case CmsPreferences.ACTION_RELOAD:		
//////////////////// ACTION: reload the workplace window after pressing "ok"
%>
<html>
<head></head>
<body onload="window.top.head.doReload();"></body>
</html>
<%
	
break;
case CmsDialog.ACTION_OK:
case CmsDialog.ACTION_SET:		
//////////////////// ACTION: save the preferences

	wp.actionSave();
	
break;
case CmsPreferences.ACTION_CHPWD:
//////////////////// ACTION: change the user password

	wp.actionChangePassword();
	if (wp.getAction() == CmsPreferences.ACTION_ERROR) {
		break;
	}

case CmsDialog.ACTION_DEFAULT:
case CmsPreferences.ACTION_SWITCHTAB:
default:

//////////////////// ACTION: show tab dialog (default)

	wp.setParamAction(CmsDialog.DIALOG_OK);

 %><%= wp.htmlStart() %>
<%= CmsCalendarWidget.calendarIncludes(wp.getLocale()) %>
<%= wp.bodyStart("dialog", "onunload=\"top.closeTreeWin();\"") %>
<%= wp.dialogStart() %>

<form name="main" action="<%= wp.getDialogUri() %>" method="post" class="nomargin" onsubmit="return submitAction('<%= wp.DIALOG_OK %>', null, 'main');">
<%= wp.paramsAsHidden() %><input type="hidden" name="<%= wp.PARAM_FRAMENAME %>" value="">
<%= wp.dialogTabContentStart(wp.getParamTitle(), "style=\"height: 260px;\" id=\"tabcontent\"") %>

<%
switch (wp.getActiveTab()) {
case 1:
	// ########## workplace settings
	%>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_STARTUP_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_LABEL_LANGUAGE_0) %></td><td><%= wp.buildSelectLanguage("name=\"" + wp.PARAM_WORKPLACE_LANGUAGE + "\" style=\"width: 200px;\"") %></td>
			<td>&nbsp;</td>
			<td style="white-space: nowrap;width:100px;"><%= wp.key(Messages.GUI_PREF_STARTUP_SITE_0) %></td><td><%= wp.buildSelectSite("name=\"" + wp.PARAM_WORKPLACE_SITE + "\" style=\"width: 200px;\"") %></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_STARTUP_PROJECT_0) %></td><td><%= wp.buildSelectProject("name=\"" + wp.PARAM_WORKPLACE_PROJECT + "\" style=\"width: 200px;\"") %></td>
			<td>&nbsp;</td>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_STARTUP_FOLDER_0) %></td><td cellpadding="0"><input type="text" name="<%= wp.PARAM_WORKPLACE_FOLDER %>" id="<%= wp.PARAM_WORKPLACE_FOLDER %>" value="<%= wp.getParamTabWpFolder() %>" style="width: 200px;"><%= wp.button("javascript:top.openTreeWin('preferences', false, 'main', '" + wp.PARAM_WORKPLACE_FOLDER + "', document);", null, "folder.png", Messages.GUI_LABEL_SEARCH_0, 0) %></td>
		</tr>
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_STARTUP_VIEW_0) %></td><td><%= wp.buildSelectView("name=\"" + wp.PARAM_WORKPLACE_VIEW + "\" style=\"width: 200px;\"") %></td>
			<td>&nbsp;</td>
			<td colspan="3"><input type="checkbox" name="<%= wp.PARAM_WORKPLACE_RESTRICTEXPLORERVIEW %>" value="true"<%= wp.isChecked(wp.getParamTabWpRestrictExplorerView()) %>> <%= wp.key(Messages.GUI_PREF_RESTRICT_EXPLORER_VIEW_0) %></td>
		</tr>		
		</table>
		<%= wp.dialogBlockEnd() %>
		<%= wp.dialogSpacer() %>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_GENERAL_0)) %>
		<table border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td style="white-space: nowrap;padding:4px;"><%= wp.key(Messages.GUI_PREF_BUTTON_STYLE_0) %></td><td style="padding:4px;"><%= wp.buildSelectWorkplaceButtonStyle("name=\"" + wp.PARAM_WORKPLACE_BUTTONSTYLE + "\" style=\"width: 200px;\"") %></td>
				<td style="padding:4px;">&nbsp;</td>
				<td style="white-space: nowrap;padding 4px;"><input type="checkbox" name="<%= wp.PARAM_WORKPLACE_USEUPLOADAPPLET %>" value="true"<%= wp.isChecked(wp.getParamTabWpUseUploadApplet()) %>> <%= wp.key(Messages.GUI_PREF_USE_UPLOAD_APPLET_0) %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;padding:4px;"><%= wp.key(Messages.GUI_PREF_REPORT_TYPE_0) %></td><td style="padding:4px;"><%= wp.buildSelectReportType("name=\"" + wp.PARAM_WORKPLACE_REPORTTYPE + "\" style=\"width: 200px;\"") %></td>
				<td style="padding:4px;">&nbsp;</td>
				<td style="white-space: nowrap;padding 4px;"><input type="checkbox" name="<%= wp.PARAM_WORKPLACE_SHOWPUBLISHNOTIFICATION %>" value="true"<%= wp.isChecked(wp.getParamTabWpShowPublishNotification()) %>> <%= wp.key(Messages.GUI_PREF_SHOW_PUBLISHNOTIFICATION_0) %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;padding:4px;"><%= wp.key(Messages.GUI_LABEL_TIMEWARP_0) %></td><td style="padding:4px;"> <input type="text" id="<%= wp.PARAM_WORKPLACE_TIMEWARP %>"  name="<%= wp.PARAM_WORKPLACE_TIMEWARP %>"  style="float:left;" value="<%= wp.getParamTabWpTimewarp()%>"/><table border="0" cellpadding="0" cellspacing="0"><tr><td style="vertical-align:top;"><a id="timewarp.widgettrigger"style="float:left;" href="#" class="button" title="<%=org.opencms.workplace.Messages.get().getBundle().key(org.opencms.workplace.Messages.GUI_CALENDAR_CHOOSE_DATE_0) %>"><span unselectable="on" class="norm" onmouseover="className='over'" onmouseout="className='norm'" onmousedown="className='push'" onmouseup="className='over'"><img class="button" src="<%= CmsWorkplace.getSkinUri()%>buttons/calendar.png" alt="<%=org.opencms.workplace.Messages.get().getBundle().key(org.opencms.workplace.Messages.GUI_CALENDAR_CHOOSE_DATE_0) %>" title="<%=org.opencms.workplace.Messages.get().getBundle().key(org.opencms.workplace.Messages.GUI_CALENDAR_CHOOSE_DATE_0) %>"></span></a></td><%= wp.button("javascript:document.getElementById('" + wp.PARAM_WORKPLACE_TIMEWARP + "').value='-'", "", "deletecontent.png", "GUI_DIALOG_BUTTON_RESET_0", 0) %></tr></table></td><%--
				--%><%= CmsCalendarWidget.calendarInit(wp.getMessages(), wp.PARAM_WORKPLACE_TIMEWARP, "timewarp.widgettrigger", "cR", false, false, true, "", true) %>				
				<td style="padding:4px;">&nbsp;</td>
				<td style="white-space: nowrap;padding 4px;"><input type="checkbox" name="<%= wp.PARAM_WORKPLACE_LISTALLPROJECTS %>" value="true"<%= wp.isChecked(wp.getParamTabWpListAllProjects()) %>> <%= wp.key(Messages.GUI_PREF_LIST_ALL_PROJECTS_0) %></td>
			</tr>
		</table>		
		<%= wp.dialogBlockEnd() %>
	<%
break;
case 2:
	// ########## explorer display settings
	%>	
		<script type="text/javascript">
		<!--
			function setToDefault() {
				var theForm = document.forms[0];
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILEENTRIES %>.selectedIndex = 2;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_BUTTONSTYLE %>.selectedIndex = 1;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILETITLE %>.checked = true;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILENAVTEXT %>.checked = true;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILETYPE %>.checked = true;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILEDATELASTMODIFIED %>.checked = true;				
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILEUSERLASTMODIFIED %>.checked = false;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILESIZE %>.checked = false;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILEDATECREATED %>.checked = false;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILEPERMISSIONS %>.checked = false;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILEUSERCREATED %>.checked = false;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILELOCKEDBY %>.checked = false;
				theForm.<%= CmsPreferences.PARAM_EXPLORER_FILESTATE %>.checked = false;
			}
		//-->
		</script>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_GENERAL_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_BUTTON_STYLE_EXPLORER_0) %></td>
			<td><%= wp.buildSelectExplorerButtonStyle("name=\"" + CmsPreferences.PARAM_EXPLORER_BUTTONSTYLE + "\" style=\"width: 200px;\"") %></td>
		</tr>
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_FILES_PER_PAGE_0) %></td>
			<td><%= wp.buildSelectExplorerFileEntries("name=\"" + CmsPreferences.PARAM_EXPLORER_FILEENTRIES + "\" style=\"width: 200px;\"") %></td>
		</tr>
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_SEARCH_RESULT_0) %></td>
			<td><%= wp.buildSelectWorkplaceSearchResult("name=\"" + CmsPreferences.PARAM_EXPLORER_SEARCH_RESULT + "\" style=\"width: 200px;\"") %></td>
		</tr>
		</table>
		<%= wp.dialogBlockEnd() %>
		<%= wp.dialogSpacer() %>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_DISPLAY_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILETITLE %>" value="true"<%= wp.isChecked(wp.getParamTabExFileTitle()) %>> <%= wp.key(Messages.GUI_LABEL_TITLE_0) %></td>
			<td style="width: 40px;">&nbsp;</td>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEDATELASTMODIFIED %>" value="true"<%= wp.isChecked(wp.getParamTabExFileDateLastModified()) %>> <%= wp.key(Messages.GUI_LABEL_DATE_LAST_MODIFIED_0) %></td>
			<td style="width: 40px;">&nbsp;</td>		
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEDATERELEASED %>" value="true"<%= wp.isChecked(wp.getParamTabExFileDateReleased()) %>> <%= wp.key(Messages.GUI_LABEL_DATE_RELEASED_0) %></td>			
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILENAVTEXT %>" value="true"<%= wp.isChecked(wp.getParamTabExFileNavText()) %>> <%= wp.key(Messages.GUI_LABEL_NAVTEXT_0) %></td>
			<td style="width: 40px;">&nbsp;</td>				
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEUSERLASTMODIFIED %>" value="true"<%= wp.isChecked(wp.getParamTabExFileUserLastModified()) %>> <%= wp.key(Messages.GUI_LABEL_USER_LAST_MODIFIED_0) %></td>
			<td style="width: 40px;">&nbsp;</td>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEDATEEXPIRED %>" value="true"<%= wp.isChecked(wp.getParamTabExFileDateExpired()) %>> <%= wp.key(Messages.GUI_LABEL_DATE_EXPIRED_0) %></td>
			<td style="width: 40px;">&nbsp;</td>		
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEPERMISSIONS %>" value="true"<%= wp.isChecked(wp.getParamTabExFilePermissions()) %>> <%= wp.key(Messages.GUI_LABEL_PERMISSIONS_0) %></td>
			<td>&nbsp;</td>		
		</tr>
		<tr>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILETYPE %>" value="true"<%= wp.isChecked(wp.getParamTabExFileType()) %>> <%= wp.key(Messages.GUI_LABEL_TYPE_0) %></td>
			<td style="width: 40px;">&nbsp;</td>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEDATECREATED %>" value="true"<%= wp.isChecked(wp.getParamTabExFileDateCreated()) %>> <%= wp.key(Messages.GUI_LABEL_DATE_CREATED_0) %></td>
			<td style="width: 40px;">&nbsp;</td>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILESTATE %>" value="true"<%= wp.isChecked(wp.getParamTabExFileState()) %>> <%= wp.key(Messages.GUI_LABEL_STATE_0) %></td>
			<td style="width: 40px;">&nbsp;</td>		
			<td>&nbsp;</td>		
		</tr>
		<tr>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILESIZE %>" value="true"<%= wp.isChecked(wp.getParamTabExFileSize()) %>> <%= wp.key(Messages.GUI_LABEL_SIZE_0) %></td>
			<td style="width: 40px;">&nbsp;</td>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILEUSERCREATED %>" value="true"<%= wp.isChecked(wp.getParamTabExFileUserCreated()) %>> <%= wp.key(Messages.GUI_LABEL_CREATED_BY_0) %></td>
			<td style="width: 40px;">&nbsp;</td>
			<td><input type="checkbox" name="<%= CmsPreferences.PARAM_EXPLORER_FILELOCKEDBY %>" value="true"<%= wp.isChecked(wp.getParamTabExFileLockedBy()) %>> <%= wp.key(Messages.GUI_LABEL_LOCKED_BY_0) %></td>		
			<td style="width: 40px;">&nbsp;</td>		
			<td>&nbsp;</td>		
		</tr>
		</table>
		<%= wp.dialogBlockEnd() %>
	<%
break;
case 3:
	// ########## dialogs settings
	%>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_DEFAULT_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_DIALOG_COPY_FILE_0) %></td><td><%= wp.buildSelectCopyFileMode("name=\"" + wp.PARAM_DIALOGS_COPYFILEMODE + "\" style=\"width: 250px;\"") %></td>
				<td style="width: 40px;">&nbsp;</td>
				<td style="white-space: nowrap;"><input type="checkbox" name="<%= wp.PARAM_DIALOGS_SHOWLOCK %>" value="true"<%= wp.isChecked(wp.getParamTabDiShowLock()) %>> <%= wp.key(Messages.GUI_PREF_SHOW_LOCK_DIALOG_0) %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_DIALOG_COPY_FOLDER_0) %></td><td colspan="3"><%= wp.buildSelectCopyFolderMode("name=\"" + wp.PARAM_DIALOGS_COPYFOLDERMODE + "\" style=\"width: 250px;\"") %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_DIALOG_DELETE_FILE_0) %></td><td colspan="3"><%= wp.buildSelectDeleteFileMode("name=\"" + wp.PARAM_DIALOGS_DELETEFILEMODE + "\" style=\"width: 250px;\"") %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_DIALOG_DIRECT_PUBLISH_0) %></td><td colspan="3"><%= wp.buildSelectPublishSiblings("name=\"" + wp.PARAM_DIALOGS_PUBLISHFILEMODE + "\" style=\"width: 250px;\"") %></td>
			</tr>
		</table>			
		<%= wp.dialogBlockEnd() %>
		<%= wp.dialogSpacer() %>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_PERMISSIONS_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
			<tr>
				<td style="white-space: nowrap;"><input type="checkbox" name="<%= wp.PARAM_DIALOGS_PERMISSIONS_INHERITONFOLDER %>" value="true"<%= wp.isChecked(wp.getParamTabDiPermissionsInheritOnFolder()) %>> <%= wp.key(Messages.GUI_PREF_PERMISSIONS_FOLDERS_INHERIT_0) %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;"><input type="checkbox" name="<%= wp.PARAM_DIALOGS_PERMISSIONS_EXPANDUSER %>" value="true"<%= wp.isChecked(wp.getParamTabDiPermissionsExpandUser()) %>> <%= wp.key(Messages.GUI_PREF_PERMISSIONS_EXPAND_USER_0) %></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;"><input type="checkbox" name="<%= wp.PARAM_DIALOGS_PERMISSIONS_EXPANDINHERITED %>" value="true"<%= wp.isChecked(wp.getParamTabDiPermissionsExpandInherited()) %>> <%= wp.key(Messages.GUI_PREF_PERMISSIONS_EXPAND_INHERITED_0) %></td>
			</tr>
		</table>			
		<%= wp.dialogBlockEnd() %>
	<%
break;
case 4:
	// ########## editor settings
	%>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_GENERAL_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_BUTTON_STYLE_EDITOR_0) %></td>
			<td><%= wp.buildSelectEditorButtonStyle("name=\"" + wp.PARAM_EDITOR_BUTTONSTYLE + "\" style=\"width: 200px;\"") %></td>
		</tr>
		<tr>
			<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_BUTTON_STYLE_DIRECT_EDIT_0) %></td>
			<td><%= wp.buildSelectDirectEditButtonStyle("name=\"" + wp.PARAM_DIRECTEDIT_BUTTONSTYLE + "\" style=\"width: 200px;\"") %></td>
		</tr>
		</table>
		<%= wp.dialogBlockEnd() %>
		<%= wp.dialogSpacer() %>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_SETTINGS_EDITORS_0)) %>
		<table border="0" cellpadding="4" cellspacing="0">
		<%= wp.buildSelectPreferredEditors("style=\"width: 200px;\"") %>
		</table>
		<%= wp.dialogBlockEnd() %>
	<%
break;
case 5:
	// ########## user data settings
	%>
		<script type="text/javascript">
		<!--
			function togglePassword() {
				var element = document.getElementById("changepwd");
    			var cl = element.className;
    			if (cl == "hide") {
        			element.className = "show";
        			document.getElementById("tabcontent").style.height = "320px"; 
    			} else {
        			element.className = "hide";
        			document.getElementById("tabcontent").style.height = "260px";
    			}
			}
			
			function changePassword() {
				var pwdForm = document.forms[0];
				var oldPwd = pwdForm.<%= wp.PARAM_OLDPASSWORD %>.value;
				var newPwd = pwdForm.<%= wp.PARAM_NEWPASSWORD %>.value;
				var conPwd = pwdForm.confirmpassword.value;
				if (oldPwd == null || newPwd == null || conPwd == null || oldPwd == "" || newPwd == "" || conPwd == "") {
					alert("<%= wp.key(Messages.ERR_MISSING_FIELDS_0) %>");
					return;
				}
				if (newPwd == conPwd) {
					pwdForm.<%= wp.PARAM_ACTION %>.value = "<%= wp.DIALOG_CHPWD %>";
					pwdForm.submit();
				} else {
					alert("<%= wp.key(Messages.ERR_CHPWD_NO_MATCH_0) %>");
				}
			}
		//-->
		</script>
		<%= wp.dialogBlockStart(wp.key(Messages.GUI_PREF_PERSONAL_DATA_0)) %>
		<%= wp.buildUserInformation() %>
		<%= wp.dialogBlockEnd() %>
		<%= wp.dialogSpacer() %>
		<input type="button" class="dialogbutton" style="margin-left: 0px; width: 120px;" value="<%= wp.key(Messages.GUI_PREF_CHPWD_0) %>" onclick="togglePassword();">
		<%= wp.dialogSpacer() %>
		<div class="hide" id="changepwd">
			<%= wp.dialogBlockStart("") %>
			<table border="0" cellpadding="4" cellspacing="0">
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_CURRENT_PWD_0) %></td>
				<td><input type="password" name="<%= wp.PARAM_OLDPASSWORD %>" maxlength="32" style="width: 200px;"></td>
			</tr>
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_NEW_PWD_0) %></td>
				<td><input type="password" name="<%= wp.PARAM_NEWPASSWORD %>" maxlength="32" style="width: 200px;"></td> 
			</tr>
			<tr>
				<td style="white-space: nowrap;"><%= wp.key(Messages.GUI_PREF_PWD_REPEAT_0) %></td>
				<td><input type="password" name="confirmpassword" maxlength="32" style="width: 200px;"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="button" class="dialogbutton" style="margin-left: 0px;" value="<%= wp.key(Messages.GUI_LABEL_OK_0) %>" onclick="changePassword();"></td>
			</tr>
			</table>
			<%= wp.dialogBlockEnd() %>
		</div>
	<%
} // end of switch tab statement
%>

<%= wp.dialogTabContentEnd() %>
<%= wp.dialogButtonsSetOkCancel(null, null, null) %>
</form>

<%= wp.dialogEnd() %>
<%= wp.bodyEnd() %>
<%= wp.htmlEnd() %>
<%
} 
//////////////////// end of switch action statement 
%>