var errorList=new Array();
	errorList[0]="Invalid first name";
	errorList[1]="Invalid second name";
	errorList[2]="Invalid email address";
	errorList[3]="Error 3";
	errorList[4]="Error 4";
	errorList[5]="Error 5";
	errorList[6]="Error 6";
	errorList[7]="You are already subscribed to this list!";
	errorList[8]="You are already subscribed to this list however an administrator has deactivated your account! Please contact the list operator to have access restored.";

function gup( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}

function getErrors() {
	var errors = gup('errors');
	if (errors)
		return errors.split(",");		
	return null;
}

function showErrors() {
	var error = getErrors();
	if (error!=null) {
		var dispErr = document.getElementById("displayErrors");
		var displayHtml = "";	
		for (var i = 0; i < error.length; i++) {
			displayHtml = errorList[error[i]] + "\n";
		}	
		alert(displayHtml);
	}
}