If Not Session("authorized") Then
Response.Write "<script>top.location.href='frmlogin.asp';</script>"
End If