// JavaScript Document
	var bMailFocused = false;

	function fctFocusMail() {
		if (!bMailFocused) {
			bMailFocused = true;
			document.frmTop.txtEmail.value = "";
		}
	}
	
	function fctBlurMail() {
		if (document.frmTop.txtEmail.value == "") {
			bMailFocused = false;
			document.frmTop.txtEmail.value = "Deine Email hier...";
		}
	}
	
      function fctValidate() {
		  var bitSubmit=bMailFocused;
		  if(bitSubmit) bitSubmit = fctValidateElement(document.frmTop.txtEmail);
		  var x = document.frmTop.txtEmail.value;
		  var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

		  if (!filter.test(x)) {
		  	  bitSubmit = false;
		  }
	
		  if (bitSubmit) {
			  document.frmTop.bitSubmitEmail.value = "true";
			  document.frmTop.action = "indexframe.php";
			  document.frmTop.submit();
		  }
		  else {
			  document.frmTop.txtEmail.focus();
		  }
	  }
	
	  function fctValidateElement(el) {
		  if (el.value == "" || el.value == "Deine Email hier...") {
			  el.focus();
			  return false;
		  }
		  else {
		  	return true;
		  }
      }
	
	//Hover
	function fctHover(sButton, sImage) {
		eval("document.frmTop."+sButton+".src = 'images/"+ sImage +".gif';");
	}

	function fctOpen(url, breite, hoehe) {
		var ns4up = (document.layers) ? 1 : 0;
		var ie4up = (document.all) ? 1 : 0;
		var xsize = screen.width;
		var ysize = screen.height;
		var xpos=(xsize-breite)/2;
		var ypos=(ysize-hoehe)/2;
	
		var musicWindow = window.open(url,"","scrollbars=no,status=no,toolbar=no,location=no,directories=no,resizable=no,menubar=no,width="+breite+",height="+hoehe+",screenX="+xpos+",screenY="+ypos+",top="+ypos+",left="+xpos);
	}
	
	//E-Mail
	  // JS function for encrypting spam-protected emails:
	function DeCryptAdress(s) {	//
		var n=0;
		var r="";
		for(var i=0; i < s.length; i++) {
			n=s.charCodeAt(i);
			if (n>=8364) {n = 128;}
			r += String.fromCharCode(n-(1));
		}
		return r;
	}
	  // JS function for encrypting spam-protected emails:
	function linkTo_EnCryptedAdress(s)	{	//
		location.href=DeCryptAdress(s);
	}
