function fwd (e, n) { var i = n || 5; var c = e.srcElement || e.target; if ( ! c.hasChildNodes) { alert( 'Not supported.'); return false; } do { if (c.hasChildNodes()) c = c.firstChild; else { while ( ! c.nextSibling) c = c.parentNode; c = c.nextSibling; } if (c.type == 'checkbox') { if ( ! c.checked) c.checked = true; i = i - 1; } } while (i); return false; } function bwd (e, n) { var i = n || 5; var c = e.srcElement || e.target; if ( ! c.hasChildNodes) { alert( 'Not supported.'); return false; } do { if (c.hasChildNodes()) c = c.lastChild; else { while ( ! c.previousSibling) c = c.parentNode; c = c.previousSibling; } if (c.type == 'checkbox') { if ( ! c.checked) c.checked = true; i = i - 1; } } while (i); return false; }