<!--
function openWindow(url) {
    wpix=550
    hpix=150
    xpix=35
    ypix=35
    features='toolbar=no,location=no,directories=no,menubar=no,'
    features+='scrollbars=yes,resizable=no,width='
    features+=wpix
    features+=',height='
    features+=hpix
 
    if (navigator.appName.indexOf("Microsoft")>=0) {
        xpix=+20
        ypix=+20
 features+=',left='
 features+=xpix
 features+=',top='
 features+=ypix
    }else{
//-- Netscape
 features+=',screenX='
 features+=xpix
 features+=',screenY='
 features+=ypix
    }
    floater=window.open(url,"Answer",features) 
    floater.focus()    
}

/**
 * Checks/unchecks all rows
 *
 * @param   string   the form name
 * @param   boolean  whether to check or to uncheck the element
 * @param   string   basename of the element
 * @param   integer  min element count
 * @param   integer  max element count
 *
 * @return  boolean  always true
 */
// modified 2004-05-08 by Michael Keck <mail_at_michaelkeck_dot_de>
// - set the other checkboxes (if available) too
function setCheckboxesRange(the_form, do_check, basename, min, max)
{
    for (var i = min; i < max; i++) {
        if (typeof(document.forms[the_form].elements[basename + i]) != 'undefined') {
            document.forms[the_form].elements[basename + i].checked = do_check;
        }
        if (typeof(document.forms[the_form].elements[basename + i + 'r']) != 'undefined') {
            document.forms[the_form].elements[basename + i + 'r'].checked = do_check;
        }
    }

    return true;
} 

function toggleRanks(ranks,this_row,this_id){
    for(var i=1;i<=ranks;i++){
        this_row  += ""
        id=this_row+i
        id = parseInt( id )
        radio_id=document.getElementById(id);
        if(id != this_id){
            radio_id.checked = false;
            //this_id.checked = false;
            //alert("this_id = "+this_id+"  id = "+id+" selected = "+radio_id.checked)
        }
    }
}


function toggleVisibility(id){
    me = document.getElementById(id);
    if (me.style.visibility=="hidden"){
        me.style.visibility="visible";
        me.style.display="block";
        }
    else {
        me.style.visibility="hidden";
        me.style.display="none";
        }
}

//-->

