I need to check and uncheck some checkboxes with a javascript function, is this possible? And if so, does anyone know how?

Thanks.