Thank you all,
I think now it works ok. I changed the variable definition to objTd and
the document.all check
Kostas Lagos
> Hello everybody,
> Im getting an error 'style is null or not an object' from a line in the
c> ode below, any help will be appreciated..this code is triggered by
a> n 'onClick' event of a button.The values passed are:('busSecBox', 1)
> function checkValue(cellID, checkedValue) {
> var td = document.all ? document.all[cellID] :
d> ocument.getElementById(cellID);
>
> if(document.experienceForm.business_category.options
[> document.experienceForm.business_category.selectedIndex].value!
=> checkedValue) {
> ******>This Line td.style.visibility='hidden';
>
> }
> else {
> td.style.visibility='visible';
>
> }
>
}>
>
T> hanks in advance
> Kostas Lagos