function popup(url, windowName, width, height) {
	width = width || 480;
	height = height || 480;
	windowName = 'popup' || windowName;
	var featureList = "height=" + height + ",width=" + width + ",resizable,scrollbars";
	var popupWin = window.open(url, windowName, featureList);
	popupWin.focus();
}
function setFrom(formName, from, to) {
//	alert("form: " + formName + ", from: " + from + ", to: " + to);
	var val = document.forms[formName][from].value;
	document.forms[formName][to].value= val;
	document.forms[formName][from].selectedIndex = 0;
}
function itemPopup(url, myTarget) {
	var popupWin = window.open(url, myTarget, "height=640,width=360,scrollbars,toolbar,resizable,left=600");
	popupWin.focus();
}
function commentsPopup(url) {
	var popupWin = window.open(url, 'comments', "height=580,width=420,scrollbars,resizable");
	popupWin.focus();
}
function doMouseOver(id) {
//	alert ("doMouseOver: " + id + ", " + thing);
	var obj = document.getElementById(id);
	obj.style.zIndex = "100";
}
function doMouseOut(id) {
//	alert ("doMouseOver: " + id + ", " + thing);
	var obj = document.getElementById(id);
	obj.style.zIndex = "0";
}
function openCenteredWindow(url, name, width, height) {
	var left = parseInt((screen.availWidth/2) - (width/2));
	var top = parseInt((screen.availHeight/2) - (height / 2));
	var windowFeatures = "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top;
	windowFeatures += ",resizable=0";
	var theWindow = window.open(url, name, windowFeatures);
}
