//--- Frame nachladen
  if(!parent.Hauptframe) 
  	location.href="../frameset.htm?" + location.pathname;
  	
//--- Seite empfehlen
function empfehlen() 
	{
    window.open('../empfehlen/index.php','empfehlung','width=285,height=358,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,copyhistory=0')
	}
		
//--- Mailadresse zerlegen
function mailsend(mail,p1,p2,p3) { 
	var ca; 
	ca = "mailto:" + p2 + "\@" + p3 + "." + p1 + "?subject=Emailanfrage ueber " + p3 + "." + p1; 
	mail.href = ca; 
	return (1); 
	} 

//--- Website bookmarken		
function showBookmarkHilfe()
	{
	window.open('../images/pic/hilfe.php', 'bookmarking', 'width=500,height=330,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
	}


// Anti-Rechtsklick

var message = "";
function clickIE() {
    if(document.all) {
     (message);
     return false;
 }
}
function clickNS(e) {
    if(document.layers || (document.getElementById && !document.all)) {
        if(e.which == 2 || e.which == 3) {
      (message); 
      return false;
  }
 }
}
if(document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = clickNS;
} else {
    document.onmouseup = clickNS;
    document.oncontextmenu = clickIE;
}
document.oncontextmenu = new Function("return false")

//--- Funktionen fuer Kontaktformular

function resetit(form){
    if(confirm("Sicher, dass die Formularinhalte gelöscht werden sollen?")){
        return true
    }else{
        return false
    }
}

function block(form) {
    if (document.all || document.getElementById) {
        for (i=0;i<form.length;i++) {
            var tempobj=form.elements[i];
            if(tempobj.name.toLowerCase() != "tempv" && tempobj.type.toLowerCase()=="submit"||tempobj.name.toLowerCase() != "tempv" && tempobj.type.toLowerCase()=="reset"){
                tempobj.disabled=true;
            }
        }
    }
}

function CheckLen(Target) {
StrLen = Target.value.length
if (StrLen == 1 && Target.value.substring(0,1) == " ") {
    Target.value = ""
    StrLen = 0 }
if (StrLen > 2000 ) {
Target.value = Target.value.substring(0,2000)
CharsLeft = 0 }
else {
CharsLeft = 2000 - StrLen }
document.form.anzahl.value = CharsLeft }

//-->


