function openPicWinCm(pFileName,pWinName,pWidth,pHeight,posWindow,einfuegwin)
{
	var isNS = (document.layers) ? true : false;
	if (isNS) pHeight = pHeight + 19;
	
	switch(posWindow) 
	{
 		case "left":
 		xPosNewWindow=0;
 		break;
 		case "right": 		
 		xPosNewWindow=screen.width-pWidth-12;
 		break;
 		case "middle":
 		xPosNewWindow=(screen.width-pWidth)/2;
 		break;
 		default:
 		xPosNewWindow=(screen.width-pWidth)/2;
		break;
	}	
		
	eval("allSettings = 'width="+pWidth+",height="+pHeight+",menubar=no,scrollbars=yes,status=no,resizable=yes,left='+xPosNewWindow+',top=0'");
	if (einfuegwin)
	{
		
		w1=window.open(pFileName,pWinName,allSettings);
		w1.window.focus();
	}
	else
	{
		w=window.open(pFileName,pWinName,allSettings);
		w.window.focus();
	}
}

function openPicWin(pFileName,pWinName,pWidth,pHeight)
			{
				var isNS = (document.layers) ? true : false;
				
				if (isNS) pHeight = pHeight + 19;
					eval("allSettings = 'width="+pWidth+",height="+pHeight+",menubar=yes,scrollbars=yes,status=yes,resizable=yes'");
					w=window.open(pFileName,pWinName,allSettings);
					w.window.focus();
			}
	