function Inicializar(){
	document.getElementById('txtUsuario').focus();
}
function Registrar(){
	if (!Validar()){
		alert('Please, check the invalid fields.');
		return;
	}
	if (document.getElementById('txtContrasena').value != document.getElementById('txtContrasenaConfirmacion').value){
		SetControlInvalido(document.getElementById('txtContrasena'));
		SetControlInvalido(document.getElementById('txtContrasenaConfirmacion'));
		alert('The password is not equal to the one re-typed.');
		return;
	}
	if (!document.getElementById('rlsTerminosAceptar').checked){
		alert('You can only sign up if you agree with the terms & conditions.');
		return;
	}
	document.getElementById('PostBackAction').value = 'Registrar';
	AjaxRequest('','','Form','');
}
function FinalizarRegistracion(bRegistracionRequiereAprobacion){
	if (bRegistracionRequiereAprobacion){
		window.location = 'AvisoConfirmacionRegistracionPendiente.aspx';
	}else{
		window.location = 'AvisoRegistracionExitosa.aspx';
	}
}
