function toggleDisplay (elementId) {
	var element = document.getElementById(elementId);
	if (element.style.display == 'none') {
		element.style.display = '';
	} else {
		element.style.display = 'none';
	}
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	newWindow = window.open(URLtoOpen, windowName, windowFeatures); 
}

function updateRecipientChooser() {
	if (document.getElementById('selectedRecipients').checked) {
		document.getElementById('recipientChooser').style.display = '';
	} else {
		document.getElementById('recipientChooser').style.display = 'none';
	}
}