function UpdateCharactersLeft(ctlInputBox, ctlCounter){
	
	var MaximumCharacterLength = 100;

	if (ctlInputBox.value.length > MaximumCharacterLength){
		ctlInputBox.value = ctlInputBox.value.substring(0, MaximumCharacterLength);
	} else {
		ctlCounter.value = MaximumCharacterLength - ctlInputBox.value.length + " characters remaining";
	}
}

function DisplayHelp(ctlHelp){
	if (ctlHelp){
		frmHelp.txtHelp.value = ctlHelp.title;
	} else {
		frmHelp.txtHelp.value = "Hold your mouse over an input box for more information.";
	}
}
function ValidateForm (){
		if (frmRegister.txtName.value == ""){
			alert ("Please enter the name of your character into the box provided");
			return false;
		} else if (frmRegister.txtPassword1.value == ""){
			alert ("Please enter an account password into the box provided");
			return false;
		} else if (frmRegister.txtPassword1.value != frmRegister.txtPassword2.value){
			alert ("You have failed to confirm you account password, please ensure that you retype your password correctly into the box provided");
			return false;
		}
}