Show/Hide buttons not working

SOLVED

Hi Forum,

i have buttons in AP Invoice custom panel that i have hidden and depending on the company code they will Show but buttons stay hidden.

The UI Script Event is "POST LOAD"

Here is the code I am using which i copied from the forum.

retVal = 0 : sCompany =""

sCompany = oSession.CompanyCode

If sCompany = "TST" then

retval = oSession.AsObject(oSession.UI).Messagebox("Script Running")

retVal = oScript.SetUIControl("BT_LINK_1", "SHOW")
retVal = oScript.SetUIControl("BT_LINK_3", "SHOW")

End If

Any suggestions ?

Regards,

Manuel Roman