function CheckBrowser() 
{
  var i_Browser;
  var i_Version;
  var version;
    
	version='';
		
	i_Browser = navigator.appName;
	i_Version = navigator.appVersion;		
	
	if ((i_Browser == "Netscape") && (parseInt(i_Version) >= 3)) {
	   version='NS';
        }
	else if ((i_Browser == "Microsoft Internet Explorer") && (parseInt(i_Version) >= 4)){
	   version='IE';
        }
	return version;
}

function resizer()
{
	return;
	if (parseInt(navigator.appVersion.charAt(0)) > 3)
		if (navigator.appVersion.indexOf("Macintosh") > -1)
			window.resizeTo( 738, 500 );
		else

	if (navigator.appName == "Netscape") 
		{
			if(screen.width > 640)
				window.resizeTo( 650, 450 );
    }
	else if (navigator.appName == "Microsoft Internet Explorer") 
		{
			if(screen.width > 640)
			{
			window.resizeTo( 658, 592 );
			//alert(document.all.FrameSize.offsetWidth);		
			//alert(document.all.FrameSize.offsetHeight);					
			
			}
    }
		
}

function setImages() {
	setimg('button_p1',false,'');
	setimg('button_p2',false,'');
	setimg('button_p3',false,'');
	setimg('button_p4',false,'');
	setimg('button_p5',false,'');
	setimg('button_p6',false,'');
	setimg('button_p7',false,'');
	setimg('button_p8',false,'');
	return true;
}

function helptxt ( name )
{
	if ( name == "" )
		self.status = "";
	else
		self.status = eval(name + "_txt");
	return true;
}

function setimg ( name, activate, idvar )
{
	var obj;
	var indx;
	var lay;
	
	if (version != '') 
		{
			indx = name.indexOf(".");
			if (indx > 0 )
				obj = name.substring(0,indx);
			else
				obj = name;
  
      	if (document[name])
      		{
						if (activate)
						{
							document[name].src = eval(obj + "_active" + ".src");
							return helptxt ( obj );
						}
						else
						{
							document[name].src = eval(obj + ".src");
							return helptxt ( "" );
						}
					}
				//sonderfall Layerdefiniton Netscape id="ns" oder ie
				else if (((idvar=="ns") || (idvar=="ie")) && (document.layers.length > 0))
      		{
						if (activate)
						{
							if (idvar=="ns")
								{
								document.layers.ns.document[name].src = eval(obj + "_active" + ".src");
								}
							else
								{
								document.layers.ie.document.layers.ns.document[name].src = eval(obj + "_active" + ".src");
								}
							return helptxt ( obj );
						}
						else
						{
							if (idvar=="ns")						
								{
								document.layers.ns.document[name].src = eval(obj + ".src");
								}
							else
								{
								document.layers.ie.document.layers.ns.document[name].src = eval(obj + ".src");
								}
							return helptxt ( "" );
						}
					}
					
		}
	
}


function DreiFrames(URL1,F1,URL2,F2,URL3,F3)
{  
if ( URL1 != "" )
parent.frames[F1].location.href=URL1;

if ( URL2 != "" )
parent.frames[F2].location.href=URL2;

if ( URL3 != "" )
parent.frames[F3].location.href=URL3;      

}

function GoBack(Wert)
{  
if ( Wert != 0 )
	for(i=0;i<Wert;++i)
		history:back();     		

}     
