// JavaScript Document
function toggleEvents(strList,strType) {
	cal = document.getElementById(strList)
	tgl = document.getElementById('tgl'+strType)
	calClass = cal.className
	baseClass = ""
	var re = new RegExp('no' + strType, 'i');	
	//if class already contains negation, remove it; otherwise add it
	if(calClass.indexOf(strType)>0){
		cal.className = calClass.replace(re,"")
		tgl.className = tgl.className.replace('tglOff','tglOn')
	}else{
		cal.className= 'no'+strType+' '+calClass;
		tgl.className = tgl.className.replace('tglOn','tglOff')
	}
}

