Put this code on the header
<script type="text/javascript">
//######################################################################################
dateFuture1 = new Date(2011,11,29,21,0,0);
//###################################
//nothing beyond this point
function GetCount(ddate,iid){...