function toggleCC(checkId,fromAddress,ccAddress) {
	if (document.getElementById(checkId).checked) {
		document.getElementById(ccAddress).value = document.getElementById(fromAddress).value;
	} else {
		document.getElementById(ccAddress).value = "";
	}
}
function execServlet(servletUrl, htmlContainer, successUrl) {
	new Ajax.Request(servletUrl, { 
		method: 'post',
		onSuccess: function(transport) {
			updateContainer(htmlContainer, successUrl);
		},
		onComplete: function(transport) {
			
		}
	});
}
function updateContainerTimeOut(htmlContainer, successUrl) {
	setTimeout('updateContainer("'+htmlContainer+'", "'+successUrl+'")',5000);
}

function updateContainer(htmlContainer, successUrl) {
	new Ajax.Updater(htmlContainer, successUrl, {
		evalScripts:true
	});
}