	var subtotalSpecialEvents = 0;
	
	function modifySubtotal( obj )
	{
		if(isNaN(document.getElementById( 'subtotal' ).innerHTML))
			{
				var subtotal = 0;
			}
		else
			{
				var subtotal = parseInt(document.getElementById( 'subtotal' ).innerHTML);	
			}
		//alert(subtotal);
		if( ( obj != obj.form.public_policy_luncheon ) && ( obj != obj.form.continuing_education_units ) )
		{

			if( obj.checked == true )
			{
				subtotal += parseInt(obj.value);
			}
			else
			{
				subtotal -= parseInt(obj.value);
			}
			//subtotalWithLuncheon = subtotal;
		}		
		//SPECIAL EVENTS
		if( obj == obj.form.public_policy_luncheon )
		{
			if( obj.checked == true )
			{
				subtotalSpecialEvents += parseInt(obj.value);
			}
			else
			{
				subtotalSpecialEvents -= parseInt(obj.value);
			}
		}
		else if( obj == obj.form.continuing_education_units )
		{
			if( obj.checked == true )
			{
				subtotalSpecialEvents += parseInt(obj.value);
			}
			else
			{
				subtotalSpecialEvents -= parseInt(obj.value);
			}
		}
		
		document.getElementById( 'subtotal' ).innerHTML = subtotal;
		document.getElementById( 'subtotalSpecialEvents' ).innerHTML = subtotalSpecialEvents;
	}
		
	function init()
	{
		for( i=0; i < document.forms[0].elements.length; i++ )
		{
			if( document.forms[0].elements[i].type == 'checkbox' )
			{
				if( document.forms[0].elements[i].checked == true )
				{
					modifySubtotal( document.forms[0].elements[i] );
				}
			}
		}
	}