	function CatalogClick(level, id) {
		switchDisplay('catalog' + level + '_' + id);
	}//CatalogClick()

	function Submit(url) {
		document.search.action="{TOP}{CTX}"+url+"/";
		document.search.submit();
	}//Submit()

	function findPos(id) {
		var curleft = curtop = 0;
		obj = document.getElementById(id);
		if ((obj != null) && (obj.offsetParent)) {
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
				curtop += obj.offsetTop
			}
		}
		//return [curleft,curtop];
		return curtop;
	}//findPos()

	function stretch() {
		var winW = 630, winH = 460; deltaY = 55;
		if (parseInt(navigator.appVersion)>3) {
			if (navigator.appName=="Netscape") {
				winW = window.innerWidth;
				winH = window.innerHeight;
			}
			if (navigator.appName.indexOf("Microsoft")!=-1) {
				winW = document.body.offsetWidth;
				winH = document.body.offsetHeight;
			}
		}
		h1 = findPos('stretch1');
		h2 = findPos('stretch2');
		obj = document.getElementById('stretch1');
		if (obj != null) {
			obj.height = (winH - h1 - (h2 - h1));
		}
	}//stretch()
