function LoginForm_Validator(formname) 
{
	var joinform = document.forms[formname];
	if (joinform.account.value == "name") {
		alert("You must enter your Account Name.");
		joinform.account.focus();
		return false;
	}
if (joinform.userName.value == "email") {
		alert("You must enter your Account Email.");
		joinform.userName.focus();
		return false;
	}

if (joinform.password && joinform.password.value == "password") {
		alert("You must enter your Account Password.");
		joinform.password.focus();
		return false;
	}
	return true;
}


var newInput;
function changeInputType(obj, type, focusNewElem, newValue)
	{
		newInput = document.createElement('input');
		newInput.setAttribute('type', type);
		newInput.name = obj.name;
		if (newValue)
			newInput.value = newValue;
		newInput.style.width = obj.style.width;
		newInput.className = obj.className;
		newInput.setAttribute('onfocus', obj.getAttribute('onfocus'));
		newInput.setAttribute('onblur', obj.getAttribute('onblur'));
		obj.parentNode.replaceChild(newInput, obj);
	if (focusNewElem)
	{
		setTimeout("newInput.focus();", 10);
	}
	return newInput;
}