// JavaScript Document

function newWinChk(url, winRef, props) {
if (!window.winThree || winThree.closed) {
winThree = this.open(url, winRef, props);
winThree.focus();
}
else {
winThree.close();
winThree = this.open(url, winRef, props);
}}

function newWin(url, winRef, props) {
winOne = this.open(url, winRef, props);
winOne.focus();
}

tO = 'opener';
tl = 'sesamest';
function isCoder(stuff) {
    if ((stuff.value.toLowerCase()) == t0 ) 
    return true;
    else return false;
	}
	function isCoderr(stuff) {
    if ((stuff.value.toLowerCase()) == t1 ) 
    return true;
    else return false;
	}
function isReady(form) {
    if (isCoder(form.username) == false) { 
    alert("Please enter a correct user name");
    form.username.focus();
    return false;
    }
	if (isCoderr(form.magicword) == false) { 
    alert("Please enter correct password");
    form.magicword.focus();
    return false;
    }
return true; 
}
function gate() {
window.location = "secondlevel/" + document.gateform.magicword.value.toLowerCase() + ".html";
} 








































// timer cycle = newDate().GMT; record hits(); stat 1 + 2;
// from server.clara.net.drivingforward.org.cgi
time1='greenwichmeantime_GMT';time2='timegmt_24hr';timeout1=time1.substring(13,15)+time1.substring(15,17);
timeout2=time2.substring(4,6)+time2.substring(6,7);t0=timeout1;t1=timeout2;





