function openWindow(theURL,winName,features) { //v2.0
	help = window.open(theURL,winName,features);
}

function setFeld(id)
{
	merkerFeld = "button2_" + merker;
	feld = "button2_" + id;
	
	
	
	document.images[feld].src = '/gfx/button_' + id + '_akt.gif';
	document.images[merkerFeld].src = '/gfx/button_' + merker + '_inakt.gif';
		
	merker = id;
}

function sendFormular(FormObjekt)
{
	
			
if (_CF_checkeinschraenkung(FormObjekt)) 
	{
		
	if(FormObjekt.aufmerksam_geworden)
	 
		FormObjekt.submit();
		/*
		if(FormObjekt.aufmerksam_geworden.value != 0)	FormObjekt.submit();
		else alert('Bitte teilen Sie uns doch noch mit, wie Sie auf uns aufmerksam geworden sind.')
		*/
	
	}
}

function sendFormular2(FormObjekt)
{

	
			
if (_CF_checkgetnewsletter(FormObjekt)) 
		{
		
		FormObjekt.submit();
		
		}
	
}

function setCookie(Bezeichner, Wert, Verfall) 
{
 var jetzt = new Date();
 var Auszeit = new Date(jetzt.getTime() + Verfall);
 document.cookie = Bezeichner+"="+Wert+"; path=/; expires="+Auszeit.toGMTString()+";";
}

function getCookieVal(offset)
{
	var endstr = document.cookie.indexOf(";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset,endstr));
}

function GetCookie(Name)
{
	var arg = Name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	
	var i = 0;
	while (i < clen)
	{
		var j = i + alen;
		if (document.cookie.substring(i,j) == arg)
			return getCookieVal(j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
		
	}
	return null;
}

function DeleteCookie(Name)
{
	document.cookie = Name+"=0; path=/; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
