function sendEmail(theAddress) {
	// decrypts email address to avoid email harvesting
	var newAddress = theAddress
	newAddress = theAddress.replace(/no-spam./g, '')
	location.href = 'mailto:' + newAddress;
}

function openCalendar(iForm, sField) {
	// Opens the Calendar in a popup window
	var queryString;
	queryString  = '?Date=' + escape(sField.value);
	queryString += '&FormName=' + escape(iForm);
	queryString += '&DateFld=' + escape(sField.name);
	popUpWin ("/includes/calendar.asp" + queryString, "calwin", 220, 205, "dependent=yes,directories=no,location=no,menubar=no,personalbar=no,resizable=no,scrollbars=no,status=no,toolbar=no,");
	return false;
}

function popUpWin (url, win, width, height, options) {
	var leftPos = (screen.availWidth - width) / 2;
	var topPos = (screen.availHeight - height) / 2;
	options += 'width=' + width + ',height=' + height + ',left=' + leftPos + ',top=' + topPos;
	window.open(url, win, options);
}

