/**************************************************************************************************
*Function: calcDays
*Purpose:  Calculates the time left to the targetDate object
*Params:   currentDate - stores the date object containing the current date and time.
*Returns:  A the days remaining.
**************************************************************************************************/
function calcDays()
{
	var today = new Date();
	//Date object to hold the date of the last day of sememster 1
	var targetDate = new Date("May 12, 2007 6:00:00"); 
	
	/* Calc the differnece between the 2 dates
	   Stored in milliseconds so we need to convert to days
	   1000 milliseconds in one second, 60 seconds in one minute, 60 minutes in one hour
	   and 24 hours in one day. */
	days = (targetDate - today)/(1000*60*60*24);
	return days;
}

/*******************************************************************
*Function:  showEmail
*Purporse:  This function will print out the email link.
*Param:     email - the address to be sent to
*			display - text of the link to be displayed
*********************************************************************/ 
function showEmail(email, display)
{
	var emailLink = "<a href='mailto:" + email + "'>" + display + "</a>";
	document.write(emailLink);	
}

