<!--
var i = 0
var s = 0
var x = 3
var trd = false
var pswd = "ok"

bckColor = new Array()
	bckColor[0]="#000000"
	bckColor[1]="#212121"
	bckColor[2]="#404040"
	bckColor[3]="#616161"
	bckColor[4]="#808080"
	bckColor[5]="#a1a1a1"
	bckColor[6]="#bfbfbf"
	bckColor[7]="#eoeoeo"
	bckColor[8]="#ffffff"

function describeBrowser(){
	document.write("<font color=#31007b face=arial size=2>"+ "<b>"+"&nbsp;"+"Browser type: "+"</b>"+navigator.appName+" "+"<br>")
	if(navigator.appVersion=="5.0 (Windows; en-US)"){
	document.write("<font color=#31007b face=arial size=2>"+"<b>"+"&nbsp;"+"Version: "+"</b>"+"Netscape 6.0 	(Windows; en-US)<br>")
	}else{
	document.write("<font color=#31007b face=arial size=2><b>"+"&nbsp;"+"Version: "+"</font></b>"+navigator.appVersion+"<br>")
	}
}

function changeBg(){
	if(i<9){
		document.bgColor=bckColor[i]
	i++;	
		setTimeout("changeBg()", .25 * 1000)
	}
}

function addText(){
	if(i==2){
	document.write("testing add text")
	}
}

function screenP(){
	with(document){
	// write("<font color=#31007b face=arial size=+1><b>"+"&nbsp;Screen width: "+"</font></b>")
	 writeln("<font color=red face=arial size=+1><b>"+screen.width+" X "+"</font></b>")
	// write("<font color=#31007b face=arial size=2><b>"+"&nbsp;Screen height: "+"</font></b>")
	 writeln("<font color=red face=arial size=+1><b>"+screen.height+"<br>"+"</font></b>")
	}
}


function theDate(){
	currentDate = new Date()
	with (currentDate) {
		document.write("Date: "+getMonth()+"/"+getDate()+"/"+getYear()+"<br>")
		document.write("Time: "+getHours()+":"+getMinutes()+":"+getSeconds()+"<br>")		
	}
//	setTimeout("currentDate(), 5*1000)
}

function g_ip(){
 var ip = new java.net.InetAddress.getLocalHost();
 var ipStr = new java.lang.String(ip);
 document.write("<b>"+"&nbsp;"+"Your IP address is: "+"</b>")
 document.writeln(ipStr.substring(ipStr.indexOf("/")+1));
}

function privpage(){
		if(trd == true){
			alert("Go away you had your 3 tries.")
			document.location.href="http://www.cnn.com"
		}
		if(trd == false){
			trd = true;
			pwd=prompt("Please enter your password", value='')
		if(pwd == pswd)
			document.location.href="privpg.html"	
		while(pwd != pswd && s < 3){
			s = s + 1;
			if(s < 3){
			t = x - s
			pwd=prompt("Incorrect password. Tries left " + t + " ", value='')
		}
		}
		if(s >= 3){
		alert("Sorry you only get 3 tries")
		}
		}
	}

	
	
//-->
