If your ActiveX is embedded via an object tag then the easiest way is to give it an id, e.g. objSS then use:
Code:
<script type="text/javascript" for="objSS" event="onclick(Col, Row)">
if (Col == 2 || Col == 1)
{
alert(Col + " " + Row);
}
</script>
--
Joe