Project

General

Profile

1
function toggle_viewers() {
2
    if(document.add.visibility.value == 'private') {
3
        document.getElementById('private_viewers').style.display = 'block';
4
        document.getElementById('registered_viewers').style.display = 'none';
5
    } else if(document.add.visibility.value == 'registered') {
6
        document.getElementById('private_viewers').style.display = 'none';
7
        document.getElementById('registered_viewers').style.display = 'block';
8
    } else {
9
        document.getElementById('private_viewers').style.display = 'none';
10
        document.getElementById('registered_viewers').style.display = 'none';
11
    }
12
}
13

    
14
function toggle_visibility(id){
15
    if(document.getElementById(id).style.display == "block") {
16
        document.getElementById(id).style.display = "none";
17
    } else {
18
        document.getElementById(id).style.display = "block";
19
    }
20
}
21
var plus = new Image;
22
plus.src = "<?php echo THEME_URL; ?>/images/plus_16.png";
23
var minus = new Image;
24
minus.src = "<?php echo THEME_URL; ?>/images/minus_16.png";
25
function toggle_plus_minus(id) {
26
    var img_src = document.images['plus_minus_' + id].src;
27
    if(img_src == plus.src) {
28
        document.images['plus_minus_' + id].src = minus.src;
29
    } else {
30
        document.images['plus_minus_' + id].src = plus.src;
31
    }
32
}
(15-15/25)