<div class="questionrow">
    <div class="question">Participant ID</div>
    <div class="answer">
            <input type="hidden" name="id" id="id" value="<?php echo $id; ?>"/>
            <input type="hidden" name="updt_vchr" id="updt_vchr" value="true" />
            <input type="text" name="partcpnt_id" id="partcpnt_id" value="<?php echo $partcpnt_id; ?>" readonly />
    </div>
</div>
<div class="clear_form">
</div>
<div class="questionrow">
    <div class="question">Survey</div>
    <div class="answer">
            <input type="hidden" name="tab_id" id="tab_id" value="" />
        <?php
            $common->dropdown('sur_code', 'sur_title', 'custom_survey_master', '', 'sur_title', 'survey_id', $survey_id, 'class="required" onchange="return specimen_data(this.value);"');
        ?>
    </div>
    <script>
        $("#survey_id option").each(function(){
			if(this.value != '<?php echo $survey_id; ?>')
				$(this).hide();
			else
				$(this).show();
        });
        specimen_data('<?php echo $survey_id; ?>', 'edit');

        <!-- Added by Vidhya - 01-11-2017 -->
       function getlabreport(){
   			var url = "";
			var loc = window.location;
			var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);
			url = loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length));
         	document.survey.action=url+'index.php?page=lab_test_rpt&mode=edit';
         	document.survey.submit();
       }
        
    </script>
</div>
<div class="clear_form">
</div>
<div class="questionrow" id="acs_div" style="display: none;">
    <div class="question">Accession Number</div>
    <div class="answer">
            <input type="text" name="accs_no_txt" id="accs_no_txt" value="" />
    </div>
</div>
<div class="clear_form" style="display: none;">
</div>
<div class="questionrow">
    <br/>
    <table border="0" cellpadding="0" cellspacing="0" style="margin-left: -23%; width: 146%;" id="dataTable" align="center"></table>
</div>
<div class="clear_form">
</div>
<div class="questionrow" id="submt_div">
    <br/>
    <div style="padding: 5px;" align="center">
        <input type="submit" name="Submit" value="Submit" />
    </div>
    
</div>
<!-- Added by Vidhya - 01-11-2017 -->
    <div style="padding: 5px;" align="center">
    	<input type="button" name="labreport" value="Lab Report" onclick="return getlabreport()" />
    												
    </div> 