//<!-[CDATA[

function daysuntil(sendto)			{

	var todaysdate = new Date();
	var year = todaysdate.getFullYear();
	var day = todaysdate.getDate();
	var month = todaysdate.getMonth() + 1; 

	var nowmonthdays = 0; 
	switch (month) {
		case 1 :
			nowmonthdays = 0 ;
		break;
		case 2 :
			nowmonthdays = 31 ;
		break;
		case 3 :
			nowmonthdays = 31 + 28 ;
		break;
		case 4 :
			nowmonthdays = 31 + 28 + 31 ;
		break;
		case 5 :
			nowmonthdays = 31 + 28 + 31 + 30 ;
		break;
		case 6 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 ;
		break;
		case 7 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 + 30 ;
		break;
		case 8 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 + 30 + 31 ;
		break;
		case 9 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 ;
		break;
		case 10 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 ;
		break;
		case 11 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 ;
		break;
		case 12 :
			nowmonthdays = 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 ;
		break;
		default:
			nowmonthdays = "error" ;
				}

	var nowtotaldays = nowmonthdays + day;
	var difference = sendto - nowtotaldays; 

	document.write(" " + difference + " Days ");

					} // end daysuntil





function datealert()			{
	var todaysdate = new Date();

	var month = todaysdate.getMonth() + 1; 
	var day = todaysdate.getDate();
	var year = todaysdate.getFullYear();
	var combine = month + "/" + day + "/" + year; 
	var spacer = " ";
	alert ("Function date:" + spacer + combine);
	return combine;
					}


function timealert()			{ 

	var todaysdate = new Date();

	var spacer = " ";
	var hours = todaysdate.getHours(); 
	var minutes = todaysdate.getMinutes(); 
		if (minutes < 10)	{
		minutes = "0" + minutes;
					}
	var halfday = "PM"; 
		if (hours < 12)		{
		halfday = "AM"; 
					}
		if (hours > 12)		{
		hours = hours - 12;  
					}
	var combine = hours + ":" + minutes + spacer + halfday; 
	alert ("Function time: "+ combine);


					}



//	]]>

