<%--
  ~ This file is part of DebGen Biobank Software developed by ASTRID Research.
  ~ All rights reserved. Reproduction, modification, use or disclosure
  ~ to third parties without express authority is forbidden.
  ~
  ~ Copyright ASTRID Research Inc., Hungary, 2009-2011.
  ~
  ~ ASTRID Research
  ~ Headquaters: Csapo utca 42. Debrecen H-4029 HUNGARY
  ~ Phone: +36-52-533-173        Fax: +36-52-533-174
  ~ Web: http://www.astrid.hu    E-mail: info@astrid.hu
  ~
  ~ Project name: DebGen Biobank Software project.
  ~ URLS:
  ~ Developers: Istvan Zoltan Nagy (istvan.nagy@astrid.hu)
  --%>

<%--
    Document   : createmodule
    Created on : Dec 14, 2009, 10:40:14 AM
    Author     : inagy
--%>

<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="/WEB-INF/dateformat.tld" prefix="da" %>
<script type="text/javascript" src="javascript/telepulesek.js"></script>
<%--<link type="text/css" href="stylesheet/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="javascript/jquery-1.3.2.js"></script>
<script type="text/javascript" src="javascript/ui.core.js"></script>--%>
<script type="text/javascript" src="javascript/ui.datepicker.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheet/jquery.autocomplete.css" />
<!--script type="text/javascript" src="http://www.google.com/jsapi"></script-->
<script type="text/javascript">
    setWebTitle('<fmt:message key="biobankModule" />');
        <c:if test="${user.languageCode eq 'HU'}">
        /* Hungarian initialisation for the jQuery UI date picker plugin. */
    /* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */
    jQuery(function($){
        $.datepicker.regional['hu'] = {
            closeText: 'bezárás',
            prevText: '&laquo; vissza',
            nextText: 'előre &raquo;',
            currentText: 'ma',
            monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
                'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
                'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
            dayNames: ['Vasárnap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
            dayNamesMin: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
            dayNamesShort: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
            dateFormat: 'yy. mm. dd.', firstDay: 1,
            isRTL: false};
        $.datepicker.setDefaults($.datepicker.regional['hu']);
    });

        </c:if>

        //google.load("jquery", "1");

    $(document).ready(function(){
        $("#indicationOfAnalysis").autocomplete("autocompleteindication.html", {listall: 'true'});
        $("#fishUsedTest").autocomplete("autocompletefishtests.html", {listall: 'true'});

        $("#fishSampleTakenOn").datepicker({
            changeMonth: true,
            changeYear: true,
            maxDate: '+1d',
            yearRange: '1900:2500'
                <c:if test="${not empty module and module.objectType eq 'fish'}">, defaultDate: new Date( ${module.fishSampleTakenOn.time} )</c:if>

            });
        $("#fishSampleTakenOn").datepicker('option', {dateFormat: 'yy. mm. dd.'});

        $("#achoUsedTest").autocomplete("autocompleteachotests.html", {listall: 'true'});
        $("#achoSampleTakenOn").datepicker({
            changeMonth: true,
            changeYear: true,
            maxDate: '+1d',
            yearRange: '1900:2500'
                <c:if test="${not empty module and module.objectType eq 'acho'}">, defaultDate: new Date( ${module.achoSampleTakenOn.time} )</c:if>
            });
        $("#achoSampleTakenOn").datepicker('option', {dateFormat: 'yy. mm. dd.'});

        $("#hypoUsedTest").autocomplete("autocompletehypotests.html", {listall: 'true'});
        $("#hypoSampleTakenOn").datepicker({
            changeMonth: true,
            changeYear: true,
            maxDate: '+1d',
            yearRange: '1900:2500'
                <c:if test="${not empty module and module.objectType eq 'hypo'}">, defaultDate: new Date( ${module.hypoSampleTakenOn.time} )</c:if>
            });
        $("#hypoSampleTakenOn").datepicker('option', {dateFormat: 'yy. mm. dd.'});

        $("#fmrUsedTest").autocomplete("autocompletefmrtests.html", {listall: 'true'});
        $("#fmrSampleTakenOn").datepicker({
            changeMonth: true,
            changeYear: true,
            maxDate: '+1d',
            yearRange: '1900:2500'
                <c:if test="${not empty module and module.objectType eq 'fmr1'}">, defaultDate: new Date( ${module.fmrSampleTakenOn.time} )</c:if>
            });
        $("#fmrSampleTakenOn").datepicker('option', {dateFormat: 'yy. mm. dd.'});

        autocompleteOff();
            <c:if test="${param.type eq 1}">
            <c:if test="${not empty param.fill}">
            useCitogenTemplate(${param.fill});
            </c:if>
            showHide('citogen');
            </c:if>
            <c:if test="${param.type eq 2}">
            <c:if test="${not empty param.fill}">
            useFISHTemplate(${param.fill});
            </c:if>
            showHide('fish');
            </c:if>
            <c:if test="${param.type eq 3}">
            <c:if test="${not empty param.fill}">
            useAchoTemplate(${param.fill});
            </c:if>
            showHide('acho');
            </c:if>
            <c:if test="${param.type eq 4}">
            <c:if test="${not empty param.fill}">
            useHypoTemplate(${param.fill});
            </c:if>
            showHide('hypo');
            </c:if>
            <c:if test="${param.type eq 5}">
            <c:if test="${not empty param.fill}">
            useFMRTemplate(${param.fill});
            </c:if>
            showHide('fmr1');
            </c:if>
        });


    function showHide(value) {
        if (value == 'citogen') {
            document.getElementById('citogen').style.display = 'block';
            document.getElementById('citogenSelect').style.display = 'block';
        } else {
            document.getElementById('citogen').style.display = 'none';
            document.getElementById('citogenSelect').style.display = 'none';
        }
        if (value == 'fish') {
            document.getElementById('fish').style.display = 'block';
            document.getElementById('fishSelect').style.display = 'block';
        } else {
            document.getElementById('fish').style.display = 'none';
            document.getElementById('fishSelect').style.display = 'none';
        }
        if (value == 'acho') {
            document.getElementById('acho').style.display = 'block';
            document.getElementById('achoSelect').style.display = 'block';
        } else {
            document.getElementById('acho').style.display = 'none';
            document.getElementById('achoSelect').style.display = 'none';
        }
        if (value == 'hypo') {
            document.getElementById('hypo').style.display = 'block';
            document.getElementById('hypoSelect').style.display = 'block';
        } else {
            document.getElementById('hypo').style.display = 'none';
            document.getElementById('hypoSelect').style.display = 'none';
        }
        if (value == 'fmr1') {
            document.getElementById('fmr').style.display = 'block';
            document.getElementById('fmrSelect').style.display = 'block';
        } else {
            document.getElementById('fmr').style.display = 'none';
            document.getElementById('fmrSelect').style.display = 'none';
        }
    }


        <c:if test="${empty module.id}">
        function useCitogenTemplate(value) {
            <c:forEach var="template" items="${templates}">
            <c:if test="${template.objectType eq 'citogen'}">
            if (value == ${template.id}) {
            document.getElementById('sampleOfAnalysis').value = '${template.sampleOfAnalysis}';
            //document.getElementById('sampleOfAnalysis').onchange();
            document.getElementById('indicationOfAnalysis').value = '${template.indicationOfAnalysis}';
            document.getElementById('citTenyesztesiIdo').value = '${template.citTenyesztesiIdo}';
            //document.getElementById('citTenyesztesiIdo').onchange();
            document.getElementById('citNumberOfMetaPhases').value = '${template.citNumberOfMetaPhases gt 0 ? template.citNumberOfMetaPhases : ''}';
            document.getElementById('citAnalysedMetaPhases').value = '${template.citAnalysedMetaPhases gt 0 ? template.citAnalysedMetaPhases : ''}';
            document.getElementById('citCountedMetaPhases').value = '${template.citAnalysedMetaPhases gt 0 ? template.citCountedMetaPhases : ''}';
            document.getElementById('citTrackingTechnique').value = '${template.citTrackingTechnique}';
            //document.getElementById('citTrackingTechnique').onchange();
            document.getElementById('citKaryotype').value = '${template.citKaryotype}';
            document.getElementById('citResultInformation').innerHTML = '${template.citResultInformationForWeb}'.replace(new RegExp('<br />', 'g'),'\n');
        }
            </c:if>
            </c:forEach>
        }
        </c:if>

        <c:if test="${empty module.id}">
        function useFISHTemplate(value) {
            <c:forEach var="template" items="${templates}">
            <c:if test="${template.objectType eq 'fish'}">
            if (value == ${template.id}) {
            document.getElementById('sampleOfAnalysis').value = '${template.sampleOfAnalysis}';
            document.getElementById('indicationOfAnalysis').value = '${template.indicationOfAnalysis}';
            document.getElementById('fishSampleTakenOn').value = '${template.fishSampleTakenOnForWeb}';
            document.getElementById('fishTenyesztesiIdo').value = '${template.fishTenyesztesiIdo}';
            document.getElementById('fishUsedTest').value = '${template.fishUsedTest}';
            document.getElementById('fishResult').innerHTML = '${template.fishResultForWeb}'.replace(new RegExp('<br />', 'g'),'\n');
            document.getElementById('fishOpinion').value = '${template.fishOpinion}';
        }
            </c:if>
            </c:forEach>
        }
        </c:if>

        <c:if test="${empty module.id}">
        function useAchoTemplate(value) {
            <c:forEach var="template" items="${templates}">
            <c:if test="${template.objectType eq 'acho'}">
            if (value == ${template.id}) {
            document.getElementById('sampleOfAnalysis').value = '${template.sampleOfAnalysis}';
            document.getElementById('indicationOfAnalysis').value = '${template.indicationOfAnalysis}';
            document.getElementById('achoSampleTakenOn').value = '${template.achoSampleTakenOnForWeb}';
            document.getElementById('achoUsedTest').value = '${template.achoUsedTest}';
            document.getElementById('achoResult').innerHTML = '${template.achoResultForWeb}'.replace(new RegExp('<br />', 'g'),'\n');
            document.getElementById('achoOpinion').value = '${template.achoOpinion}';
            document.getElementById('achoDifference').value = '${template.achoDifference}';
        }
            </c:if>
            </c:forEach>
        }
        </c:if>

        <c:if test="${empty module.id}">
        function useHypoTemplate(value) {
            <c:forEach var="template" items="${templates}">
            <c:if test="${template.objectType eq 'hypo'}">
            if (value == ${template.id}) {
            document.getElementById('sampleOfAnalysis').value = '${template.sampleOfAnalysis}';
            document.getElementById('indicationOfAnalysis').value = '${template.indicationOfAnalysis}';
            document.getElementById('hypoSampleTakenOn').value = '${template.hypoSampleTakenOnForWeb}';
            document.getElementById('hypoUsedTest').value = '${template.hypoUsedTest}';
            document.getElementById('hypoResult').innerHTML = '${template.hypoResultForWeb}'.replace(new RegExp('<br />', 'g'),'\n');
            document.getElementById('hypoOpinion').innerHTML = '${template.hypoOpinionForWeb}'.replace(new RegExp('<br />', 'g'),'\n');
            document.getElementById('hypoDifference').value = '${template.hypoDifference}';
        }
            </c:if>
            </c:forEach>
        }
        </c:if>

        <c:if test="${empty module.id}">
        function useFMRTemplate(value) {
            <c:forEach var="template" items="${templates}">
            <c:if test="${template.objectType eq 'fmr1'}">
            if (value == ${template.id}) {
            document.getElementById('sampleOfAnalysis').value = '${template.sampleOfAnalysis}';
            document.getElementById('indicationOfAnalysis').value = '${template.indicationOfAnalysis}';
            document.getElementById('fmrSampleTakenOn').value = '${template.fmrSampleTakenOnForWeb}';
            document.getElementById('fmrUsedTest').value = '${template.fmrUsedTest}';
            document.getElementById('fmrResult').innerHTML = '${template.fmrResultForWeb}'.replace(new RegExp('<br />', 'g'),'\n');
        }
            </c:if>
            </c:forEach>
        }
        </c:if>

        function limitText(limitField, limitNum) {
        if (limitField.value.length > limitNum) {
            limitField.value = limitField.value.substring(0, limitNum);
        }
    }

</script>
<script type="text/javascript" src="javascript/jquery.autocomplete.js"></script>
<script type="text/javascript" src="javascript/jquery.form.js"></script>
<div class="window500">
    <div class="title"><fmt:message key="biobankModule" /></div>
    <div class="content">
        <div style="padding: 10px;">
            <table border="0" cellspacing="10" cellpadding="5">
                <tbody>
                    <tr>
                        <td id="head" class="patientheader" ></td>
                        <td><fmt:message key="biobankModule" /></td>
                </tr>
                </tbody>
            </table>
            <div id="line" style="width: 476px;" class="patientline">
                <fmt:message key="BIOBANK_MODULE_DATA" />
            </div>
            <form name="module" action="savemodule.html" method="POST">
                <input id="id" type="hidden" name="id" value="${module.id}" />
                <input type="hidden" name="patient" value="${patient.id}">

                <%@ include file="../showembedederror.jsp" %>
                <div id="userdiv">
                    <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                        <tbody>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="patientCode" />:</td>
                        <td style="width: 340px;"><a href="showpatient.html?patient=${patient.id}">${patient.patientCode}</a>
                            <input class="input" type="hidden" name="patientCode" value="${patient.patientCode}">
                        </td>
                        </tr>
                        <c:if test="${not patient.named}">
                            <tr>
                                <td style="width: 112px;" ><fmt:message key="monogram" />:</td>
                            <td>
                                ${patient.anonymousData.monogram}
                            </td>
                            </tr>
                        </c:if>
                        <c:if test="${patient.named}">
                            <tr>
                                <td style="width: 112px;"><fmt:message key="BETEG_NEV" />:</td>
                            <td>${patient.identity.patientName}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="TAJ" />:</td>
                            <td>${patient.identity.tajNumber}</td>
                            </tr>
                        </c:if>
                        <tr>
                            <td style="width: 112px;" ><fmt:message key="requestIdChooser" />:</td>
                        <td style="width: 340px;"><%--<select id="requestId" class="styled" name="requestId">
                                <!--c:if test="${empty patient.unboundAnalysisRequests}"--><option value="0" ${empty patient.unboundAnalysisRequests ? 'selected' : ''}><fmt:message key="noRequest" /></option><!--/c:if-->
                                <c:forEach var="item" items="${patient.unboundAnalysisRequests}">
                                    <option value="${item.id}" ${empty first ? 'selected' : ''}>${item.createdOnForWeb} - <fmt:message key="${item.localizeableName}" /></option>
                                    <c:set var="first" value="false" />
                                </c:forEach>
                            </select>--%>
                        <c:if test="${not empty request}">${request.createdOnForWeb} - <fmt:message key="${request.localizeableName}" /></c:if>
                        <c:if test="${empty request}"><fmt:message key="noRequest" /></c:if>
                        <input name="requestId" type="hidden" value="${empty request ? '0' : request.id}"/>
                        </td>
                        </tr>
                        <tr>
                            <td style="width: 112px;"><fmt:message key="moduleType" />:</td>
                        <td style="width: 340px;">
                        <c:if test="${empty module}">
                            <input id="objectType" type="hidden" name="objectType" value="${param.type eq 1 ? 'citogen' : ''}${param.type eq 2 ? 'fish' : ''}${param.type eq 3 ? 'acho' : ''}${param.type eq 4 ? 'hypo' : ''}${param.type eq 5 ? 'fmr1' : ''}" />
                            <fmt:message key="${param.type eq 1 ? 'citogen' : ''}${param.type eq 2 ? 'fish' : ''}${param.type eq 3 ? 'acho' : ''}${param.type eq 4 ? 'hypo' : ''}${param.type eq 5 ? 'fmr1' : ''}Module" />
                            <!--select id="objectType" class="styled" name="objectType" onclick="return showHide(document.getElementById('objectType').value);">
                                <option value="citogen" ${empty module or module.objectType eq 'citogen' or param.type eq 'citogen' ? 'selected' : ''}><fmt:message key="citogenModule" /></option>
                            </select-->
                        </c:if>
                        <c:if test="${not empty module}">
                            <input id="objectType" type="hidden" name="objectType" value="${module.objectType}" />
                            <fmt:message key="${module.objectType}Module" />
                        </c:if>
                        </td>
                        </tr>
                        </tbody>
                    </table>
                    <c:if test="${empty module.id}">
                        <div style="display: none">
                            <div id="citogenSelect" style="display: ${empty module or module.objectType eq 'citogen' ? 'block' : 'none'}">
                                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                                    <tbody>
                                        <tr>
                                            <td style="width: 112px;" ><fmt:message key="useTemplate" />:</td>
                                    <td style="width: 340px;"><select id="citogenTemplate" class="styled" name="citogenTemplate" onclick="return useCitogenTemplate(document.getElementById('citogenTemplate').value);">
                                            <option value="0" selected><fmt:message key="dontUseTemplate" /></option>
                                            <c:forEach var="item" items="${templates}">
                                                <c:if test="${item.objectType eq 'citogen'}">
                                                    <option value="${item.id}">${item.templateName}</option>
                                                </c:if>
                                            </c:forEach>
                                        </select>
                                    </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div id="fishSelect" style="display: ${empty module or module.objectType eq 'fish' ? 'block' : 'none'}">
                                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                                    <tbody>
                                        <tr>
                                            <td style="width: 112px;" ><fmt:message key="useTemplate" />:</td>
                                    <td style="width: 340px;"><select id="fishTemplate" class="styled" name="fishTemplate" onclick="return useFISHTemplate(document.getElementById('fishTemplate').value);">
                                            <option value="0" selected><fmt:message key="dontUseTemplate" /></option>
                                            <c:forEach var="item" items="${templates}">
                                                <c:if test="${item.objectType eq 'fish'}">
                                                    <option value="${item.id}">${item.templateName}</option>
                                                </c:if>
                                            </c:forEach>
                                        </select>
                                    </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div id="achoSelect" style="display: ${empty module or module.objectType eq 'acho' ? 'block' : 'none'}">
                                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                                    <tbody>
                                        <tr>
                                            <td style="width: 112px;" ><fmt:message key="useTemplate" />:</td>
                                    <td style="width: 340px;"><select id="achoTemplate" class="styled" name="achoTemplate" onclick="return useAchoTemplate(document.getElementById('achoTemplate').value);">
                                            <option value="0" selected><fmt:message key="dontUseTemplate" /></option>
                                            <c:forEach var="item" items="${templates}">
                                                <c:if test="${item.objectType eq 'acho'}">
                                                    <option value="${item.id}">${item.templateName}</option>
                                                </c:if>
                                            </c:forEach>
                                        </select>
                                    </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div id="hypoSelect" style="display: ${empty module or module.objectType eq 'hypo' ? 'block' : 'none'}">
                                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                                    <tbody>
                                        <tr>
                                            <td style="width: 112px;" ><fmt:message key="useTemplate" />:</td>
                                    <td style="width: 340px;"><select id="hypoTemplate" class="styled" name="hypoTemplate" onclick="return useHypoTemplate(document.getElementById('hypoTemplate').value);">
                                            <option value="0" selected><fmt:message key="dontUseTemplate" /></option>
                                            <c:forEach var="item" items="${templates}">
                                                <c:if test="${item.objectType eq 'hypo'}">
                                                    <option value="${item.id}">${item.templateName}</option>
                                                </c:if>
                                            </c:forEach>
                                        </select>
                                    </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div id="fmrSelect" style="display: ${empty module or module.objectType eq 'fmr1' ? 'block' : 'none'}">
                                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                                    <tbody>
                                        <tr>
                                            <td style="width: 112px;" ><fmt:message key="useTemplate" />:</td>
                                    <td style="width: 340px;"><select id="fmrTemplate" class="styled" name="fmrTemplate" onclick="return useFMRTemplate(document.getElementById('fmrTemplate').value);">
                                            <option value="0" selected><fmt:message key="dontUseTemplate" /></option>
                                            <c:forEach var="item" items="${templates}">
                                                <c:if test="${item.objectType eq 'fmr1'}">
                                                    <option value="${item.id}">${item.templateName}</option>
                                                </c:if>
                                            </c:forEach>
                                        </select>
                                    </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </c:if>
                    <div id="common">
                        <div class="patientline"><fmt:message key="moduleData" /></div>
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;" ><fmt:message key="sampleOfAnalysis" />:</td>
                            <td style="width: 340px;"><select id="sampleOfAnalysis" class="styled" name="sampleOfAnalysis">
                                    <option value="DNA" ${empty module or module.sampleOfAnalysis eq 'DNA' ? 'selected' : ''}><fmt:message key="DNA" /></option>
                                    <option value="BONEMARROW" ${module.sampleOfAnalysis eq 'BONEMARROW' ? 'selected' : ''}><fmt:message key="BONEMARROW" /></option>
                                    <option value="BLOOD" ${module.sampleOfAnalysis eq 'BLOOD' ? 'selected' : ''}><fmt:message key="BLOOD" /></option>
                                    <!--<option value="BLOOD_DNA" ${module.sampleOfAnalysis eq 'BLOOD_DNA' ? 'selected' : ''}><fmt:message key="BLOOD_DNA" /></option>
                                    <option value="BLOOD_BONEMARROW" ${module.sampleOfAnalysis eq 'BLOOD_BONEMARROW' ? 'selected' : ''}><fmt:message key="BLOOD_BONEMARROW" /></option>
                                    <option value="DNA_BONEMARROW" ${module.sampleOfAnalysis eq 'DNA_BONEMARROW' ? 'selected' : ''}><fmt:message key="DNA_BONEMARROW" /></option>
                                    <option value="DNA_BONEMARROW_BLOOD" ${module.sampleOfAnalysis eq 'DNA_BONEMARROW_BLOOD' ? 'selected' : ''}><fmt:message key="DNA_BONEMARROW_BLOOD" /></option>-->
                                </select>
                                    <!--input id="sampleOfAnalysis" class="required" type="text" name="sampleOfAnalysis" value="${module.sampleOfAnalysis}" /-->
                            </td>
                            </tr>
                            <tr>
                                <td style="width: 112px;" ><fmt:message key="indicationOfAnalysis" />:</td>
                            <td style="width: 340px;">
                                <input id="indicationOfAnalysis" class="select" type="text" name="indicationOfAnalysis" value="${module.indicationOfAnalysis}" />
                            </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="citogen" style="display: ${empty module or module.objectType eq 'citogen' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="tenyesztesiIdo" />:</td>
                            <td style="width: 340px;"><select id="citTenyesztesiIdo" class="styled" name="citTenyesztesiIdo">
                                    <option value="DIREKT" ${empty module or (module.objectType eq 'citogen' and module.citTenyesztesiIdo eq 'DIREKT') ? 'selected' : ''}><fmt:message key="DIREKT" /></option>
                                    <option value="24" ${module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '24' ? 'selected' : ''}><fmt:message key="24" /></option>
                                    <option value="48" ${module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '48' ? 'selected' : ''}><fmt:message key="48" /></option>
                                    <option value="72" ${module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '72' ? 'selected' : ''}><fmt:message key="72" /></option>
                                    <option value="48PHA" ${(module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '48PHA') ? 'selected' : ''}><fmt:message key="48PHA" /></option>
                                    <option value="72PHA" ${(module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '72PHA') ? 'selected' : ''}><fmt:message key="72PHA" /></option>
                                    <option value="72TPA" ${(module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '72TPA') ? 'selected' : ''}><fmt:message key="72TPA" /></option>
                                </select></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="analysedMetaPhases" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="citAnalysedMetaPhases" name="citAnalysedMetaPhases" value="${module.objectType eq 'citogen' and module.citAnalysedMetaPhases gt 0 ? module.citAnalysedMetaPhases : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="countedMetaPhases" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="citCountedMetaPhases" name="citCountedMetaPhases" value="${module.objectType eq 'citogen' and module.citCountedMetaPhases gt 0 ? module.citCountedMetaPhases : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="trackingTechnique" />:</td>
                            <td style="width: 340px;"><select id="citTrackingTechnique" class="styled" name="citTrackingTechnique">
                                    <option value="GTRACK" ${empty module or (module.objectType eq 'citogen' and module.citTrackingTechnique eq 'GTRACK') ? 'selected' : ''}><fmt:message key="GTRACK" /></option>
                                </select></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="karyotype" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="citKaryotype" name="citKaryotype" value="${module.objectType eq 'citogen' ? module.citKaryotype : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="resultInformation" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="citResultInformation" name="citResultInformation">${module.objectType eq 'citogen' ? module.citResultInformation : ''}</textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="fish" style="display: ${module.objectType eq 'fish' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="fishSampleTakenOn" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="fishSampleTakenOn" name="fishSampleTakenOn" value="${module.objectType eq 'fish' ? module.fishSampleTakenOn : ''}"/></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishTenyesztesiIdo" />:</td>
                            <td style="width: 340px;"><select id="fishTenyesztesiIdo" class="styled" name="fishTenyesztesiIdo">
                                    <option value="DIREKT" ${empty module or (module.objectType eq 'fish' and module.fishTenyesztesiIdo eq 'DIREKT') ? 'selected' : ''}><fmt:message key="DIREKT" /></option>
                                    <option value="24" ${module.objectType eq 'fish' and module.fishTenyesztesiIdo eq '24' ? 'selected' : ''}><fmt:message key="24" /></option>
                                    <option value="48" ${module.objectType eq 'fish' and module.fishTenyesztesiIdo eq '48' ? 'selected' : ''}><fmt:message key="48" /></option>
                                    <option value="72" ${module.objectType eq 'fish' and module.fishTenyesztesiIdo eq '72' ? 'selected' : ''}><fmt:message key="72" /></option>
                                    <option value="48PHA" ${(module.objectType eq 'fish' and module.fishTenyesztesiIdo eq '48PHA') ? 'selected' : ''}><fmt:message key="48PHA" /></option>
                                    <option value="72PHA" ${(module.objectType eq 'fish' and module.fishTenyesztesiIdo eq '72PHA') ? 'selected' : ''}><fmt:message key="72PHA" /></option>
                                    <option value="72TPA" ${(module.objectType eq 'fish' and module.fishTenyesztesiIdo eq '72TPA') ? 'selected' : ''}><fmt:message key="72TPA" /></option>
                                </select></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishUsedTest" />:</td>
                            <td style="width: 340px;"><input class="select" type="text" id="fishUsedTest" name="fishUsedTest" value="${module.objectType eq 'fish' ? module.fishUsedTest : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishResult" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="fishResult" name="fishResult">${module.objectType eq 'fish' ? module.fishResult : ''}</textarea></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishOpinion" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="fishOpinion" name="fishOpinion">${module.objectType eq 'fish' ? module.fishOpinion : ''}</textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="acho" style="display: ${module.objectType eq 'acho' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="achoSampleTakenOn" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="achoSampleTakenOn" name="achoSampleTakenOn" value="${module.objectType eq 'acho' ? module.achoSampleTakenOn : ''}"/></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoUsedTest" />:</td>
                            <td style="width: 340px;"><input class="select" type="text" id="achoUsedTest" name="achoUsedTest" value="${module.objectType eq 'acho' ? module.achoUsedTest : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoDifference" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="achoDifference" name="achoDifference" value="${module.objectType eq 'acho' ? module.achoDifference : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoResult" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="achoResult" name="achoResult">${module.objectType eq 'acho' ? module.achoResult : ''}</textarea></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoOpinion" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="achoOpinion" name="achoOpinion">${module.objectType eq 'acho' ? module.achoOpinion : ''}</textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="hypo" style="display: ${module.objectType eq 'hypo' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="hypoSampleTakenOn" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="hypoSampleTakenOn" name="hypoSampleTakenOn" value="${module.objectType eq 'hypo' ? module.hypoSampleTakenOn : ''}"/></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoUsedTest" />:</td>
                            <td style="width: 340px;"><input class="select" type="text" id="hypoUsedTest" name="hypoUsedTest" value="${module.objectType eq 'hypo' ? module.hypoUsedTest : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoDifference" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="hypoDifference" name="hypoDifference" value="${module.objectType eq 'hypo' ? module.hypoDifference : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoResult" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="hypoResult" name="hypoResult">${module.objectType eq 'hypo' ? module.hypoResult : ''}</textarea></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoOpinion" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="hypoOpinion" name="hypoOpinion">${module.objectType eq 'hypo' ? module.hypoOpinion : ''}</textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div id="fmr" style="display: ${module.objectType eq 'fmr1' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="fmrSampleTakenOn" />:</td>
                            <td style="width: 340px;"><input class="input" type="text" id="fmrSampleTakenOn" name="fmrSampleTakenOn" value="${module.objectType eq 'fmr1' ? module.fmrSampleTakenOn : ''}"/></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fmrUsedTest" />:</td>
                            <td style="width: 340px;"><input class="select" type="text" id="fmrUsedTest" name="fmrUsedTest" value="${module.objectType eq 'fmr1' ? module.fmrUsedTest : ''}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fmrResult" />:</td>
                            <td style="width: 340px;"><textarea onKeyDown="limitText(this, 4095);" cols="60" rows="5" class="input" id="fmrResult" name="fmrResult">${module.objectType eq 'fmr1' ? module.fmrResult : ''}</textarea></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!--div class="moduleline"><fmt:message key="labelPrint" /></div-->
                <br />
                <div align="right">
                    <input class="button" name="send" type="submit" style="width: 200px;" value="<fmt:message key="PRINT_AND_SAVE" />"> <input class="button" name="send" type="submit" value="<fmt:message key="MENTÉS" />">
                </div>
            </form>
        </div>
    </div>
    <div class="copyright">
        &copy; 2009-2010 Astrid Research Inc.
    </div>
</div>
