if(top != self)top.location = self.location;

function checkTextArea(obj, maxLength) {
  var textArea = obj;
  var length = textArea.value.length;
  if(length > maxLength) {
    textArea.value = textArea.value.substr(0, maxLength);
  }
}

function del(url){
	wirklich = false;
	wirklich = confirm('Wollen Sie diesen Löschvorgang wirklich durchführen?');
	if(wirklich)location.href=url;
}
menu_form_var = 0;
function toggle_menu_form(){
	if(document.menu_form.extern.checked ){
		document.menu_form.url.readOnly = false;
		document.menu_form.getvars.readOnly = true;
		document.menu_form.getvars.value = "";
		document.menu_form.name.readOnly = true;
		document.menu_form.name.value = "";
		menu_form_var = 0;
	}
	else{
		document.menu_form.url.readOnly = true;
		document.menu_form.url.value = "";
		document.menu_form.getvars.readOnly = false;
		document.menu_form.name.readOnly = false;
		menu_form_var = 1;
	}
}
function verstecken(was,wer) {
   was.style.display = "none";
   wer.value = "anzeigen"; 
   wer.onclick = function() { zeigen(was,wer) };
   
}
function zeigen(was,wer) {
   was.style.display = "block";
   wer.value = "verbergen";
   wer.onclick = function() { verstecken(was,wer) };
   
}
