
function butOn(button)
{ 
	if (document.images && button.length > 0) 	
	{
		self.document.images[button].src = '/images/but_' + button + '_on.gif'; 
		self.document.images[button + "_area"].src = '/images/area_on.gif'; 
	}
} 

function butOff(button)
{ 
	 if (document.images && button != thisPlace) 
	{
		 self.document.images[button].src = '/images/but_' + button + '_off.gif'; 
		 self.document.images[button + "_area"].src = '/images/area_off.gif'; 
	}
}


function areaOn(area)
{ 
	if (document.images && area.length > 0) 	
		self.document.images[area + "_area"].src = '/images/area_on.gif'; 
} 

function setStar(starNr, mode)
{ 
	if (document.images) 	
	{
		if (mode == "on")
			self.document.images["star" + starNr].src = '/images/stern_kl.gif'; 
		else if (mode == "off")
			self.document.images["star" + starNr].src = '/images/sizer.gif'; 
	}
		
} 

function kontakt(arg)
{
 	location.href = "/kontakt/kontakt.html?" + arg + "=" + escape(produkt); 
}

function openWin(url,width,height,scrollbars)
	{
		var posx = screen.width/2 - width/2;  
		var posy = screen.height/2 - height/2;
		var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
		var props = 'width=' + width + ',height=' + height + ',scrollbars=' +scrollbars + ',' + propsZ;
		
		window.open(url, "", props);
	}	
	
	function checkURL()
	{
		var start = location.href.indexOf('produkt_');
		if (start != -1)
		{			
			var obj = unescape(location.href.substring(start + 12));
			if (location.href.indexOf('produkt_bst') != -1)	
				document.forms[0].Nachricht.value = "Bestellung des Produktes \"" + obj + "\": ";
			else 
				if (location.href.indexOf('produkt_erf') != -1)
					document.forms[0].Nachricht.value = "Bericht zum Produkt \"" + obj + "\": ";
		}
		
	}
	
	//-----------------BACKOFFICE------------------------------------------------------------------------
	
	function BO_openWin(url,width,height,scrollbars)
	{
		var posx = screen.width/2 - width/2;  
		var posy = screen.height/2 - height/2;
		var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
		var props = 'width=' + width + ',height=' + height + ',scrollbars=' +scrollbars + ',' + propsZ;
		window.open(url, "can", props);
	}	
	
	function BO_deleter(url)
	{
		var sicher = confirm("Sicher löschen?");
		if(sicher)self.location.href = url;
	}