// JavaScript Document


	
	function LanguageChange() {

		var oLoginButton = document.getElementById("bLogin");	
		var optEnglish = document.getElementById("optLoginLanguageEnglish");	

		var oInstruction1 = document.getElementById("lblInstruction1");	
		var oEnglish = document.getElementById("lblLanguageEnglish");	
		var oFrench = document.getElementById("lblLanguageFrench");	

		var oInstruction2 = document.getElementById("lblInstruction2");	
		var oLoginTypeCertificateHolder = document.getElementById("lblLoginTypeCertificateHolder");
		var oLoginTypeFuneralHome = document.getElementById("lblLoginTypeFuneralHome");

		var oInstruction3 = document.getElementById("lblInstruction3");	
		var oUserName = document.getElementById("lblUserName");	
		var oPassword = document.getElementById("lblPassword");	

		var oInstruction4 = document.getElementById("lblInstruction4");	
		var oCertificateNo = document.getElementById("lblCertificateNo");	
		var oBirthDate = document.getElementById("lblBirthDate");	

		if (optEnglish.checked == true) {

			oInstruction1.innerText = "1. Select the language:";
			oEnglish.innerText = "English";
			oFrench.innerText = "French";
			
			oInstruction2.innerText = "2. Select the type of login:";
			oLoginTypeCertificateHolder.innerText = "Certificate Holder";
			oLoginTypeFuneralHome.innerText = "Funeral Home";
			
			oInstruction3.innerText = "3. Enter your login information:";
			oUserName.innerText = "User Name:";
			oPassword.innerText = "Password:";
			
			oInstruction4.innerText = "3. Enter your certificate number and the contract holder's birthdate:"; 
			oCertificateNo.innerText = "Certificate #:";
			oBirthDate.innerText = "Birth Date:";
			
			oLoginButton.innerText = "Login";
			
		} else {
		
			oInstruction1.innerText = "1. Select the language:";
			oEnglish.innerText = "English";
			oFrench.innerText = "French";
			
			oInstruction2.innerText = "2. Sélectionnez la catégorie de connexion:";
			oLoginTypeCertificateHolder.innerText = "Détenteur de certificat";
			oLoginTypeFuneralHome.innerText = "Salon funéraire";
			
			oInstruction3.innerText = "3. Entrez votre information de connexion";
			oUserName.innerText = "Nom d’utilisateur:";
			oPassword.innerText = "Mot de passe:";
			
			oInstruction4.innerText = "3. Entrez votre numéro de certificat et la date de naissance du détenteur du contrat:"; 
			oCertificateNo.innerText = "# de Certificat:";
			oBirthDate.innerText = "Naissance:";

			oLoginButton.innerText = "Connexion";
		}

	}
		
	function LoginTypeChange() {

		var optLoginType = document.getElementById("optLoginTypeFuneralHome");	
		var oFuneralHomeLogin = document.getElementById("tblFuneralHomeLogin");
		var oCertificateHolderLogin = document.getElementById("tblCertificateHolderLogin");
		var oCertificateNo = document.getElementById("txtCertificateNo");
		var oBirthDate = document.getElementById("txtBirthDate");
		var oUserName = document.getElementById("UserName");
		var oPassword = document.getElementById("Pass");

		if (optLoginType.checked == true) {
			oFuneralHomeLogin.style.display = "block";
			oCertificateHolderLogin.style.display = "none";
			oCertificateNo.value = "";
			oBirthDate.value = "";
		} else {
			oFuneralHomeLogin.style.display = "none";
			oCertificateHolderLogin.style.display = "block";
			oUserName.value = "";
			oPassword.value = "";
		}

	}