var type = getCookie('Vorlage1'); var sugar = document.getElementById('sugar'); sugar.innerHTML =''; if (type == 'wert01') { document.write(''); } else if (type == 'wert02') { document.write(''); } else if (type == 'wert03') { document.write(''); } else if (type == 'wert04') { document.write(''); } else if (type == 'wert05') { document.write(''); } else if (type == 'wert06') { document.write(''); } else if (type == 'wert07') { document.write(''); } else if (type == 'wert08') { document.write(''); } else if (type == 'wert09') { document.write(''); } function changeskin(change) { var scheme = change; var name = 'Vorlage1'; var pathname = location.pathname; //var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/'; var ExpDate = new Date (); ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000)); setCookie(name,scheme,ExpDate,'/'); } function getCookie(name){ var cname = name + "="; var dc = document.cookie; if (dc.length > 0) { begin = dc.indexOf(cname); if (begin != -1) { begin += cname.length; end = dc.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin, end)); } } return null; } function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : "; expires=" + expires.toGMTString()) + ((path == null) ? "" : "; path=" + path) + ((domain == null) ? "" : "; domain=" + domain) + ((secure == null) ? "" : "; secure"); }