
	/**
	 *	(c) Copyright 2006 by Cocomore AG, Frankfurt/Main (Germany)
	 *	Written by Frank R. Gross, frank.gross@cocomore.com
	 *
	 *	This JavaScript source code is copyrighted by the
	 *	author. Unauthorized distribution and/or usage
	 *	in whole or parts as well as changing the source
	 *	code is expressly prohibited.
	 *
	 *	$Id: b.php 56 2005-11-11 11:56:28Z Administrator $
	 */

	function popupWindow( winUrl, winName, winWidth, winHeight, centered ) {
		var winX, winY, popupWin;
		winX = 50;
		winY = 50;

		if(centered == 'true') {
			if( screen.availWidth ) {
				winX = ((screen.availWidth/2)-(winWidth/2));
			}

			if( screen.availHeight ) {
				winY = ((screen.availHeight/2)-(winHeight/2));
			}
		}

		popupWin = window.open( winUrl, winName, 'width=' + winWidth + ',height=' + winHeight + ',left=' + winX + ',top=' + winY +',directories=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no' );
		popupWin.focus();
	}

	function popup( winUrl, winName, winWidth, winHeight ) {
		var winX, winY, popupWin;
		winX = 50;
		winY = 50;

		if( screen.availWidth ) {
			winX = ((screen.availWidth/2)-(winWidth/2));
		}
		if( screen.availHeight ) {
			winY = ((screen.availHeight/2)-(winHeight/2));
		}

		popupWin = window.open( winUrl, winName, 'width=' + winWidth + ',height=' + winHeight + ',left=' + winX + ',top=' + winY +',directories=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no' );
		popupWin.focus();
	}

	/* --- */

	function popup_01( winUrl ) {
		popup( winUrl,'',790,490 );
	}

	function popup_02( winUrl ) {
		popup( winUrl,'',780,520 );
	}

	function popup_03( winUrl ) {
		popup( winUrl,'',900,750 );
	}

	function popup_04( winUrl ) {
		popup( winUrl,'',1050,630 );
	}

	function popup_05( winUrl ) {
		popup( winUrl,'',605,405 );
	}

	/* --- */

	function closeAndPopup_01( winUrl ) {
		popup_01( winUrl );
		self.close();
	}

	function closeAndPopup_02( winUrl ) {
		popup_02( winUrl );
		self.close();
	}

	function closeAndPopup_03( winUrl ) {
		popup_03( winUrl );
		self.close();
	}

	/* --- */

	function closeAndOpenerGo( winUrl ) {
		opener.location.href = winUrl;
		opener.focus();
		self.close();
	}

	/* --- */
