
	function PicPrev(url, src) {
		url = url + "?src=" + src;
		NewWindow(url, 100, 100, "showimg", "yes");
	}

	function NewWindow(url, w, h, name, scroll) {
		NewWin = window.open(url,name,"width="+w+",height="+h+",scrollbars="+scroll+",status=no,toolbar=no,menubar=no,resizable=yes");
		NewWin.focus();
	}

	function preview() {
		url = p + ";bPrint:1";
		printWin = window.open(url, "printpage", "width=620,height=400,scrollbars=yes,status=no,toolbar=no,menubar=yes,resizable=no");
		printWin.focus();
	}

	function search() {
		document.frmSearch.submit();
	}

	function newwin(w,h) {
	  myparm = 'width='+ w +',height='+ h +',scrollbars=no,status=no,toolbar=no,menubar=no';

	  mywindow=window.open('','newwin',myparm);
	  mywindow.focus();
	}

	/*
	window.addEvent('domready', function() {
		initDom();
	});
	window.addEvent('load', function() {
		initImg();
	});

	function initImg() {
		if (($$('#imageBoxTopSlide').getProperty('id') != '')) {
			if ($$('#imageTopStart').getProperty('value')!='') {
				var iStartTop = $$('#imageTopStart').getProperty('value');
			}
			initImgSlide.delay(0, null, ['#imageBoxTopSlide', '.imageSlideT', 'imgTR', iStartTop]);
		}
		if (($$('#imageBoxCntSlide').getProperty('id') != '')) {
			if ($$('#imageCntStart').getProperty('value')!='') {
				var iStartCnt = $$('#imageCntStart').getProperty('value');
			}
			initImgSlide.delay(1500, null, ['#imageBoxCntSlide', '.imageSlideC', 'imgBL', iStartCnt]);
		}
	}

	function initImgSlide(sBox, sClass, sId, iStart) {
		iC = $$(sClass).length;
		var i = 1;
		$$(sClass).each(function(el) {
			el.setProperty('id', sId + i);
			i++;
		});
		var iCountImg = (i - 1);

		if (iStart) {
			iStart = iStart - 1;
		}
		else {
			iStart = 0;
		}

		doImgSlide.delay(3000, null, [true, iStart, iCountImg, sBox, sId]);
	}

	function doImgSlide(bStart, iNr, iCountImg, sBox, sId) {
		if ($(sId + iNr) && !bStart) {
			$(sId + iNr).effect('opacity', {duration: 250, transition:Fx.Transitions.linear}).start(1, 0);
			$(sId + iNr).setStyle('display', 'none');
			$$(sBox).setStyle('background-image', 'url(' + $(sId + iNr).getProperty('src') + ')');
		}

		if (iNr==iCountImg) {
			iNr = 0;
		}
		iNr = iNr + 1;

		if ($(sId + iNr)) {
			$(sId + iNr).setStyle('display', 'block');
		}
		if ($(sId + iNr)) {
			$(sId + iNr).effect('opacity', {duration: 1000, transition:Fx.Transitions.linear}).start(0, 1);
		}

		doImgSlide.delay(3000, null, [false, iNr, iCountImg, sBox, sId]);
	}
	*/