function showHide()
{
//alert (StagePage);

if (StagePage == "REGISTRATION")
{
			if (rgDiv_isRSVD.checked == true)
			{
			//alert ("is true");
			rgDiv_divRSV.style.visibility="visible";
			rgDiv_divRSV.style.overflow="visible";
			}
			else if (rgDiv_isRSVD.checked == false)
			{
			//alert ("is false");
			rgDiv_divRSV.style.visibility="hidden";
			rgDiv_divRSV.style.overflow="hidden";
			}
			
			if (rgDiv_isBN.checked == true)
			{
			//alert ("is true");
			rgDiv_divBN.style.visibility="visible";
			rgDiv_divBN.style.overflow="visible";
			}
			else if (rgDiv_isBN.checked == false)
			{
			//alert ("is false");
			rgDiv_divBN.style.visibility="hidden";
			rgDiv_divBN.style.overflow="hidden";
			}
			/**/
}


if (StagePage == "CO_DETAILS")
{
//Is Sole Director Is Secretary
	if(coDiv_CompanyTypeID.value == "APTY") //text value
	{
			if (coDiv_isSoleMD.checked == true)
			{
			//alert ("is true");
			coDiv_divSoleSec.style.visibility="visible";
			coDiv_divSoleSec.style.overflow="visible";
			}
			else if (coDiv_isSoleMD.checked == false)
			{
			//alert ("is false");
			coDiv_divSoleSec.style.visibility="hidden";
			coDiv_divSoleSec.style.overflow="hidden";
			}
	}

//Holding Company
	if (coDiv_hasHolding.checked == true)
	{
	//alert ("is true");
	coDiv_titleHolding.style.backgroundColor = "#003B77";
		coDiv_divHolding.style.visibility="visible";
		coDiv_divHolding.style.overflow="visible";
		coDiv_divHoldingName.style.visibility="visible";
		coDiv_divHoldingName.style.overflow="visible";
		//Holding Co Details - Au Vs Intl

		if (coDiv_holdingCoCountry.value == "AUSTRALIA")
		{
			coDiv_divHoldingACN.style.visibility="visible";
			coDiv_divHoldingACN.style.overflow="visible";
			coDiv_divHoldingReg.style.visibility="hidden";
			coDiv_divHoldingReg.style.overflow="hidden";
		}
		else
		{
			coDiv_divHoldingACN.style.visibility="hidden";
			coDiv_divHoldingACN.style.overflow="hidden";
			coDiv_divHoldingReg.style.visibility="visible";
			coDiv_divHoldingReg.style.overflow="visible";
		}
		/**/
	}
	else if (coDiv_hasHolding.checked == false)
	{
	//alert ("is false");
	coDiv_titleHolding.style.backgroundColor = "#e6e6d7";
		coDiv_divHolding.style.visibility="hidden";
		coDiv_divHolding.style.overflow="hidden";
		coDiv_divHoldingName.style.visibility="hidden";
		coDiv_divHoldingName.style.overflow="hidden";
		coDiv_divHoldingACN.style.visibility="hidden";
		coDiv_divHoldingACN.style.overflow="hidden";
		coDiv_divHoldingReg.style.visibility="hidden";
		coDiv_divHoldingReg.style.overflow="hidden";
	}
/**/

	//GUARANTEE
	if(coDiv_CompanyTypeID.value == "APUB")
	{
		if (coDiv_companyClass.value == "LMGT")
		{
		coDiv_titleGuarantee.style.backgroundColor = "#003B77";
			coDiv_divGuarantee.style.visibility="visible";
			coDiv_divGuarantee.style.overflow="visible";
			coDiv_divGuaranteeAmount.style.visibility="visible";
			coDiv_divGuaranteeAmount.style.overflow="visible";
		}
		else
		{
		coDiv_titleGuarantee.style.backgroundColor = "#e6e6d7";
			coDiv_divGuarantee.style.visibility="hidden";
			coDiv_divGuarantee.style.overflow="hidden";
			coDiv_divGuaranteeAmount.style.visibility="hidden";
			coDiv_divGuaranteeAmount.style.overflow="hidden";
		}
	}
}
/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
if (StagePage == "ADDRESS_DETAILS")
{

	if (adDiv_isSoleOccupier_Y.checked == true)
	{
	//alert ("is true");
	adDiv_regOfficeOccupierName.style.visibility="visible";
	adDiv_regOfficeOccupierName.style.overflow="visible";

	}
	else
	{
	//alert ("is false");
	adDiv_regOfficeOccupierName.style.visibility="hidden";
	adDiv_regOfficeOccupierName.style.overflow="hidden";
	}


	if (adDiv_isPPoB_Y.checked == true)
	{
	//alert (document.getElementById('ppobPC').value);
	//alert (document.getElementById('regOfficePC').value);
	adDiv_ppobStreet1.value = adDiv_regOfficeStreet1.value;
	adDiv_ppobStreet2.value = adDiv_regOfficeStreet2.value;
	adDiv_ppobState.value = adDiv_regOfficeState.value;
	adDiv_ppobCity.value = adDiv_regOfficeCity.value;
	adDiv_ppobPC.value = adDiv_regOfficePC.value;

	}
	else
	{
	/*
	//if they have values already, leave the values
	if ((adDiv_ppobStreet1.value == '') || (adDiv_ppobStreet1.value == null) || (adDiv_regOfficeStreet1.value  == '') || 
	(adDiv_regOfficeStreet1.value  == null) || 	(adDiv_ppobStreet2.value  == '') || (adDiv_ppobStreet2.value  == null) ||  	
	(adDiv_ppobCity.value  == '') || (adDiv_ppobCity.value  == null) || (adDiv_ppobPC.value  == '') || (adDiv_ppobPC.value  == null)) 
	{

		adDiv_ppobStreet1.value = '';
		adDiv_ppobStreet2.value = '';
		adDiv_ppobState.value = '';
		adDiv_ppobCity.value = '';
		adDiv_ppobPC.value = '';

	}
	*/
	}
if(adDiv_CompanyTypeID.value == "APUB"){
	if (adDiv_stdHours_Y.checked == false)
	{
	//alert ("is true");
	adDiv_OfficeHours.style.visibility="visible";
	adDiv_OfficeHours.style.overflow="visible";
	adDiv_titleOfficeHours.style.backgroundColor = "#003B77";
	adDiv_divHours.style.overflow="visible";
	adDiv_divHours.style.visibility="visible";
	adDiv_OfficeHours.style.overflow="visible";
	adDiv_OfficeHours.style.visibility="visible";

	}
	else
	{
	//alert ("is false");
	adDiv_OfficeHours.style.visibility="hidden";
	adDiv_OfficeHours.style.overflow="hidden";
	adDiv_titleOfficeHours.style.backgroundColor = "#e6e6d7";
	adDiv_divHours.style.overflow="hidden";
	adDiv_divHours.style.visibility="hidden";
	adDiv_OfficeHours.style.overflow="hidden";
	adDiv_OfficeHours.style.visibility="hidden";
	}
}
}

if (StagePage == "OFFICERS_MEMBERS_DATA")
{
	//alert (omMOType)
	//alert (omDiv_MemberType.checked);
	if (omDiv_MOType == "M")
		{
		if (omDiv_MemberType.checked == false)
		{
		omCompanyDetails.style.visibility = "hidden";
		omCompanyDetails.style.overflow = "hidden";
		omIndividualDetails.style.overflow = "visible";
		omIndividualDetails.style.visibility = "visible";
		}
		else
		{
		omCompanyDetails.style.visibility = "visible";
		omCompanyDetails.style.overflow = "visible";
		omIndividualDetails.style.overflow = "hidden";
		omIndividualDetails.style.visibility = "hidden";
	
		}
		}
	//disable state for int'l selections
	if ((omDiv_MOType == "S") || (omDiv_MOType == "D")) 
	{
		if (om_omBirthCountry.value != "AUSTRALIA")
		{ 
		//alert (om_omBirthCountry.value);
		//alert (om_omBirthState.value);
		om_omBirthState.style.visibility = "hidden"; 
		} 
		else 
		{ 
		//alert ("is au");
		om_omBirthState.style.visibility = "visible"; 
		}
	}
}

if (StagePage == "OFFICERS_MEMBERS_SOLE")
{
	//disable state for int'l selections
	//if ((omDiv_MOType == "S") || (omDiv_MOType == "D")) 
	//{
		if (om_omBirthCountry.value != "AUSTRALIA")
		{ 
		//alert (om_omBirthCountry.value);
		//alert (om_omBirthState.value);
		om_omBirthState.style.visibility = "hidden"; 
		} 
		else 
		{ 
		//alert ("is au");
		om_omBirthState.style.visibility = "visible"; 
		}
	//}
}



//end of entire function
}


