// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images ) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function seltab(bpref, hpref, id_max, selected) {
	if (! document.getElementById) return;
	for (i = 0; i <= id_max; i++) {
		if (! document.getElementById(bpref + i)) continue;
		if (i == selected) {
			document.getElementById(bpref + i).style.visibility = "visible";
			document.getElementById(bpref + i).style.position = "";
			document.getElementById(hpref + i).className = "open";
		} else {
			document.getElementById(bpref + i).style.visibility = "hidden";
			document.getElementById(bpref + i).style.position = "absolute";
			document.getElementById(hpref + i).className = "close";
		}
	}
}