﻿function imgonclick(object1, object2, object3, object4, object5, object6, id) {
    var objects = new Array(6);
    objects[0] = object1;
    objects[1] = object2;
    objects[2] = object3;
    objects[3] = object4;
    objects[4] = object5;
    objects[5] = object6;


    for (var i = 0; i < 6; i++) {
        if ((i + 1) == id) {
            document.getElementById(objects[i]).style.display = 'block';
        }
        else {
            document.getElementById(objects[i]).style.display = 'none';
        }
    }
}