Function GetMac() on error resume next set o=CreateObject("GameTools.GetMacInfo") if not isobject(o) then ' document.write "" GetMac = "err" else GetMac =o.GetMac() end if End function 'Msgbox GetMac()