				function checkPasswordStrength(value)
				{
					var strength = "";

					var hasLetters = value.match(/[a-zA-Z]+/);
					var hasNumbers = value.match(/[0-9]+/);
					var hasPunctuation = value.match(/[^a-zA-Z0-9]+/);
					var hasCasing = value.match(/[a-z]+.*[A-Z]+|[A-Z]+.*[a-z]+/);
					var div = document.getElementById('pw1');
					
					if (!value.length) {
						strength = "";
					} else if (value.length < 6) {
						strength = 'Password Stärke: <font color="red"><b>SCHWACH</b></font>';
					} else if ( hasLetters && hasNumbers && hasPunctuation && hasCasing && value.length > 8 ) {
						strength = 'Password Stärke: <font color="green"><b>HOCH</b></font>';
					}  else {
						var count = (hasLetters ? 1 : 0) + (hasNumbers ? 1 : 0) + (hasPunctuation ? 1 : 0) + (hasCasing ? 1 : 0);
						strength = count > 1 ? 'Password Stärke: <font color="orange"><b>MITTEL</b></font>' : 'Password Stärke: <font color="red"><b>SCHWACH</b></font>';
					}
					div.innerHTML = strength;
				}
				
				function confirmBothPasswords(value1,value2)
				{
					var div = document.getElementById('pw2');
					match = "";
					
					if ( value1.length == 0 ) {
						match = "";
					} else if( value1 != value2 ){
						match = 'Passwörter stimmen <font color="red"><b>nicht überein</b></font>';
					} else {
						match = 'Passwörter stimmen <font color="green"><b>überein</b></font>';
					}
					div.innerHTML = match;
				}