/* Function DaysLeft()
   Purpose: Calculate the number of days until the next poker run
   
   Variables
   CheckDay: A date object containing the given date
   XYear: The 4-digit year value of the given date
   XDay: July 30 in the year of the given date
   DayCount: The number of days until the next poker run
*/

function DaysLeft(CheckDay) {
   var XYear=CheckDay.getFullYear();
   var XDay=new Date("July, 30, 2009");
   XDay.setFullYear(2009);
   var DayCount=(XDay-CheckDay)/(1000*60*60*24);
   DayCount=Math.round(DayCount);
   return DayCount;
}