function openWnd(url,wnd_name,width,height,scrollbars){		
	var stScrollBar = (scrollbars ? 'yes' : 'no');
window.open(url,'','width='+width+',height='+height+',status=yes,menubar=no,resizable=yes,scrollbars='+stScrollBar+',left='+String((screen.width-width)/2)+',top='+String((screen.height-height)/2));
}

function dovote(){
  document.getElementById("votediv").style.display="none";
  return true;
}

document.write("<iframe style='display:none' width=1 height=1 allowtransparency='true' frameborder=no border=0 scrolling=no name=voteframe></iframe>");
document.write("<div id=votediv style='padding:5px;font-size:8pt;'>");
document.write("<form action='/dovote.php' target=voteframe onsubmit='return dovote();'>");
document.write("<b>Готовы ли Вы пройти проверку на детекторе лжи?</b><br><br>");document.write("<input type=hidden name=id value='67'>");
document.write("<input type=radio name=ivotefor value='1'> Готов, если это вопрос жизни и смерти<br>");
document.write("<input type=radio name=ivotefor value='2'> Да, если не будет интимных вопросов<br>");
document.write("<input type=radio name=ivotefor value='3'> Да, мне нечего скрывать<br>");
document.write("<input type=radio name=ivotefor value='4'> Да, это будет забавным приключением<br>");
document.write("<input type=radio name=ivotefor value='5'> Нет, я буду волноваться и не пройду испытание<br>");
document.write("<input type=radio name=ivotefor value='6'> Нет, это нарушает мои права<br>");
document.write("<input type=radio name=ivotefor value='7'> Нет, мне есть что скрывать<br>");
document.write("<input type=submit value='Голосовать'></form></div><div style='padding:5px;'><a href='#' onclick=\"openWnd('/vote_rez.php?id=67','blah',500,250,true);return false;\">Результаты опроса</a>");
document.write("</div>");

