Hallo Pascal,
na Du bist ja ein seltsamer Keksbäcker:
<script type="text/javascript">
function readCookie () {
var a = document.cookie;
if ( a =='checkk=checked')
{window.location = "site1.html"}
else
{window.location = "site2.html"};
}var input = document.cookie;
if ( input =='checkk=checkk')
{document.getElementById('datepicker').style.display='none';}
else
{document.getElementById('datepicker').style.display='block';};
}function writeCookie () {
var input = new Date();
input = new Date(input.getTime() + 30000000000);
document.cookie='checkk=checked; expires='+ input.toGMTString();
}
</script>
Gruß aus Berlin!
eddi