I have no idea why you posted all of that code. >< Ok first a few pointers, most of us aren't going to sit here and read through all of that code line by line, we just don't have the time. If you suspect that a portion of your code is suspect for errors, post the relevant parts of it and i am sure we will take a look at it! ^^
Second, about your questions.
Judging from the Author comments of the script, this is designed to work as a polling system, which is a fairly common request of websites but, what I didn't see in your code was any call to a Recordset object so this tells me the results aren't being stored in a database??
I make this assumption with the following reply: the actual poll itself is not being displayed in a popup window, rather it is hosted in a content page somewhere on your site.
With that said when the user checks off an answer to the poll they would hit submit, from there the data would be wrote to a database and their entry would be effectively counted. After the database operations are complete you could write this line of javascript back to the browser:
window.open(); (obviously this is void of all necessary parameters)
which will spawn you a popup window, on this page you could just simply query the database to list the results of the ongoing poll.
Lastly to detect the window size you can use javascript to do that and i THINK the syntax for IE is
document.body.clientHeight;
document.body.clientWidth;
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429