var RecaptchaOptions = {
	    theme : 'blackglass',
	    lang : 'de'
	 };

function fensteroeffnen (name,breite,hoehe) {
	fenster = window.open(name,'Info','width='+breite+',height='+hoehe+',scrollbars=yes,toolbar=no,resizable=yes,location=no,status=no,menubar=no');
	fenster.focus();
}

	function pwlength() {
		var laenge = document.formular.pw.value.length;
		if(laenge < 6)	{
			document.getElementById("pwconfirm").innerHTML = 'Empfehlung: <font color="orange">Passwort ist sehr kurz und unsicher</font> (noch '+(6 - laenge)+' Zeichen)';
		} else {
			document.getElementById("pwconfirm").innerHTML = '<font color="lime">Passwort ist in Ordnung</font>';
		}
	}
	
	function pwcompare() {
		if(document.formular.pw.value != document.formular.pwc.value)	{
			document.getElementById("pwcompare").innerHTML = '<font color="red">Passwörter stimmen nicht Ã¼berein</font>';
		} else {
			document.getElementById("pwcompare").innerHTML = '';
		}
	}
	
	function mailcompare() {
		if(document.formular.email.value != document.formular.emailc.value)	{
			document.getElementById("mailcompare").innerHTML = '<font color="red">Die Email Adressen stimmen nicht überein</font>';
		} else {
			document.getElementById("mailcompare").innerHTML = '';
		}
	}
	
	function acclength() {
		var laenge = document.formular.accname.value.length;
		if(laenge > 45)	{
			document.getElementById("accconfirm").innerHTML = '<font color="orange">Account Name ist zu lang ('+(laenge - 45)+' Zeichen zu viel)';
			document.formular.Submit.disabled = true;
		} else {
			document.getElementById("accconfirm").innerHTML = '';
			document.formular.Submit.disabled = false;
		}
	}
	
	function randInt(min,max)
	{
	   var div = (max - min) + 1;
	   var randNum = Math.random();
	   for (var i = 0; i <= div - 1; i++)
	      {
	      if (randNum >= i / div && randNum < (i+1) / div)
	    	  return i + min;
	      }
	}
	
	function accepted()
	{
		if(document.myform.akz.checked == true)	{
			document.myform.next.disabled = false;
		} else {
			document.myform.next.disabled = true;
		}
	}

