function get_cookie ( cookie_name )
{
  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

  if ( results )
    return ( unescape ( results[2] ) );
  else
    return null;
}

function checkPassword (control) {
 var error = "";
 var str = control.value;
 if (str == "") {
    error = "You didn't enter a password.\n";
 }
    var illegalChars = /[\W_]/; // allow only letters and numbers
    if ((str.length < 5) || (str.length > 10)) {
       error = "The password is the wrong length (between 5 and 10 chars).\n";
    }
    else if (illegalChars.test(str)) {
      error = "The password contains illegal characters.\n";
    }

	if (error != "") {
		alert(error);
		control.focus()
		}
}

//-->