home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Special / chip-cd_2001_spec_05.zip / spec_05 / apps / crystal / disk24 / Xasp4 < prev    next >
Text File  |  1999-08-23  |  2KB  |  48 lines

  1. <%@ LANGUAGE="VBSCRIPT" %>
  2.  
  3. <% if Session("username") = "" then
  4.         Response.Redirect("logon.asp")
  5.     end if
  6.  
  7.     ' Netscape Navigator 3.x and lower will not be able to view the ASP source due to a JavaScript problem in the 
  8.     ' browser itself
  9.     Set bt = Server.CreateObject("MSWC.BrowserType")
  10.     if bt.browser = "Netscape" and bt.majorver <= "3" then
  11.         empprof = "<a href=" & chr(34) & "report.asp?rpt=empprof" & chr(34) & " target=" & chr(34) & "main" & chr(34) & ">"
  12.     else
  13.         empprof = "<a href=javascript:rock('empprof')>"
  14.     end if
  15. %>
  16.  
  17. <html>
  18. <head>
  19. <script>
  20.     function rock(report)
  21.     {
  22.         document.open ()
  23.         document.writeln("<BODY bgcolor=\"#330066\" text=\"#FF8000\"  vlink=\"#00ffff\" link=\"#FF8000\">")
  24.         document.writeln("<a href=\"report.asp?rpt=empprof\" target=\"main\" ><img src=\"images/whowhos.gif\" border=0></a><br><br>")
  25.         document.writeln("<a href=code.asp?source=report.asp target=\"main\"><img src=\"images/source.gif\" border=0></a><br>")
  26.         document.writeln("<hr><br>")
  27.         document.writeln("<a href=\"Mission.htm\"  target=\"main\"><img src=\"images/mission.gif\" border=0></a> <br><br>")
  28.         document.writeln("<a href=\"Corp.htm\" target=\"main\"><img src=\"images/history.gif\" border=0></a> <br><br>")
  29.         document.writeln("<a href=\"Found.htm\" target=\"main\"><img src=\"images/partners.gif\" border=0></a> <br><br>")
  30.         document.writeln("<a href=\"Xtreme.htm\" target=\"main\"><img src=\"images/xteamtech.gif\" border=0></a><br><br>")
  31.         document.writeln("</body>")
  32.         document.close()
  33.         parent.frames[1].location="report.asp?rpt=" + report
  34.     }
  35. </script>
  36. </head>
  37.  
  38. <BODY bgcolor="#330066" text="#FF8000"  vlink="#00ffff" link="#FF8000">
  39. <% response.write empprof %><img src="images/whowhos.gif" border=0></a><br><br>
  40. <br><hr><br>
  41. <a href="Mission.htm"  target="main"><img src="images/mission.gif" border=0></a> <br><br>
  42. <a href="Corp.htm" target="main"><img src="images/history.gif" border=0></a> <br><br>
  43. <a href="Found.htm" target="main"><img src="images/partners.gif" border=0></a> <br><br>
  44. <a href="Xtreme.htm" target="main"><img src="images/xteamtech.gif" border=0></a><br><br>
  45. </BODY>
  46.  
  47. </html>
  48.