function open_popup(url) {
			//alert(url);
			popup = window.open(url);
			if (popup != null) {
			popup.focus();
			}
		}

function openWindow(url) {
	javascript:window.open(url);
	return(false);
}

/* populate display element beneath the multiple selection box,
	for publisher to easily identify selection in large multiple
	selection boxes */
function displaySelectedValues(selectionBox, displayElementId) {
	document.getElementById(displayElementId).value="";
	document.getElementById(displayElementId).innerHTML="";
	for(i=0; i<document.getElementById(selectionBox.name).length; i++) {
		if (document.getElementById(selectionBox.name)[i].selected) {

			/* use this when using text area and input elements for displaying the values */
			if (document.getElementById(displayElementId).value != "") {
				document.getElementById(displayElementId).value=
				document.getElementById(displayElementId).value + "\n" +
				document.getElementById(selectionBox.name)[i].text;
			} else {
				document.getElementById(displayElementId).value=
				document.getElementById(displayElementId).value +
				document.getElementById(selectionBox.name)[i].text;
			}

			/* use this when using other elements for displaying the values */
			/*
			if (document.getElementById(displayElementId).innerHTML != "") {
				document.getElementById(displayElementId).innerHTML=
				document.getElementById(displayElementId).innerHTML +
				"<br />" + document.getElementById(selectionBox.name)[i].text;
			} else {
				document.getElementById(displayElementId).innerHTML=
				document.getElementById(displayElementId).innerHTML +
				document.getElementById(selectionBox.name)[i].text;
			}
			*/
		}
	}
}

