// JavaScript Document

function validateInt(obj, minValue, maxValue, defaultValue) {
	if (typeof obj == "string") obj = document.getElementById(obj);
	var currentValue = parseInt(obj.value);
	if (isNaN(currentValue)) {
		currentValue = '';
	} else {
		if (currentValue < minValue) currentValue = '';
		if (currentValue > maxValue) currentValue = '';
	}
	if (currentValue == '' && defaultValue != '') {
		currentValue = defaultValue;	
	}
	obj.value = currentValue;
} 


window.addEvent('domready', function() {
									 
	var slider = new Fx.Slide('lkuf_vers_ja');
	slider.hide();
	
	(function() {
		if ($('lkuf_ja').checked == true) {
			slider.slideIn();
		} else {
			slider.slideOut();
		}  
	}).periodical(50);
});

