netscapeTest = parseInt(navigator.appVersion)
explorerTest = navigator.appName.indexOf("Microsoft") + 1

function netscapeThree() {
if (navigator.javaEnabled()) {
userDomain = java.net.InetAddress.getLocalHostName()
txt = " " + (userDomain.toString());
} else {
txt = "Java Not Enabled!";
   }
}

function netscapeFour() {
if (navigator.javaEnabled()) {
baseAddress = java.net.InetAddress.getLocalHost()
userDomain = baseAddress.getHostName()
txt = " " + (userDomain.toString());
} else {
txt = "Java Not Enabled!"; }
}

if ((explorerTest == "0") && (netscapeTest == "3")) { netscapeThree() }
else if ((explorerTest == "0") && (netscapeTest >= "4")) { netscapeFour() }
else {
txt = "Local Host"
}

document.write("<SPAN CLASS=ver11pxbrn><B>Your Computers Hostname is:</B></SPAN><SPAN CLASS=ver11pxpur> " + txt + "</SPAN>");
 
if ((netscapeTest >= "4") && (navigator.appName.indexOf("Mozilla") != -1)){ 
ip = "" + java.net.InetAddress.getLocalHost().getHostAddress();
document.write(" <SPAN CLASS=ver11pxgrn>||</SPAN> <SPAN CLASS=ver11pxbrn><B>Your IP Address is:</B></SPAN><SPAN CLASS=ver11pxpur> " + ip + "</SPAN>");
}

else if ((netscapeTest >= "4") && (navigator.appName.indexOf("Netscape") != -1)){ 
ip = "" + java.net.InetAddress.getLocalHost().getHostAddress();
document.write(" <SPAN CLASS=ver11pxgrn>||</SPAN> <SPAN CLASS=ver11pxbrn><B>Your IP Address is:</B></SPAN><SPAN CLASS=ver11pxpur> " + ip + "</SPAN>");
}

else {
document.write(" <SPAN CLASS=ver11pxgrn>||</SPAN> <SPAN CLASS=ver11pxbrn><B>Your IP Address is:</B></SPAN><SPAN CLASS=ver11pxpur> " + " 127.0.0.1</SPAN>");
}