<!--
var imgPath = "images/";
var imgState;
var currentState = "";

function imgOff(imgName) {
	if (document.images) {
		if (imgName != currentState) {
			document[imgName].src = imgPath + imgName + "_off.jpg";
		}
	}
}
function imgOn(imgName) {
	if (document.images) {
		if (imgName != currentState) {
			document[imgName].src = imgPath + imgName + "_on.jpg";
		}
	}
}

function gifOff(imgName) {
	if (document.images) {
		if (imgName != currentState) {
			document[imgName].src = imgPath + imgName + "_off.gif";
		}
	}
}
function gifOn(imgName) {
	if (document.images) {
		if (imgName != currentState) {
			document[imgName].src = imgPath + imgName + "_on.gif";
		}
	}
}



// Pop up a new window.
function popup(filename, width, height, scrollbars) {
 var etcParams = ",directories=0,location=0,menubar=0,resizable=0,status=0,toolbar=0,scrollbars=" + (scrollbars ? "1" : "0");
 return window.open(filename, "_blank", "width=" + width + ",height=" + height + etcParams);
}

function openWindow(url,winName,w,h) {
	leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	topPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no';
	var popup = window.open(url,winName,windowprops);
	popup.focus();
}

function popup2(filename, width, height, scrollbars) {
 var etcParams = ",directories=0,location=0,menubar=0,resizable=0,status=0,toolbar=0,scrollbars=" + (scrollbars ? "1" : "0");
 var popup = window.open(filename, "_blank", "width=" + width + ",height=" + height + etcParams);
 popup.focus();
} 

// -->