function win(theURL,winName,features) {
window.open(theURL,winName,features);
}
var scape = (navigator.appName.indexOf("tscape") !=-1) ? true : false;
var letter="";

function men(nr) {
	if (document.all) document.all["men" + nr].style.backgroundColor="#33FF33";
	else document.getElementById("men" + nr).style.backgroundColor="#33FF33";
}

function men_out(nr) {
	if (document.all) document.all["men" + nr].style.backgroundColor="#009900";
	else document.getElementById("men" + nr).style.backgroundColor="#009900";
}

function men_sm(nr) {
	if (document.all) document.all["men_sm" + nr].style.backgroundColor="#33FF33";
	else document.getElementById("men_sm" + nr).style.backgroundColor="#33FF33";
}

function men_out_sm(nr) {
	if (document.all) document.all["men_sm" + nr].style.backgroundColor="#009900";
	else document.getElementById("men_sm" + nr).style.backgroundColor="#009900";
}

if (scape) document.captureEvents(Event.KEYPRESS);
document.onkeypress = doKey
function doKey(keyed) {
	input = (scape) ? keyed.which : event.keyCode;
	letter+=String.fromCharCode(input);
	if(letter=="login" || letter=="admin") {
	var url=new String (self.location);
	if(url.indexOf("?")==-1) { var z="?"; } else { var z="&"; }
	// alert(self.location+z+"othertempl=login.php");
	location.href=self.location+z+"othertempl=login.php";
	}
}
