function openFullWin( src, winName, padding, conf ){
	if( !(padding > 0) )
		padding = 10;
	var left = padding;
	var top = padding;
	var width = screen.width - (padding * 2);
	var height = screen.height - (padding * 2);

	if( !conf )
		conf = 'left=' +left+ ',top=' +top+ ',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height;

	return window.open(src, winName, conf);
}


function openCenteredWin( src, winName, width, height, conf ){
	if( !(width > 0) )
		if( screen.width )
			width = screen.width - (screen.width * 0.2);
	if( !(height > 0) )
		if( screen.height )
			height = screen.height - (screen.height * 0.2);
	
	if( !winName )
		winName = 'winPopUp';

	var left = 0;
	var top = 0;
	if( screen.width )
		left = ( screen.width/2 - width/2 ) - 30;
	if( screen.height )
		top =  ( screen.height/2 - height/2 ) - 50;
	if( !conf )
		conf = 'left=' +left+ ',top=' +top+ ',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height;

	return window.open(src, winName, conf);
}


