/*     lib.js    Sweepstakes    Created by Hendrik Runte on Thu Jul 03 2003.    Copyright (c) 2003 P.AD. werbeagentur GmbH. All rights reserved.        $Id: lib.js,v 1.3 2003/11/14 16:02:44 hendrik Exp $*/	function openWindow (url, name, features, myWidth, myHeight, isCenter) {				if (name == '') {			var now	=	new Date ();			var ms	=	now.getMilliseconds ();			name		=	'flexwindow'	+	ms;		}				if ( (myHeight == '') || (myHeight == 0) ) 	myHeight	=	500;		if ( (myWidth == '') || (myWidth == 0) ) 	myWidth		=	500;						if ( (features == "none") || (features == '') ) {			features = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no";		} else {				if (features == "all") {				features = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";			}		}				if ( (window.screen) && (isCenter == "true") ){			var myLeft	=	(screen.width - myWidth) / 2;			var myTop	=	( (screen.height - myHeight) / 2) - 20;			features	+=	(features != '') ? ',' : '';			features	+=	',left=' + myLeft + ',top=' + myTop;  		}			  		window.open (url, name, features + ((features != '') ? ',' : '') + 'width=' + myWidth + ',height=' + myHeight).focus();	}