function vote() {
  var x = 0;
  var allCookies = document.cookie.split(" ");
  for (i=0; i < allCookies.length; i++){
	if (allCookies[i].substr(5, 12) == "Ins_vote")
	  x = -1;
	else
          x = 1;
  }
  if (x != -1){
    var end = new Date();
    var temp = end.getTime() + (186 * 24 * 60 * 60 * 1000); 
    end.setTime(temp);
    document.cookie = "name=Ins_vote; expires=" + end.toGMTString(); 
//    alert("kein Cookie");   
    window.open("http://www.insidian.de/510.0.html","popup",'toolbar=yes,width=300,height=450,location=yes,status=yes,menubar=no,scrollbars=yes,resizable=1' );
    }
} 
