Microsoft VBScript compilation error '800a03ea'

Syntax error

/Website2008/Control.asp, l?a 9

Response.Write(If session("Perfil")<>"" Then response.write(onUnload="openpopup()"))
---------------^