//function hideMenuTitles() {
//	var root = document.getElementById("menuList");
//	if (!root) return;
//	for (var i = 0; i < root.childNodes.length; i++) {
//		var li = root.childNodes[i];
//		if (li && li.className != "sep") {
//			var anode = li.childNodes[0];
//			if (anode)
//				anode.title = "";
//		}
//	}
//}

function ToggleRefOther(refid, refotherid) {
	var elref = document.getElementById(refid); if (!elref) return;
	var elrefother = document.getElementById(refotherid); if (!elrefother) return;
	val = elref.value.substring(0,6).toLowerCase();
	if (val == "anders") {
		elrefother.disabled = false;
	} else {
		elrefother.disabled = true;
	}
}

// dd-MM-yyyy ?
function IsValidDate(value) {
	var exp = /(((0[1-9]|[12][0-9]|3[01])([-./])(0[13578]|10|12)([-./])(\d{4}))|(([0][1-9]|[12][0-9]|30)([-./])(0[469]|11)([-./])(\d{4}))|((0[1-9]|1[0-9]|2[0-8])([-./])(02)([-./])(\d{4}))|((29)(\.|-|\/)(02)([-./])([02468][048]00))|((29)([-./])(02)([-./])([13579][26]00))|((29)([-./])(02)([-./])([0-9][0-9][0][48]))|((29)([-./])(02)([-./])([0-9][0-9][2468][048]))|((29)([-./])(02)([-./])([0-9][0-9][13579][26])))/;
	var re = new RegExp(exp);
	return value.match(re);
}




//function ProtectImg(img) { 
//	img.galleryimg = "no"; 
//	img.ondragstart = function () { return false; }
//	img.onmousedown = function (e) {
//		if (e && e.preventDefault) e.preventDefault();
//		if (document.all ) {
//			if(event.button == 2 ) return false;
//		} else { 
//			if( e.which == 3 ) return false;
//		}
//	}
//	img.oncontextmenu = function () { return false; } 
//}

//function FadeElements(from, to) {
//	tDiv = to;
//	vDiv = from;

//	if($(tDiv).fx) { $(tDiv).fx.stop(); }
//	if($(vDiv).fx) { $(vDiv).fx.stop(); }

//	$(tDiv).fx = $(tDiv).effect('opacity', { duration: 350 }).start(0);
//	$(vDiv).fx = $(vDiv).effect('opacity', { duration: 350 }).start(1);	
//}

