cpath = "/";


function cookieRead(name)
{
	zusuchen=name+"=";
	laenge=zusuchen.length;
	cookielaenge=document.cookie.length;
	position=0;
	while (position<cookielaenge)
	{
		ende=position+laenge;
		if (document.cookie.substring(position,ende)==zusuchen)
		{
			endkette=document.cookie.indexOf(";",ende);
			if (endkette==-1)
				endkette=document.cookie.length;
			ergebnis=unescape(document.cookie.substring(ende,endkette));
			return (ergebnis);
		}
		position=document.cookie.indexOf(" ",position)+1;
		if (position==0)
			break;
	}
	return (null);
}


function cookieWrite(name,wert,tage)
{
	verfall=new Date();
	verfall.setTime(verfall.getTime()+(tage*24*60*60*1000));
	document.cookie=name+"="+escape(wert)+";expires="+verfall.toGMTString()+";path="+cpath;
}