	// -----------------------------------------
//                  popup
// This is the standard handler for popup windows
// -----------------------------------------
function popup(pageurl, height, width, anchor) {
	popupFullOpt(pageurl, height, width, anchor, 0, 0, 'yes', 'yes');
	}
	
// -----------------------------------------
//                  popupFullOpt
// This is the main handler for popup windows
// -----------------------------------------
function popupFullOpt(pageurl, height, width, anchor, lft, top, scroll, resize) {
	var popupWin1 = null;
	if (!popupWin1) {
		//Store window object in global
		if (anchor != '')
			pageurl += '#' + anchor;
			popupWin1 = window.open(pageurl,"popupWin1","width=" + width + ",height=" + height + ",scrollbars=" + scroll + ",resizable=" + resize )
			popupWin1.focus()
			}
			else {
				//Window already exists - bring it forward
				popupWin1.focus()
				if (popupWin1.href != pageurl) {
				popupWin1.href = pageurl;
			}
		}
	}


