Using Netscape Messenger 4.15 server need to display en/default1.html page instead of en/default
When I visit http://webmail/en/default1.html & login to webmail it gives Javascript error and in the URL displays http://webmail/en/login.msc and gives a blank page. Following is the default1.html file
<html>
<head>
<title>Login : Messenger Express</title>
<script>
var IE = 0, NN = 0
var s = navigator.userAgent
var user = ''
var nouserpass=false
if (s == '')
IE = 3
else if (s.indexOf('MSIE') != -1)
IE = parseFloat(s.substring(s.indexOf('MSIE') + 5, s.length))
else if (s.indexOf('Mozilla') != -1)
NN = parseFloat(s.substring(s.indexOf('Mozilla') + 8, s.length))
if (window.location.search) {
if (window.location.search.substring(0,12) == '?nouserpass=') {
nouserpass = true;
user = window.location.search.substring(12, window.location.search.length);
}
else
user = window.location.search.substring(6, window.location.search.length);
}
function post() {
login()
return false
}
function login() {
var form
if (document.forms[0].elements[0].value == '' || document.forms[1].elements[0].value == '') {
nouserpass = true;
user = document.forms[0].elements[0].value;
document.location = "http://"'/en/default1.html/'+document.domain+'/?nouserpass='+user;
return;
}
if (document.forms[1].new_window.checked) {
var now = new Date()
var target = 'messenger_express' + now.getTime()
if (NN > 0) {
var h, w
if (NN >= 4 && screen.height > 480) {
h = 570
w = 800
} else {
h = 450
w = 640
}
me_console = window.open('', target,
'menubar,resizable,status,scrollbars,width=' + w + ',height=' + h)
me_console.top.focus()
}
form = document.forms[3]
form.target = target
} else {
form = document.forms[2]
form.target = ''
}
form.user.value = document.forms[0].elements[0].value
form.password.value = document.forms[1].elements[0].value
document.forms[0].elements[0].value = ''
document.forms[1].elements[0].value = ''
form.submit()
}
</script>
</head>
<body bgcolor="white" link="#666699" vlink="#666699" alink="#CCCCFF">
<center>
<table border="0" cellspacing="0" cellpadding="1" bgcolor="#000000" align="center">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#66699">
<table border="0" cellpadding="0" cellspacing="10">
<tr>
<td width="24"><a href="http://www.iplanet.com/" target="_top"><img src="imx/iplanet.gif" width="62" height="26" border="0"></a></td>
<td><font face="PrimaSans BT,Verdana,sans-serif" color="white" size="-1"><font color="#CCCCCC" size="-2"><sup></sup></font><b>
Messenger Express</b></font></td>
</tr>
</table>
</td>
</tr>
<script>
if (user && !nouserpass) {
if (NN >= 3 && NN < 4)
alert('Invalid username or password')
else
document.write('<tr><td nowrap align="center" bgcolor="FFFFFF">\n' +
'<font face="PrimaSans BT,Verdana,sans-serif" color="red" size="-1">' +
'<b>Invalid username or password</font></b>
</td></tr>\n')
}
if (nouserpass) {
if (NN >= 3 && NN < 4)
alert('Blank username/password')
else
document.write('<tr><td nowrap align="center" bgcolor="FFFFFF">\n' +
'<font face="PrimaSans BT,Verdana,sans-serif" color="red" size="-1">' +
'<b>Blank username/password</font></b>
</td></tr>\n')
}
</script>
<noscript>
<tr>
<td nowrap align="center" bgcolor="FFFFFF">
<font face="PrimaSans BT,Verdana,sans-serif" color="red" size="-1">
<b>Javascript not enabled!</font></b>
</td>
</tr>
<tr>
<td nowrap align="center" bgcolor="FFFFFF">
<font face="PrimaSans BT,Verdana,sans-serif" color="red" size="-1">
<b> Change browser preference and reload to login </font></b>
</td>
</tr>
</noscript>
<tr>
<td bgcolor="#CCCCCC">
<table border="0" cellpadding="0" cellspacing="8">
<tr>
<td>
<table border="0" cellspacing="8">
<form name="userform" onSubmit="return post()">
<tr>
<td align="right"><font size="-1" face="PrimaSans BT,Verdana,sans-serif">Username</font></td>
<td><input type="text" size="20"></td>
</tr>
</form>
<form name="passwordform" onSubmit="return post()">
<tr>
<td align="right"><font size="-1" face="PrimaSans BT,Verdana,sans-serif">Password</font></td>
<td>
<input type="password" size="20" onfocus="this.select()" value="">
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td> </td>
<td>
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td><input type="submit" value="Login" width="72"></td>
<td><input type="checkbox" name="new_window"></td>
<td nowrap><font face="PrimaSans BT,Verdana,sans-serif" size="-2">New Window</font></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<form action="login.msc" method="post" name="loginform">
<input type="hidden" name="user">
<input type="hidden" name="password">
</form>
<form action="login.msc" method="post" name="newwinform" target="messenger_express">
<input type="hidden" name="user">
<input type="hidden" name="password">
</form>
</center>
</body>
<script>
var userform = document.forms[0]
var passwordform = document.forms[1]
var loginform = document.forms[2]
var newwinform = document.forms[3]
document.forms[0].elements[0].focus()
if (document.forms[1].elements[0].value.length > 0)
document.forms[1].elements[0].value = ''
if (user) {
document.forms[0].elements[0].value = user
document.forms[0].elements[0].select()
}
</script>
</html>

