var pollpopup;
with(document){
open();
write('');
write('
');
var st = (window.name=='pollpopup') ? 3:1;
if(document.all&&document.getElementById){
write('');
}else{
write('
');
}
close();
}
function vote(qid){
var aid=0;
var els = document.pollForm.elements;
for(var i=0;i0){
//schrijf cookie weg
var today = new Date();
var expiry = new Date(today.getTime() + 60 * 60 * 1000); //1 dag geldig = 1 * 24 * 60 * 60 * 1000
document.cookie = 'poll'+qid+'=done' + '; expires=' + expiry.toGMTString();
changeLocation('http://poll.raishows.com/client/poll.asp?id=5&aid='+aid+'&qid='+qid+'&submit=1&status=2&inpopup=0');
}
}
function poll(popup){
if(popup){
var centerX,centerY,w,h,session;
w=220;
h=300;
centerX = (screen.width / 2) - (w / 2);
centerY = (screen.height / 2) - (h / 2);
pollpopup = window.open('http://poll.raishows.com/client/poll.asp?id=5&inpopup=1','pollpopup','left='+centerX+',top='+centerY+',toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=1,width='+w+',height='+h);
window.setTimeout('checkPopup()',1000);
}else{
changeLocation('http://poll.raishows.com/client/poll.asp?id=5&status=1');
}
}
function results(){
changeLocation('http://poll.raishows.com/client/poll.asp?id=5&status=2');
}
function changeLocation(strLocation){
strLocation += (strLocation.indexOf('?')!=-1) ? '&':'?';
strLocation += 'rnd=' + Math.random();
if(document.all&&document.getElementById){
document.getElementById('pollScript').src = strLocation;
}else{
if(document.getElementById){
document.getElementById('pollScript').innerHTML = '';
}else if(document.layers){
with(document.layers['pollScript'].document){
open();
write('');
close();
}
}
}
}
function checkPopup(){
if(pollpopup&&!pollpopup.closed){
window.setTimeout('checkPopup()',1000);
}else{
changeLocation('http://poll.raishows.com/client/poll.asp?id=5&status=2');
}
}