	function initpage() {
		enableMaritalStatus(document.frmRegister);
		enableBirthPlace(document.frmRegister);
		enableSpauseLifeStatus(document.frmRegister);
		enableOtherMemLifeStatus(document.frmRegister);
		enableoptPhysicalStatus(document.frmRegister);
		enableoptResidingState(document.frmRegister);
		enableoptContactAddressState(document.frmRegister);
		JoiningEnteredDtAsTodaysDt(document.frmRegister);
	}

	function JoiningEnteredDtAsTodaysDt(theForm)
	{   
     		today=new Date();
     		theForm.IstJoiningEnteredDtDD.value=today.getDate();
     		theForm.IstJoiningEnteredDtMM.value=today.getMonth()+1;
	}

	function enableMaritalStatus(theForm) {
		var str = new String() ;

		if(document.getElementById){
			//thisbrowser="NN6";
			bebacklayer = document.getElementById("Out1details1");
		}
		if (document.all) {
			//thisbrowser="ie"
			bebacklayer = document.all["Out1details1"];
		}
		if (bebacklayer) {
			if (theForm.MaritalStatus[0].checked == true) {	
				bebacklayer.style.display = "block";
			} else {	
				bebacklayer.style.display = "none";
			}
		}
	}
	function enableSpauseLifeStatus(theForm) {
		var str = new String() ;

		if(document.getElementById){
			//thisbrowser="NN6";
			backlayer = document.getElementById("divSpauseLifeStatus");
		}
		if (document.all) {
			//thisbrowser="ie"
			backlayer = document.all["divSpauseLifeStatus"];
		}
		if (backlayer) {
			if (theForm.SpauseLifeStatus[1].checked == true) {	
				backlayer.style.display = "block";
			} else {	
				backlayer.style.display = "none";
			}
		}
	}
	function enableOtherMemLifeStatus(theForm) {
		var str = new String() ;

		if(document.getElementById){
			//thisbrowser="NN6";
			backlayer = document.getElementById("divOtherMemLifeStatus");
		}
		if (document.all) {
			//thisbrowser="ie"
			backlayer = document.all["divOtherMemLifeStatus"];
		}
		if (backlayer) {
			if (theForm.OtherMemLifeStatus[1].checked == true) {	
				backlayer.style.display = "block";
			} else {	
				backlayer.style.display = "none";
			}
		}
	}
	
	function enableoptPhysicalStatus(theForm) {
		var str = new String() ;

		if(document.getElementById){
			//thisbrowser="NN6";
			backlayer = document.getElementById("divoptPhysicalStatus");
		}
		if (document.all) {
			//thisbrowser="ie"
			backlayer = document.all["divoptPhysicalStatus"];
		}
		if (backlayer) {
			if (theForm.optPhysicalStatus[1].checked == true) {	
				backlayer.style.display = "block";
			} else {	
				backlayer.style.display = "none";
			}
		}
	}

	function enableBirthPlace(theForm) {
		var str = new String() ;
//
		if(document.getElementById){
			//thisbrowser="NN6";
		   	NonIndianbacklayer= document.getElementById("divNonIndianBirthPlace");
		   	Indianbacklayer= document.getElementById("divIndianBirthPlace");
		}
		if (document.all) {
			//thisbrowser="ie"
			NonIndianbacklayer = document.all["divNonIndianBirthPlace"];
			Indianbacklayer = document.all["divIndianBirthPlace"];
		}

		if (NonIndianbacklayer || Indianbacklayer) {
//1-Indian OptionBox
			if (theForm.BirthPlace[1].checked == true) {	
				NonIndianbacklayer.style.display = "block";
				Indianbacklayer.style.display = "none";
//0-NonIndian OptionBox				
			} else {	
				Indianbacklayer.style.display = "block";
				NonIndianbacklayer.style.display = "none";
			}
		}
	}

	function enableoptResidingState(theForm) {
		var str = new String() ;
//
		if(document.getElementById){
			//thisbrowser="NN6";
		   	OtherCountriesbacklayer= document.getElementById("divOtherCountries");
		   	IndianStatebacklayer= document.getElementById("divIndianState");
		}
		if (document.all) {
			//thisbrowser="ie"
			OtherCountriesbacklayer = document.all["divOtherCountries"];
			IndianStatebacklayer = document.all["divIndianState"];
		}

		if (OtherCountriesbacklayer || IndianStatebacklayer) {
//1-Indian OptionBox
			if (theForm.optResidingState[1].checked == true) {	
				OtherCountriesbacklayer.style.display = "block";
				IndianStatebacklayer.style.display = "none";
//0-NonIndian OptionBox				
			} else {	
				IndianStatebacklayer.style.display = "block";
				OtherCountriesbacklayer.style.display = "none";
			}
		}
	}


	function enableoptContactAddressState(theForm) {
		var str = new String() ;
//
		if(document.getElementById){
			//thisbrowser="NN6";
		   	OtherCountriesbacklayer1= document.getElementById("divOtherCountries1");
		   	IndianStatebacklayer1= document.getElementById("divIndianState1");
		}
		if (document.all) {
			//thisbrowser="ie"
			OtherCountriesbacklayer1 = document.all["divOtherCountries1"];
			IndianStatebacklayer1 = document.all["divIndianState1"];
		}

		if (OtherCountriesbacklayer1 || IndianStatebacklayer1) {
//1-Indian OptionBox
			if (theForm.optContactAddressState[1].checked == true) {	
				OtherCountriesbacklayer1.style.display = "block";
				IndianStatebacklayer1.style.display = "none";
//0-NonIndian OptionBox				
			} else {	
				IndianStatebacklayer1.style.display = "block";
				OtherCountriesbacklayer1.style.display = "none";
			}
		}
	}	
