var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width)?(screen.width-w)/2 : 0;
TopPosition = (screen.height)?(screen.height-h)/8 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=800,height=590,left = 162,top = 59');");
}


function NewCenterWindowScroll(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/8:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

function NewAdjustWindowScroll(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/8:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


function NewAdjustWindowNoScroll(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/8:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


function NewCenterWindowNoScroll(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

<!-- End of JS PopUp Browser code ,scrollbars='+scroll+' -->

//Change color language set.
function setLang(which) {
	var listObj = document.forms[0].colors
	//find out if it's 3 or 6 entries.

	var ListLength = listObj.length
	//replace individual existing entries.
	for (var i = 0; i < ListLength; i++) {
	if (which == "plain") {
		listObj.options[i].text = plainList[i]
	} else {
		listObj.options[i].text = hardList[i]
	}
}
	if (navigator.appname == "Netscape") {
		history.go(0)
	}
}


//create entirely new options list.
function setCount(choice) {
	var listObj = document.forms[0].colors
	//get Language setting.
	var Lang = (document.forms[0].geekLevel[0].checked) ? "plain" :
"hard"
	//empty options from list.
	listObj.length = 0
	//create new option object for each entry.
	for (var i = 0 ; i < choice.value; i++) {
		if (Lang == "plain") {
			listObj.options[i] = new Option(plainList[i])
	} else {
			listObj.options[i] = new Option(hardList[i])
		}
	}
	listObj.options[0].selected = true
	if (navigator.appname == "Netscape") {
		history.go(0)
	}
}
//#1E90FF dodgerblue

