function checkAll(form, name, value){
    for(i = 0; i < form.elements.length; i++){
        el = form.elements[i]
        if (el.name == name){
           el.checked = value;                         
        }
    }
}


function checkboxSelected(form, elName){
    for(i = 0; i < form.length; i++){
        el = form.elements[i];
        if (el.name == elName && el.checked){
            return true;
        }
    }
    return false;
}


    function wopen(_wurl,_wn,_ww,_wh,_wscrl){
                if(screen.width){
                                wpos_x = (screen.width-_ww)/2;
                                if (wpos_x < 0){ wpos_x = 0;}
                                wpos_y = (screen.height-_wh)/2;
                                if (wpos_y < 0){ wpos_y = 0;}
                }else{
                                wpos_x = 0; wpos_y = 0;
                }if(_wn==""){
                                _wn = "w_test";
                }
                _wind_desc = window.open(_wurl,_wn,"alwaysRaised=0,top="+wpos_y+",left="+wpos_x+",height="+_wh+",width="+_ww+",menubar=0,resizable=0,scrollbars="+_wscrl+",status=0");
                _wind_desc.focus();
  }
