function setCookie(whichName,whichValue,daysUntilExpiration) {	if(daysUntilExpiration == null) daysUntilExpiration=30;	// 30 days is default value	var cookieExpDate = new Date((new Date()).getTime() + (1000*60*60*24*daysUntilExpiration)); 	var cookieContent = whichName + '=' + whichValue + '; expires=' + cookieExpDate.toGMTString()+';';	document.cookie = cookieContent;}function getCookie(whichName){	var cookieContent = document.cookie;	var pos = cookieContent.indexOf(whichName);	var start = pos + whichName.length + 1;	var end = cookieContent.indexOf(";",start);	if(end == -1) end = cookieContent.length;	var whichValue = cookieContent.substring(start,end);	return whichValue;}function deleteCookie(whichName,whichValue){	var cookieContent = whichName + '=' + whichValue + '; expires=expires=Thu, 01-Jan-70 00:00:01 GMT;';	document.cookie = cookieContent;}// function getCookie(name) {//    var i=0;  //Suchposition im Cookie//    var suche = name + "=";//    while (i<document.cookie.length) {//       if (document.cookie.substring(i, i + suche.length) == suche) {//          var ende = document.cookie.indexOf(";", i + suche.length);//          ende = (ende > -1) ? ende : document.cookie.length;//          var cook = document.cookie.substring(i + suche.length, ende);//          return cook;//          //return unescape(cook);//       }//       i++;//    }//    return "";// }
