<%@ page errorPage="errorPage.jsp" language="java" session="true" contentType="text/html;charset=ISO-8859-2" %>
<%@ page import="com.etixpert.evolution.gui.servlets.*"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>	
<%@ include file="header.jsp" %>
<%@ include file="check.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="main.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- JavaScript code hiding
	function changeSel(which){
		window = open("leftMenu.jsp?sel="+which, "_self", "");
	}

	function simpleLink(origLink) {
		parent.mainFrame.location = origLink;
	}


	function link(origLink){
		if (top.mainFrame.document.forms.length == 0) {
			simpleLink(origLink);
			return;
		}
		else {
			if (top.mainFrame.document.forms[0].saveState == null) {
				simpleLink(origLink); 
				return;
			}
			top.mainFrame.document.forms[0].saveState.value = top.mainFrame.self.location.pathname;
			top.mainFrame.document.forms[0].link.value = origLink;
			top.mainFrame.document.forms[0].submit();
		}
	}
	
	function sWait() {
		 document.all['showWait'].style.display='block';
 		 document.all['noShowWait'].style.display='none';
	}
	
	function hWait() {
		 document.all['noShowWait'].style.display='block';
  		 document.all['showWait'].style.display='none';
	}	
// -->
</SCRIPT>
</head>
<body bgcolor="#e6eee6" onLoad="hWait();">
<div width="800" height="30" align="left" class="menu"><%=FormHelperC.generateInteressentDataHeaderString(pageContext)%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="menu" href="process/interessent_selection.jsp">Anderen Interessent auswählen</a></div>
<table border="1" id="userTable" class="menu">
<jsp:include page="MenuHelper.jsp">
	<jsp:param name="self_id" value="2740"/>
	<jsp:param name="parent_id" value="2700"/>	
</jsp:include>

</table>
<form action="process/interessent_detail_modify.jsp" method="post">
<input type="hidden" name="saveState"/>
<input type="hidden" name="pageAction"/>
<input type="hidden" name="link" value="process/interessent_detail_modify.jsp"/>
  <table width="800" border="0" cellpadding="0" cellspacing="0" id="userDetailsTable" class="normal">
    <!--DWLayoutTable-->
    <tr> 
      <td width="293" height="30" valign="top" id="userTableContentMainTitles"><fmt:message key="SELECT_OPTION"/>:  </td>
      <td width="76">&nbsp;</td>
      <td width="431">&nbsp;</td>
    </tr>
    <tr>
      <td height="30">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td height="30" valign="top" id="userTableContentTitles"><a href="javascript:top.mainFrame.document.forms[0].pageAction.value = 'interessent_modify'; link('process/interessent_detail_modify.jsp');" onClick="javascript:sWait();"><fmt:message key="SAVE_MOD"/></a></td>
      <td>&nbsp;</td>
      <td valign="top" id="userTableContentFields"><a href="javascript:top.mainFrame.document.forms[0].pageAction.value = 'load_interessent'; link('process/interessent_detail_personal.jsp');"><fmt:message key="REVERT_TO_DB"/></a></td>
    </tr>
    
   <%
	boolean admin = session.getAttribute("admin")!=null;

    %>

    <tr> 
      <td height="329">&nbsp;</td>
      <td>&nbsp;</td>
      <td id="userTableContentMainTitles"><%
      	if (session.getAttribute("INTERESSENT_MODIFIED")!=null) {
      		String id = (String)session.getAttribute("CURRENT_INTERESSENT_ID");
      		out.print(id!=null?id:"");out.print(" wurde erfolgreich geändert!");
      	}
      	session.setAttribute("INTERESSENT_MODIFIED", null);
      %></td>
    </tr>
    <tr>
      <td colspan="3" id="userTableContentFields" height="30"><div id="showWait" style="display:none;">&nbsp;&nbsp;&nbsp;&nbsp;<fmt:message key="PLEASE_WAIT"/></div><div id="noShowWait" style="display:none;">&nbsp;</div></td>
    </tr>       
  </table>
</form>
</body>
</html>
