// +----------------------------------------------------------------------+
// | JavaScript                                                                     
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 Dynamic Development                              
// +----------------------------------------------------------------------+
// | This source file is protected by US Copyright law.                    
// | Unauthorized use will be prosecuted to the fullest extent of     
// | the law.                                                                             
// +----------------------------------------------------------------------+
// | Author:                                                                             
// |        George A. Bonnes :: Dynamic Development                    
// |        contact@dynamic-development.net                                
// |        (716) 400-3713                                                          
// +----------------------------------------------------------------------+
// | Description:                                       
// |        PHlex-O-Matic Poll Enduser 1.0.1
// | Purpose:
// |                              
// +----------------------------------------------------------------------+
// | Version:   
// |        1.0.1
// | Published:
// |        1/15/2005                                                                       
// +----------------------------------------------------------------------+
function process_vote() {
    var num_answers = document.poll.num_answers.value;
    var process_url = document.poll.process_url.value;
    var aid;
    var pid = document.poll.pid.value;
    for(x = 0; x < num_answers; x++) {
        if (document.poll.answers[x].checked == true) {
            aid = document.poll.answers[x].value;
            process_url += '?pid=' + pid + '&aid=' + aid;
            window.open(process_url, 'process', 'scrollbars=yes,width=415,height=400');   
            return;
        }  
    }  
    alert("Please make a selection to place your vote!");
    return;
}