 
function toggle(nBox, currSet){
	var container = document.getElementById(currSet);
	var inputs = container.getElementsByTagName("INPUT");
	for (i=0; i<inputs.length; i++)
		if (inputs[i].type.toLowerCase()=="checkbox") inputs[i].checked=!1;
	container.style.display = nBox.checked ? '' : 'none';
}

function open_mail(pWin){
   var mailWin = window.open('emailDelegates.php','mywin',
'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
   
   }
				  
function isChecked(pWin){
 	var eForm = pWin.document.list_email.getElementsByTagName("input");
		
		for(var j=0; j<eForm.length; j++)
		{	
			if(eForm[j].getAttribute("type") == "checkbox" && eForm[j].getAttribute("checked")=="checked")
			{
				document.write(eForm[j].getAttribute("value") + '<br>');
			}
		}

}
			
			
