// Dates & functions related to the seminar
seminarDateStr = "Friday, June 29, 2012";
seminarEndDate = "Monday, July 2, 2012";
seminarYear = 2012;

function seminarDaysLeft() {
  seminarDate = new Date( seminarDateStr );
  todaysDate = new Date();
  daysLeft = Math.floor((seminarDate - todaysDate)/86400000)+1;
  document.write( daysLeft );
}

function seminarWeeksLeft() {
  seminarDate = new Date( seminarDateStr );
  todaysDate = new Date();
  daysLeft = Math.floor((seminarDate - todaysDate)/86400000)+1;
  weeksLeft = Math.floor( daysLeft/7 );
  document.write( weeksLeft );
}

// Construct a mailto tag on the fly as an attempt to avoid robots
//function AnonymousFunction (name, company, domain) {
// locationstring = '"' . name + '@' + company + '.' + domain . '"';
// window.location.replace (locationstring);
//}

