chImage0 = new Image()
chImage0.src = "/main/image/form/checkbox0.gif"
chImage1 = new Image()
chImage1.src = "/main/image/form/checkbox1.gif"
		
function fancyCheckBox(id, groupId, layerName){
	this.id = id
	this.group = groupId
	this.checked = 0
	this.hiddenName = "chkbx" + id
}
		
function checkBoxClick(idNr, groupId, formName, elemName, layerName) {
	chCurrentCheckBox = "checkBox" + idNr
	chCurrentCheckBoxItem = eval ("checkBox" + idNr)
	chCurrentForm = eval("document." +formName + '.' + elemName)
	chCurrentCheckBoxItem.checked == 1 ? chCurrentCheckBoxItem.checked = 0 : chCurrentCheckBoxItem.checked = 1
	chCurrentImage = "/main/image/form/checkbox" + chCurrentCheckBoxItem.checked + ".gif"	
	document.images[chCurrentCheckBox].src = chCurrentImage
	chCurrentForm.value = (chCurrentCheckBoxItem.checked)
}
