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)
}
function setSubject(form) {
// Function used in the CH request form
	var newSubject = "";
	newSubject = form.SUBJECT_PREFIX.value;

	if(form.SEND_INFO.checked == true)
	{
		newSubject += " - " + form.SUBJECT_SEND_INFO.value;
	}

	if(form.ARRANGE.checked == true)
	{
		newSubject += " - " + form.SUBJECT_ARRANGE.value;
	}
	form.SUBJECT.value = newSubject;
}
