<style>
/* Scroller Box */
#scroller_container2 {
 height: 120px;
 overflow: hidden;
}
/* Scoller Box */

/* CSS Hack Safari */
#dummy {;# }

#scroller_container2 {
 overflow: auto;
}
</style>
<div class="col-md-12 col-sm-6" style="padding:20px 0px;">
                         <!-- NEWS THUMB -->
                         <div class="news-thumb wow fadeInUp" data-wow-delay="0.4s">
                         		<div class="news-info">
                                     <h3>JPC News</h3>
                               </div>
                              <?php
								if(count($updates)>0){
							?>
						
                       <div style="padding:15px;">
                        <div id="scroller_container2">
 							<div class="jscroller2_up jscroller2_speed-50 jscroller2_mousemove">
							<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding:10px 0px;">
      
							  <?php 
                              foreach($updates as $update){
                              ?>
                              <tr>
                                <td class="date-txt"><?php echo date('d.m.Y',strtotime($update->startdate))?></td>
                              </tr>
                              <tr>
                                <td class="news-txt">
                                	<a href="#" onclick="gotolink_updt('updatedetails','<?php echo $update->id;?>')">
									<?php echo $update->title?>.
                                	</a>
                                </td>
                              </tr>
      
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
				  <?php
                  }
                  ?>
    			</table>
			</div></div></div>
	<?php }else{echo "Not Available";}?>
	</td>
  </tr>
</table>
                             	 
                         </div>
                    </div>
<br><br>
<form name="frmupdt_incl" id="frmupdt_incl" method="post">
<input type="hidden" id="update_id" name="update_id" />
</form>
<script>
function gotolink_updt(u,update_id)
{
	document.frmupdt_incl.update_id.value=update_id;
	document.frmupdt_incl.action = u;
	
	document.frmupdt_incl.submit();
}
</script>