This code works fine with IE 4.x but will not work with Navigator. Can someone please tell me what I am doing wrong?
Thanks in advance...
<HTML>
<TITLE></TITLE>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<script language=javaScript>
function GetFtp(name, pass) {
switch(name)
{
case "PACCAR":
if (pass == "paccar") {
return "ftp://username

assword@hostname";
}
else {
return "Invalid.htm";
}
break;
default:
return "default.htm";
break;
}
} // End function
</SCRIPT>
<SPAN ID="sUserName" TITLE="<%=Request("txtUserName")%>" STYLE='width:0;padding-left:0;padding-bottom:0;display:none;position:absolute;background-color:#29526B;z-index:0;'>
</SPAN>
<SPAN ID="sPassword" TITLE="<%=Request("txtPassword")%>" STYLE='width:0;padding-left:0;padding-bottom:0;display:none;position:absolute;background-color:#29526B;z-index:0;'>
</SPAN>
<SCRIPT language=javascript>
var UserName
var Password
var sLocation
UserName = sUserName;
Password = sPassword;
sLocation = GetFtp(UserName.title, Password.title);
if (sLocation == "default.htm") {
document.write("You have entered the wrong User Name. ");
document.write("Please <a href=default.htm> try again. <P></A>");
}
else {
// Go to ftp site using login information
window.location.href = sLocation;
}
</SCRIPT>
</BODY>
</HTML>