function confirmDelete(url) {
	if (confirm("Delete this item?")) {
		top.location.href= url;
	}
}

function writeEmail(name, domain) {
	document.write('<a href="mailto:' + name+'@'+domain + '">' + name+'@'+domain + '</a>');
}

function toggle() {
	
	for(var i = 0; i < arguments.length; i++) {
		var object = arguments[i];
		var dowhat = 'visible';
		
		// show the first arg, hide all others
		if (i > 0) {
			dowhat = 'hidden';
		}
		
		if (document.getElementById) {
				document.getElementById(object).style.visibility = dowhat;
		} else if (document.layers && document.layers[object] != null) {
				document.layers[object].visibility = dowhat;
		} else if (document.all) {
			document.all[object].style.visibility = dowhat;
		}
	}
  return false;
}

function navmenu() {
	
	for(var i = 0; i < arguments.length; i++) {
		var object = arguments[i];
		var dowhat = '#efefef';
		
		// show the first arg, hide all others
		if (i > 0) {
			dowhat = '#fff';
		}
		
		if (document.getElementById) {
				document.getElementById(object).style.backgroundColor = dowhat;
		} else if (document.all) {
			document.all[object].style.backgroundColor = dowhat;
		}
	}
  return false;
}


