

IE = document.all;
var redo = false;

function setup_fields(form) {
	with (form) {
		if (typeof(secretkey) == "object") {
		secretkey.xmin = 3;
		secretkey.maxLength = 15;
		secretkey.xlabel = "secretkey";
		secretkey.onkeypress = hitReturn;
		secretkey.xvalidate = isString;
		secretkey.xerror = showError;
		secretkey.xerrmsg = "Please enter a valid secretkey -- please type your secretkey now.";
		}
		if (typeof(login_username) == "object") {
		login_username.xmin = 1;
		login_username.maxLength = 50;
		login_username.xlabel = "login_username";
		login_username.onkeypress = editEmail;
		login_username.xvalidate = isEmail;
		login_username.xerror = showError;
		login_username.xerrmsg1 = "The Email Address you entered, \"";
		login_username.xerrmsg2 = "\" is not formatted correctly.\nPlease re-enter your Email Address now using this format: username@domain.com.";
		}		
	}
return;

}

