Listing 2. HTML User Interface, welcome.html

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function OpenNewWindow()
{
alert("To Upload a file go to file...Upload File on the browser's
button bar")
parent.frames[2].location.protocol = "ftp:"
window.open(parent.frames[2].location.href)
}
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFFF">
<FORM>
<SCRIPT LANGUAGE="JavaScript">
if (self!=top) {
document.write('<i><B>Hi!</b></i>' +
"You can preview, download files or search for
information here. <p>You can also upload a
file<br>" + '<FORM>' + '<CENTER>'
+ '<INPUT TYPE="button" Value="Upload File"
onClick="OpenNewWindow()
">' + '</CENTER>' + '</FORM>');
}
else
{
document.write('<i><B>Hi!</b></i> This is a
special screen for adding information to hallways.
<p>To Upload a file, go to FILE | Upload, like
<a href="http://yourwebserver/access_directory/
file_upload.gif">this</a> <p>');
}
</SCRIPT>
</FORM>
</BODY>
</HTML>