var ogg = document.NOMEFORM.NOMEOGG;
if(ogg.type=='radio') ....
else if(ogg.type=='checkbox') ...