function ImageCheckbox(container_obj, title_obj, img_obj, inp_obj) {
	var thisCopy = this;
	this.containerObj = container_obj;
	this.titleObj = title_obj;
	this.imgObj = img_obj;
	this.inpObj = inp_obj;
	this.containerObj.onclick = function() {return thisCopy.containerOnClick();};
	this.titleObj.onclick = function() {return thisCopy.titleOnClick();};
	return this;
}
ImageCheckbox.prototype = {
	containerOnClick: function() {
		this.__switchCheckbox();
	},
	titleOnClick: function() {
		this.__switchCheckbox();
	},
	__switchCheckbox: function() {
		this.imgObj.style.visibility = ('visible' == this.imgObj.style.visibility) ? 'hidden' : 'visible';
		this.inpObj.value = ('1' == this.inpObj.value) ? '0' : '1';
	}
}