function splithalffenster(filename,filepath,mode)
%   This software is protected by german copyright and international treaties.             
%   Copyright 2004 Markus Junghöfer & Peter Peyk. All Rights Reserved.                     
%                                                                                          
%   THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE        
%   NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,    
%   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE    
%   OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
%   TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT,       
%   INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE      
%   OR DOCUMENTATION.                                                                      


splithalfwindow = figure('Units','points', ...
	'Color',[0.8 0.8 0.8], ...
	'Position',[364.5 156.25 161.25 354.25], ...
   'Tag','splithalfwindow');


atlabel = uicontrol('Parent',splithalfwindow, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Position',[9 305.75 144.75 20.25], ...
	'String','Anzahl der Bedingungen (ats):', ...
	'Style','text', ...
   'Tag','StaticText1');
atedit = uicontrol('parent',splithalfwindow,...
   'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Position',[65.75 281.75 20.75 16.5], ...
	'Style','edit', ...
   'Tag','atedit', ...
   'Value',[0]);

teillabel = uicontrol('Parent',splithalfwindow, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Position',[9 245.75 144.75 20.25], ...
	'String','Anzahl der Unterteilungen:', ...
	'Style','text', ...
   'Tag','StaticText1');
teiledit = uicontrol('parent',splithalfwindow,...
   'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Position',[65.75 221.75 20.75 16.5], ...
	'Style','edit', ...
   'Tag','teiledit', ...
   'Value',[0]);


f = uicontrol('Parent',splithalfwindow, ...
	'Units','points', ...
	'Position',[9 10.5 58.5 26.25], ...
	'String','abbrechen', ...
   'Tag','Pushbutton1', ...
	'Callback','close'); 
g = uicontrol('Parent',splithalfwindow, ...
	'Units','points', ...
	'Position',[85.5 10.5 65.25 26.25], ...
	'String','ok', ...
   'Tag','Pushbutton2',...
	'Callback','splithalfmanagekaro(filename,filepath,mode);'); 