/*  
 Function RegisterValidate(theForm)
        {
              if (theForm.cmbTitle.value == " ")
	      {
		alert("Please Select the Member Title.");
		theForm.cmbTitle.focus();
		return(false);
	      }
              if (theForm.txtFirst.value == " ")
	      {
		alert("Please Enter The First Name.");
		theForm.txtFirst.focus();
		return(false);
	      }   
return(true);
}
      
              if (theForm.txtMid.value == " ")
	      {
		alert("Please Enter The Middle Name.");
		theForm.txtMid.focus();
		return(false);
	      } 
              if (theForm.txtLast.value == " ")
	      {
		alert("Please Enter The Last Name.");
		theForm.txtLast.focus();
		return(false);
	      } 
              if (theForm.txtRAddress1.value == " ")
	      {
		alert("Please Enter The Address1.");
		theForm.txtRAddress1.focus();
		return(false);
	      } 
              if (theForm.txtRAddress2.value == " ")
	      {
		alert("Please Enter The Address2.");
		theForm.txtRAddress2.focus();
		return(false);
	      } 
              if (theForm.txtRAddressTelephoneCountryCode1.value == " ")
	      {
		alert("Please Enter The Country Code.");
		theForm.txtRAddressTelephoneCountryCode1.focus();
		return(false);
	      } 
              if (theForm.txtRAddressTelephoneCityCode1.value == " ")
	      {
		alert("Please Enter The City Code.");
		theForm.txtRAddressTelephoneCityCode1.focus();
		return(false);
	      } 
              if (theForm.txtRAddressTelephone1.value == " ")
	      {
		alert("Please Enter The Telephone No.");
		theForm.txtRAddressTelephone1.focus();
		return(false);
	      } 
              if (theForm.lstOccupation.value == " ")
	      {
		alert("Please Enter The Occupation.");
		theForm.lstOccupation.focus();
		return(false);
	      } 
              if (theForm.IstProfession.value == " ")
	      {
		alert("Please Enter The Profession.");
		theForm.IstProfession.focus();
		return(false);
	      } 
              
        return(true);
       }    
  */