<script type="text/javascript">
var incount2 = document.getElementsByName('incount <?php echo $prod['id'];?>')[0];
</script>
window.onload = incount(incount2);
<div onload="oQuickReply.swap();" ></div>
<label name="incount <?php echo $prod['id'];?>" id="<?php echo $item['id'];?>" onload="incount(this)"></label>