var CSS_NORMAL 		= "unavitext";
var CSS_HIGHLIGHT 	= "unaviact";
var CSS_NORMAL_SUB	= "u-unavitext";
var CSS_HIGHLIGHT_SUB = "u-unaviact";

function highlightSubmenu() {
	try {	
				
		// Parse URL
		var loc = document.location.href;
		var idx = (loc.lastIndexOf("/") > -1) ? loc.lastIndexOf("/")+1 : 0;
		var doc = loc.substring(idx,loc.length);
	
		// Get <A/> Tags
		var atags = document.getElementsByTagName("a");
	
		// Parse Tags
		for (var i = 0; i < atags.length; i++) {
		
			var cl = (atags[i].getAttribute("class") != null) ? atags[i].getAttribute("class") : atags[i].getAttribute("className");
					
			// Expected CSS Class?
			if (cl != CSS_NORMAL && cl != CSS_NORMAL_SUB) continue;	
	
			// Expected URL?
			if ((atags[i].href == doc) || (atags[i].href == loc)) {						
				// Update class
				if (atags[i].getAttribute("class") == CSS_NORMAL) {
				atags[i].setAttribute("class",CSS_HIGHLIGHT);	
				atags[i].setAttribute("className",CSS_HIGHLIGHT);
				}
				if (atags[i].getAttribute("class") == CSS_NORMAL_SUB) {
				atags[i].setAttribute("class",CSS_HIGHLIGHT_SUB);	
				atags[i].setAttribute("className",CSS_HIGHLIGHT_SUB);
				}
			}
		}
		
	} catch (e) {
		// Nur zum debugging einkommentieren
		//alert(e);	
	}
}



<!-- Validierung mit Focusierung de -->

var js11=true;

function check_address() {
        
	
		
		
		if (document.anschrift.Name.value==document.anschrift.Name.defaultValue) {
                alert("Bitte geben Sie Ihren Namen ein!");
                document.anschrift.Name.select();
                document.anschrift.Name.focus();
                return false;
        		}
          	
          	/*
          		 if (document.anschrift.vorname.value==document.anschrift.vorname.defaultValue) {
                alert("Bitte geben Sie Ihren Vornamen ein!");
                document.anschrift.vorname.select();
                document.anschrift.vorname.focus();
                return false;
        		}
				      
			
		if (document.anschrift.strasse.value==document.anschrift.strasse.defaultValue) {
                alert("Bitte geben Sie Ihre Strasse ein!");
                document.anschrift.strasse.select();
                document.anschrift.strasse.focus();
                return false;
        		}
        		
				
		    if (document.anschrift.plz.value==document.anschrift.plz.defaultValue) {
                alert("Bitte geben Sie Ihre Postleitzahl an!");
                document.anschrift.plz.select();
                document.anschrift.plz.focus();
                return false;
        		}
	*/        		
		  if (document.anschrift.Wohnort.value==document.anschrift.Wohnort.defaultValue) {
                alert("Bitte geben Sie Ihren Ort ein!");
                document.anschrift.Wohnort.select();
                document.anschrift.Wohnort.focus();
                return false;
        		}
        		/*
		 if (document.anschrift.telefon.value==document.anschrift.telefon.defaultValue) {
                alert("Bitte geben Sie Ihre Telefonnummer ein!");
                document.anschrift.telefon.select();
                document.anschrift.telefon.focus();
                return false;
        		}			
		   */
		   
		if (document.anschrift.eMail.value==document.anschrift.eMail.defaultValue) {
                alert('\nBitte geben Sie eine E-Mail Adresse an!');
                document.anschrift.eMail.select();
                document.anschrift.eMail.focus();
                return false;
        		}
        
		if (document.anschrift.eMail.value.indexOf('@',0)==-1 || document.anschrift.eMail.value.indexOf('.',0)==-1) {
                alert('\nBitte geben Sie eine gültige E-Mail Adresse an!')
                document.anschrift.eMail.select();
                document.anschrift.eMail.focus();
                return false;
        		}
		 if (document.anschrift.Nachricht.value==document.anschrift.Nachricht.defaultValue) {
                alert("Bitte geben Sie eine Nachricht ein!");
                document.anschrift.Nachricht.select();
                document.anschrift.Nachricht.focus();
                return false;
        		}				
		
	if (document.anschrift.id.options[0].selected == true){
	alert("Bitte wählen Sie Ihr Anliegen aus!");
	document.anschrift.id.focus();
	return false;
		}
			
		}

<!-- Validierung mit Focusierung en -->

var js11=true;

function check_addressen() {
        
	
		
		
		if (document.anschrift.Surname.value==document.anschrift.Surname.defaultValue) {
                alert("Please enter your Surname!");
                document.anschrift.Surname.select();
                document.anschrift.Surname.focus();
                return false;
        		}
          	
      		
		  if (document.anschrift.City.value==document.anschrift.City.defaultValue) {
                alert("Please enter your City!");
                document.anschrift.City.select();
                document.anschrift.City.focus();
                return false;
        		}

		   
		if (document.anschrift.eMail.value==document.anschrift.eMail.defaultValue) {
                alert('\nPlease enter your email address!');
                document.anschrift.eMail.select();
                document.anschrift.eMail.focus();
                return false;
        		}
        
		if (document.anschrift.eMail.value.indexOf('@',0)==-1 || document.anschrift.eMail.value.indexOf('.',0)==-1) {
                alert('\nPlease enter a valid email address!')
                document.anschrift.eMail.select();
                document.anschrift.eMail.focus();
                return false;
        		}
		 if (document.anschrift.Messagetext.value==document.anschrift.Messagetext.defaultValue) {
                alert("Please enter a Messagetext!");
                document.anschrift.Messagetext.select();
                document.anschrift.Messagetext.focus();
                return false;
        		}				
		
	if (document.anschrift.id.options[0].selected == true){
	alert("Please choose the Subject of your email");
	document.anschrift.id.focus();
	return false;
		}
			
		}

	
	
// Normales PopUp	
	
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// Zentriertes PopUp Fenster

function PopUp(w,h,ziel) {
  h = h - 20; var x=0, y=0, parameter="";
  if (w < screen.availWidth || h < screen.availHeight) {
    x = (screen.availWidth - w - 12) / 2;
    y = (screen.availHeight - h - 104) / 2;
    if (window.opera) y = 0; // Opera positioniert unter den Symbolleisten
    if (x<0 || y<0) { x=0; y=0; }
    else parameter = "width=" + w + ",height=" + h + ",";
  }
  parameter += "left=" + x + ",top=" + y;
  parameter += ",menubar=no,location=no,toolbar=no,status=no";
  parameter += ",resizable=no,scrollbars=no";
  var Fenster = window.open(ziel,"PopUp",parameter);
  if (Fenster) Fenster.focus();
  return !Fenster;
}


// Kontaktformular aus VKarte aufrufen

function BJ_goToURL() { //v3.0
  var i, args=BJ_goToURL.arguments; document.BJ_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
  window.close();
}

function rs(n, u, w, h, l, t, s) {
	args="width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",resizable=no,scrollbars=" + s + ",status=0";
	remote=window.open(u, n, args);
	if (remote != null) {
		if (remote.opener == null)
		remote.opener = self;
	}
}

function updateOpener() {
    opener.location.href = opener.location.href;
}

//-->