	active_id = "";
	main_active_id = "";
  
	function pagetop() 
	{
		//OBEN = document.URL + "#pagetop";
		OBEN = document.URL + "";
		window.location.href = OBEN;
	}
  
	function normal(image_name) 
	{
		if (image_name != active_id && image_name != main_active_id) document[image_name].src = eval( image_name + '.src;' );
	}
  
	function over(image_name) 
	{
		if (image_name != active_id && image_name != main_active_id) document[image_name].src = eval( image_name + '_ov.src;' );
	}
  
	function init_images(img_array) 
	{
		for (var i=0 ; i < img_array.length ; i++) 
		{
			eval( img_array[i][0] + ' = new Image();' );
			eval( img_array[i][0] + '.src = "picts/' + img_array[i][1] + '.gif";' );
			eval( img_array[i][0] + '_ov = new Image();' );
			eval( img_array[i][0] + '_ov.src = "picts/' + img_array[i][1] + '-over.gif";' );
		}
	}
  
	function glossar(id) 
	{
		var popUpWidth	= 360
		var popUpHeight	= 330;
		var popUpPosX 	= (screen.width) ? (screen.width-popUpWidth)/2 : 0;
		var popUpPosY 	= (screen.height) ? (screen.height-popUpHeight)/2 : 0;
		var popUpURL 	= "/logic/dlr_glossar.php?id=" + id;
		if(self.location.host == "coder432.intranet.xoz") popUpURL = "/dradio" + popUpURL;
		var popUpName	= "Glossar";
		var popUpParams	= 'width='+popUpWidth+', height='+popUpHeight+', top='+popUpPosY+', left='+popUpPosX+', fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0';
    
		glossarWin = window.open(popUpURL,popUpName,popUpParams);
		glossarWin.blur();
		window.focus();
		glossarWin.focus();
	}
  
	function show_pic(pic_id,row_id,table,pic_field) 
	{
		properties = "location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no";
		pop_width = 530;
		pop_height = 700;
		if (screen.availWidth <= pop_width || screen.availHeight <= pop_height) {
			left_pos = 1;
			oben = 1;
		}
		else
		{ 
			left_pos = (screen.availWidth - pop_width) / 2;
			oben = (screen.availHeight - pop_height) / 2;
		}
	 
		var popUpURL 	= '/logic/dlr_bildpopup.php?id='+pic_id+'&table='+table+'&pic_field='+pic_field+'&row_id='+row_id+'';
		if(self.location.host == "coder432.intranet.xoz") popUpURL 	= "/dradio" + popUpURL;
	 
		popup_window=window.open(popUpURL,'pic_'+pic_id+'',''+properties+',width='+pop_width+',height='+pop_height+',left='+left_pos+',top='+oben+'');
		popup_window.focus();
  }


