// Charset: UTF-8! 
function isInt(string) {
     if (string == "") {
         return false;
     }
     for (var i = 0; i < string.length; i++) {
         if (string.charAt(i) < "0" || string.charAt(i) > "9") {
             return false;
         }
     }
     return true;
}

function activateCB(id) {
		document.getElementById('edit['+id+']').checked = true;
		return true;
}

function toggleStyle(el) {
	if (el.className == '') {
		el.className = 'tipp_result2';
	}
	else {
		el.className = '';
	}
}

function checkAll(name, state) {
	var boxes = document.getElementsByName(name);
	for (var i = 0; i<boxes.length; i++) {
		boxes[i].checked = state;
	}
}
