/* IE6 flicker fix
-------------------------------------------------- */
try { document.execCommand("BackgroundImageCache", false, true); } catch(err){}

/* Togglers */

function toggleId(id) {
    $(id).style.display = ($(id).style.display == "none") ? "" : "none";
}

function toggleItems() {
	$A(toggleItems.arguments).each(function(id){
	    toggleId(id);
	});
}

function HasClassName(objElement, strClass){
	if ( objElement.className ){
		var arrList = objElement.className.split(' ');
		var strClassUpper = strClass.toUpperCase();
		for ( var i = 0; i < arrList.length; i++ ){
			if ( arrList[i].toUpperCase() == strClassUpper ){
				return true;
			}
		}
	}
   return false;
}

$(document).ready(function() {
	Date.format = 'dd.mm.yyyy';
	$('.wdate').datePicker({startDate:'01.01.1996'});
});