<%--
  ~ 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   : createtemplate
    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="moduleTemplate" />');
        <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 'fmr'}">, defaultDate: new Date( ${module.fmrSampleTakenOn.time} )</c:if>
            });
        $("#fmrSampleTakenOn").datepicker('option', {dateFormat: 'yy. mm. dd.'});

        autocompleteOff();
    });


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

    function showHideBoxes(nodename, value) {
        var node = document.getElementById(nodename);
        node.style.display = (value ? 'block' : 'none');
        if (!value) {
            var elements = node.getElementsByTagName('input');
            for (i = 0; elements[i]; i++) {
                if (elements[i].type == 'checkbox') {
                    elements[i].checked = false;
                }
            }
        }

    }

    function checkAllOrNone(where) {
        var root = document.getElementById(where+'Div');
        var original = document.getElementById(where);
        var children = root.getElementsByTagName('input');
        for(i = 0; children[i]; i++) {
            if (children[i].type == 'checkbox' || children[i].type == 'radio') {
                children[i].checked = original.checked;
            }
        }
    }

    function check(where) {
        document.getElementById(where).checked = true;
    }

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

    function checkAndShowHide(what) {
        if (what == 'oncohaem') {
            document.getElementById('useAtOncohaem').checked = !document.getElementById('useAtOncohaem').checked;
            showHideBoxes(what, document.getElementById('useAtOncohaem').checked);
        }
        if (what == 'born') {
            document.getElementById('useAtBorn').checked = !document.getElementById('useAtBorn').checked;
            showHideBoxes(what, document.getElementById('useAtBorn').checked);
        }
    }

