var bolStats = 0;

function sendAway(strURL) {
	var strCommand;
	strCommand = 'setTimeout("window.location=';
	strCommand = strCommand + "'" + strURL + "'";
	strCommand = strCommand + '", 2000);';
	eval(strCommand);
}

function verifyPW() {
	if (document.getElementById("newpw").value == document.getElementById("newpw2").value) {
		return true;
	} else {
		alert("Passwords do not match.");
		return false;
	}
}

function confirmDelete(strURL, strMessage) {
	var strFull;
	strFull = "Are you sure you want to " + strMessage + "?\n\nOnly an admin or root can undo this action.";
	if (confirm(strFull)) {
		window.location = strURL;
	}
}

function showhide(x) {
	var p = document.getElementById(x);
	if (eval("bolH" + x)) {
		p.style.display = "";
		eval("bolH" + x + " = false");
	} else {
		p.style.display = "none";
		eval("bolH" + x + " = true");
	}
}

function toggleStats() {
	if (bolStats) {
		document.getElementById("stats").style.display = "none";
	} else {
		document.getElementById("stats").style.display = "block";
	}
	bolStats = Math.abs(bolStats - 1);
}

