try { TOPOBJ.SetVariable("logNum",0); //alert(0); }catch (e) { //document.write (e); //alert(0); }