
<!--

function saveIt(name) {
	var x = 'zujung';
	if (!x)
		alert('error');
	else {
		Cookies.create(name,x);
		alert('You may not visit this website at this time!');
		document.getElementById("age").innerHTML='<br/><br/>You may not visit this website at this time!';
	}
}

function readIt(name) {
	alert('The value of the cookie is ' + Cookies[name]);
}

function eraseIt(name) {
	Cookies.erase(name);
	alert('Cookie erased');
}

function init() {
	for (var i=1;i<3;i++) {
		var x = Cookies['ppkcookie' + i];
		if (x) alert('Cookie ppkcookie' + i + '\nthat you set on a previous visit, is still active.\nIts value is ' + x);
	}
}
// -->






function young(name) {

saveIt(name);

}


function checkkeks(name) {

//alert('The value of the cookie is ' + Cookies[name]);

var lols = Cookies[name]

if (lols=="zujung"){
  document.getElementById("age").innerHTML='<br/><br/>You may not visit this website at this time!';
  //alert("du bist zu jung"+Cookies[name]);
}
else [
  
]

}




// ----------------------------------------

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


function checkenter(what) {

    if ( monthy!=="Month" ) 
    {
      if ( dayy!=="Day" ) 
      {
         if ( yeary!=="Year" ) 
         {
	    checkAge();
          }
          else {}
      }
      else {}
    }
    else {}

} 




    function nojs() {
      document.getElementById("no-js").style.display='none';
      document.getElementById("contenthide").style.display='block';
    }









var dayy = "Day";
var monthy = "Month";
var yeary = "Year";

lang = "us";

    function langset(lg){
        lang = lg;
    }

    function jumptodiv() {
      document.getElementById("age2").style.display='inline';
      document.getElementById("pl").style.display='inline';
      document.getElementById("age").style.display='none';
    }
    function jumptodiv2() {
      document.getElementById("age2").style.display='none';
      document.getElementById("pl").style.display='none';
      document.getElementById("age").style.display='inline';
    }


  function selectWert(sObj) {
    with (sObj) return options[selectedIndex].value;
  }



function checkAge() {
  


/*
			var monthy = document.forms["age_form"]["month"].value;
                        var dayy = document.forms["age_form"]["day"].value;
                        var yeary = document.forms["age_form"]["year"].value;
			alert(monthy);
                        */
  
  
			/* the minumum age you want to allow in */
			var min_age = 17;

			/* change "age_form" to whatever your form has for a name="..." 
			var year = parseInt(document.forms["age_form"]["year"].value);
			var month = parseInt(document.forms["age_form"]["month"].value) - 1;
			var day = parseInt(document.forms["age_form"]["day"].value);*/

			/* change "age_form" to whatever your form has for a name="..." */
			var year = parseInt(yeary);
			var month = parseInt(monthy) - 1;
			var day = parseInt(dayy);


			var theirDate = new Date((year + min_age), month, day);
			var today = new Date;


if ( (today.getTime() - theirDate.getTime()) < 0) {
  
  //alert("today "+today+" theirdate "+theirDate);
  //alert("monat "+month+"tag "+day+"jahr "+year+"theirdate "+theirDate.getTime()+"------"+today.getTime());

  //alert("You may not visit this website at this time");
  young('testkeks')
  //jumptodiv();
  return false;
}
else {
    if ( monthy=="Month" ) 
    {
    alert("Please select your full date of birth!");
    }
    else 
    {
      if ( dayy=="Day" ) 
      {
      alert("Please select your full date of birth!");
      }
      else 
      {
         if ( yeary=="Year" ) 
         {
	  alert("Please select your full date of birth!");
          }
          else 
           {
	      //alert((today.getTime() - theirDate.getTime()));
	      //var mo = document.getElementById("mo").value;
	      //alert(mo+dayy+yeary);
	      
	      //alert(today.getTime());
	      
	      //alert(theirDate.getTime());
		MM_openBrWindow('http://stream.deepsilver.com/stream/games/risen/'+lang+'/index2.html','impressum','location=no,menubar=no,locationbar=no,scrollbars=yes,fullscreen=yes');
		return true;
            }
      }
    }
    }


} //end function checkage


  
function enterit() {
		MM_openBrWindow('http://stream.deepsilver.com/stream/games/risen/'+lang+'/index2.html','impressum','location=no,menubar=no,locationbar=no,scrollbars=yes,fullscreen=yes');
} //end function checkage

function checkAge2() {
  
if (lang=="us"){

checkAge();
}
else {
  		MM_openBrWindow('http://stream.deepsilver.com/stream/games/risen/'+lang+'/index2.html','impressum','location=no,menubar=no,locationbar=no,scrollbars=yes,fullscreen=yes');
}

} //end function checkage
















