// Muita scriptejä

check = []; //this is an array that stores all the true/false values for each checkbox

function checkBox(id)
    {

    if(check[id] != true)
        {
        document.getElementById('imgCheck' + id).src = "http://www.motot.net/img/checkbox_true.png"; //change the image
        document.getElementById('inputCheck' + id).value = "true"; //change the field value
        check[id] = true; //change the value for this checkbox in the array
        }
    else
        {
        document.getElementById('imgCheck' + id).src = "http://www.motot.net/img/checkbox_false.png";
        document.getElementById('inputCheck' + id).value = "false";
        check[id] = false;
        }
    }

function linkkilista(frm) {
    var newPage = frm.url.options[frm.url.selectedIndex].value
    if (newPage != "none") {
        location.href=newPage
    }
}