</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="moduleTemplate" /></div>
    <div class="content">
        <div style="padding: 10px;">
            <table border="0" cellspacing="10" cellpadding="5">
                <tbody>
                    <tr>
                        <td id="head" class="labheader" ></td>
                        <td><fmt:message key="moduleTemplate" /></td>
                </tr>
                </tbody>
            </table>
            <div id="line" style="width: 476px;" class="labline">
                <fmt:message key="moduleTemplate" />
            </div>
            <form name="module" action="savetemplate.html" method="POST">
                <input id="id" type="hidden" name="id" value="${module.id}" />
                <input type="hidden" name="template" value="ON" />
                <%@ include file="../showembedederror.jsp" %>
                <div id="userdiv">
                    <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                        <tbody>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="moduleType" />:</td>
                        <td style="width: 340px;">
                        <c:if test="${empty module.id}">
                            <select id="objectType" class="styled" name="objectType" onclick="return showHide(document.getElementById('objectType').value);">
                                <option value="citogen" ${empty module or module.objectType eq 'citogen' ? 'selected' : ''}><fmt:message key="citogenModule" /></option>
                                <option value="fish" ${module.objectType eq 'fish' ? 'selected' : ''}><fmt:message key="fishModule" /></option>
                                <option value="acho" ${module.objectType eq 'acho' ? 'selected' : ''}><fmt:message key="achoModule" /></option>
                                <option value="hypo" ${module.objectType eq 'hypo' ? 'selected' : ''}><fmt:message key="hypoModule" /></option>
                                <option value="fmr1" ${module.objectType eq 'fmr1' ? 'selected' : ''}><fmt:message key="fmr1Module" /></option>
                            </select>
                        </c:if>
                        <c:if test="${not empty module.id}">
                            <input id="objectType" type="hidden" name="objectType" value="${module.objectType}" />
                            <fmt:message key="${module.objectType}Module" />
                        </c:if>
                        </td>
                        </tr>
                        </tbody>
                    </table>
                    <div id="common">
                        <div class="labline"><fmt:message key="templateData" /></div>
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;" ><fmt:message key="templateName" />:</td>
                            <td style="width: 340px;">
                                <input id="templateName" class="required" type="text" name="templateName" value="${module.templateName}" />
                            </td>
                            </tr>
                            <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" ${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" ${empty module or (module.objectType eq 'citogen' and module.citTenyesztesiIdo eq '48PHA') ? 'selected' : ''}><fmt:message key="48PHA" /></option>
                                    <option value="72PHA" ${empty module or (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>
                <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 class="labline"><fmt:message key="useAtRequest" /></div>
                <div style="padding: 10px">
                    <%--born--%>
                    <div class="labline" onclick="javascript:checkAndShowHide('born');"><input type="checkbox" id="useAtBorn" name="useAtBorn" ${module.useAtBorn ? 'checked' : ''} value="ON" onclick="return showHideBoxes('born', document.getElementById('useAtBorn').checked);"/> <fmt:message key="bornAnalysisRequest" /><br /></div>
                    <div style="padding: 10px; display: ${module.useAtBorn ? 'block' : 'none'}" id="born">
                        <div class="subpatientline" ><input type="checkbox" name="bdCitogeneticalAnalysis" value="ON" ${module.bdCitogeneticalAnalysis ? 'checked="checked"' : ''} /><fmt:message key="bdCitogeneticalAnalysis" /></div>
                        <div class="subpatientline" ><input id="bdDNAPreparation" type="checkbox" name="bdDNAPreparation"        value="ON" ${module.bdDNAPreparation        ? 'checked="checked"' : ''} /><fmt:message key="bdDNAPreparation" /></div>
                        <div class="subpatientline" ><input id="bdFish" type="checkbox" name="bdFish" value="ON" ${module.bdFish ? 'checked="checked"' : ''} onclick="return checkAllOrNone('bdFish');" /><fmt:message key="bdFish" /></div>
                        <div id="bdFishDiv" class="subset">
                            <input type="checkbox" name="bdDiGeorge" value="ON" ${module.bdDiGeorge ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdDiGeorge" /><br />
                            <input type="checkbox" name="bdWilliams" value="ON" ${module.bdWilliams ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdWilliams" /><br />
                            <input type="checkbox" name="bdPraderWilli" value="ON" ${module.bdPraderWilli ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdPraderWilli" /><br />
                            <input type="checkbox" name="bdSmithMagenis" value="ON" ${module.bdSmithMagenis ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdSmithMagenis" /><br />
                            <input type="checkbox" name="bdSRY" value="ON" ${module.bdSRY ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdSRY" /><br />
                            <input type="checkbox" name="bdSubtelomericFish" value="ON" ${module.bdSubtelomericFish ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdSubtelomericFish" /><br />
                            <input type="checkbox" name="bdTurnerMozaicizm" value="ON" ${module.bdTurnerMozaicizm ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdTurnerMozaicizm" /><br />
                            <input type="checkbox" name="bdTurnerRemainingY" value="ON" ${module.bdTurnerRemainingY ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdTurnerRemainingY" /><br />
                            <input type="checkbox" name="bdMulticolorFish" value="ON" ${module.bdMulticolorFish ? 'checked="checked"' : ''} onchange="return check('bdFish');" /><fmt:message key="bdMulticolorFish" /><br />
                        </div>
                        <div class="subpatientline" ><input id="bdFragX" type="checkbox" name="bdFragX" value="ON" ${module.bdFragX ? 'checked="checked"' : ''} onclick="return checkAllOrNone('bdFragX');" /><fmt:message key="bdFragX" /></div>
                        <div id="bdFragXDiv" class="subset">
                            <input type="checkbox" name="bdCitogenetic" value="ON" ${module.bdCitogenetic ? 'checked="checked"' : ''}  onchange="return check('bdFragX');" /><fmt:message key="bdCitogenetic" /><br />
                            <input type="checkbox" name="bdMolecular" value="ON" ${module.bdMolecular ? 'checked="checked"' : ''} onchange="return check('bdFragX');" /><fmt:message key="bdMolecular" /><br />
                        </div>
                        <div class="subpatientline" ><input type="checkbox" name="bdFGFR2OrFGFR3" value="ON" ${module.bdFGFR2OrFGFR3 ? 'checked="checked"' : ''} /><fmt:message key="bdFGFR2OrFGFR3" /></div>
                        <div class="subpatientline" ><input type="checkbox" name="bdSCE" value="ON" ${module.bdSCE ? 'checked="checked"' : ''} /><fmt:message key="bdSCE" /></div>
                    </div>
                    <%--<input type="checkbox" name="useAtChromo" ${module.useAtChromo ? 'checked' : ''} value="ON"/> <fmt:message key="chromoAnalysismodule" /><br />--%>

                    <%--constitutional--%>
                    <div class="labline"><input type="checkbox" name="useAtConst" ${module.useAtConst ? 'checked' : ''} value="ON"/> <fmt:message key="constAnalysisRequest" /><br /></div>

                    <%--<input type="checkbox" name="useAtFish" ${module.useAtFish ? 'checked' : ''} value="ON"/> <fmt:message key="fishAnalysisRequest" /><br />--%>

                    <%--oncohaem--%>
                    <div class="labline" onclick="javascript:checkAndShowHide('oncohaem');"><input type="checkbox" id="useAtOncohaem" name="useAtOncohaem" ${module.useAtOncohaem ? 'checked' : ''} value="ON" onclick="return showHideBoxes('oncohaem', document.getElementById('useAtOncohaem').checked);"/> <fmt:message key="onkohaemAnalysisRequest" /></div>
                    <div style="padding: 10px; display: ${module.useAtOncohaem ? 'block' : 'none'}" id="oncohaem">
                        <div class="subpatientline" ><input id="onCitogenetical" type="checkbox" name="onCitogenetical" value="ON" ${module.onCitogenetical ? 'checked="checked"' : ''} onclick="return checkAllOrNone('onCitogenetical')" /><fmt:message key="onCitogenetical" /></div>
                        <div id="onCitogeneticalDiv" class="subset">
                            <input type="checkbox" name="onCitBone" value="ON" ${module.onCitBone ? 'checked="checked"' : ''} onchange="return check('onCitogenetical');" /><fmt:message key="onCitBone" /><br />
                            <input type="checkbox" name="onCitBlood" value="ON" ${module.onCitBlood ? 'checked="checked"' : ''} onchange="return check('onCitogenetical');" /><fmt:message key="onCitBlood" /><br />
                            <input type="checkbox" name="onCitTumor" value="ON" ${module.onCitTumor ? 'checked="checked"' : ''} onchange="return check('onCitogenetical');" /><fmt:message key="onCitTumor" /><br />
                        </div>
                        <div class="subpatientline" ><input id="onDNAPreparation" type="checkbox" name="onDNAPreparation" value="ON" ${module.onDNAPreparation ? 'checked="checked"' : ''} /><fmt:message key="onDNAPreparation" /></div>
                        <div class="subpatientline" ><input type="checkbox" name="onRTPCR" value="ON" ${module.onRTPCR ? 'checked="checked"' : ''} /><fmt:message key="onRTPCR" /></div>
                        <div class="subpatientline" ><input id="onFish" type="checkbox" name="onFish" value="ON" ${module.onFish ? 'checked="checked"' : ''} onclick="return checkAllOrNone('onFish')" /><fmt:message key="onFish" /></div>
                        <div id="onFishDiv" class="subset">
                            <input type="checkbox" name="onFishCML1" value="ON" ${module.onFishCML1 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCML1" /><br />
                            <input type="checkbox" name="onFishCML2" value="ON" ${module.onFishCML2 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCML2" /><br />
                            <input type="checkbox" name="onFishCML3" value="ON" ${module.onFishCML3 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCML3" /><br />
                            <input type="checkbox" name="onFishCML4" value="ON" ${module.onFishCML4 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCML4" /><br />
                            <br />
                            <input type="checkbox" name="onFishCLL1" value="ON" ${module.onFishCLL1 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCLL1" /><br />
                            <input type="checkbox" name="onFishCLL2" value="ON" ${module.onFishCLL2 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCLL2" /><br />
                            <input type="checkbox" name="onFishCLL3" value="ON" ${module.onFishCLL3 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCLL3" /><br />
                            <input type="checkbox" name="onFishCLL4" value="ON" ${module.onFishCLL4 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishCLL4" /><br />
                            <br />
                            <input type="checkbox" name="onFishMDS1" value="ON" ${module.onFishMDS1 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMDS1" /><br />
                            <input type="checkbox" name="onFishMDS2" value="ON" ${module.onFishMDS2 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMDS2" /><br />
                            <input type="checkbox" name="onFishMDS3" value="ON" ${module.onFishMDS3 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMDS3" /><br />
                            <input type="checkbox" name="onFishMDS4" value="ON" ${module.onFishMDS4 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMDS4" /><br />
                            <input type="checkbox" name="onFishMDS5" value="ON" ${module.onFishMDS5 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMDS5" /><br />
                            <input type="checkbox" name="onFishMDS6" value="ON" ${module.onFishMDS6 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMDS6" /><br />
                            <br />
                            <input type="checkbox" name="onFishMyeloma1" value="ON" ${module.onFishMyeloma1 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMyeloma1" /><br />
                            <input type="checkbox" name="onFishMyeloma2" value="ON" ${module.onFishMyeloma2 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMyeloma2" /><br />
                            <input type="checkbox" name="onFishMyeloma3" value="ON" ${module.onFishMyeloma3 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMyeloma3" /><br />
                            <input type="checkbox" name="onFishMyeloma4" value="ON" ${module.onFishMyeloma4 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishMyeloma4" /><br />
                            <br />
                            <input type="checkbox" name="onFishAML1" value="ON" ${module.onFishAML1 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML1" /><br />
                            <input type="checkbox" name="onFishAML2" value="ON" ${module.onFishAML2 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML2" /><br />
                            <input type="checkbox" name="onFishAML3" value="ON" ${module.onFishAML3 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML3" /><br />
                            <input type="checkbox" name="onFishAML4" value="ON" ${module.onFishAML4 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML4" /><br />
                            <input type="checkbox" name="onFishAML5" value="ON" ${module.onFishAML5 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML5" /><br />
                            <input type="checkbox" name="onFishAML6" value="ON" ${module.onFishAML6 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML6" /><br />
                            <input type="checkbox" name="onFishAML7" value="ON" ${module.onFishAML7 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML7" /><br />
                            <input type="checkbox" name="onFishAML8" value="ON" ${module.onFishAML8 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishAML8" /><br />
                            <br />
                            <input type="checkbox" name="onFishALL1" value="ON" ${module.onFishALL1 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL1" /><br />
                            <input type="checkbox" name="onFishALL2" value="ON" ${module.onFishALL2 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL2" /><br />
                            <input type="checkbox" name="onFishALL3" value="ON" ${module.onFishALL3 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL3" /><br />
                            <input type="checkbox" name="onFishALL4" value="ON" ${module.onFishALL4 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL4" /><br />
                            <input type="checkbox" name="onFishALL5" value="ON" ${module.onFishALL5 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL5" /><br />
                            <input type="checkbox" name="onFishALL6" value="ON" ${module.onFishALL6 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL6" /><br />
                            <input type="checkbox" name="onFishALL7" value="ON" ${module.onFishALL7 ? 'checked="checked"' : ''} onchange="return check('onFish');" /><fmt:message key="onFishALL7" /><br />
                            <br />
                        </div>
                    </div>
                </div>
                <!--div class="moduleline"><fmt:message key="labelPrint" /></div-->
                <br />
                <div align="right">
                    <input class="button" type="submit" value="<fmt:message key="MENTÉS" />">
                </div>
            </form>
        </div>
    </div>
    <div class="copyright">
        &copy; 2009-2010 Astrid Research Inc.
    </div>
</div>
