Remove the
runat="server"
and it will work.
but if you want it to be server side control you have to set its
OnClick
in page
OnLoad
part :
HyperLink2.Attributes.Add("OnClick", string.Format("showHelp('{0}','{1}');", hostCompanyID, portaltype1));
Hope it helps.