﻿var m_s1to3			= null;
var m_s3plus		= null;
var m_sCondo		= null;
var m_sHoa			= null;
var m_sCoop			= null;
var m_s0to25		= null;
var m_s26to50		= null;
var m_s50plus		= null;
var m_sGarden		= null;
var m_sTownhouse	= null;
var m_sHiRise		= null;
var m_sSelfManaged	= null;
var m_sManagementCo = null;
var m_sAllBuildings = null;
var m_sCommonArea	= null;

function InitMoreInfo( s1to3, s3plus, sCondo, sHoa, sCoop, s0to25,
					   s26to50, s50plus, sGarden, sTownhouse, 
					   sHiRise, sSelfManaged, sManagementCo, 
					   sAllBuildings, sCommonArea )
{
	m_s1to3			= s1to3;
	m_s3plus		= s3plus;
	m_sCondo		= sCondo;
	m_sHoa			= sHoa;
	m_sCoop			= sCoop;
	m_s0to25		= s0to25;
	m_s26to50		= s26to50;
	m_s50plus		= s50plus;
	m_sGarden		= sGarden;
	m_sTownhouse	= sTownhouse;
	m_sHiRise		= sHiRise;
	m_sSelfManaged	= sSelfManaged;
	m_sManagementCo = sManagementCo;
	m_sAllBuildings = sAllBuildings;
	m_sCommonArea	= sCommonArea;
} // end InitMoreInfo

function radGarden_onClick()
{
	document.getElementById( m_s1to3 ).disabled = true;
	document.getElementById( m_s3plus ).disabled = true;
} // end radGarden_onClick

function radTownhouse_onClick()
{
	document.getElementById( m_s1to3 ).disabled = true;
	document.getElementById( m_s3plus ).disabled = true;
} // end radTownhouse_onClick

function radHiRise_onClick()
{
	document.getElementById( m_s1to3 ).disabled = false;
	document.getElementById( m_s3plus ).disabled = false;
} // end radHiRise_onClick

function cvAssociationType_Validate( objSource, objArgs )
{
	if( !document.getElementById( m_sCondo ).checked && 
		!document.getElementById( m_sHoa ).checked && 
		!document.getElementById( m_sCoop ).checked )
	{
		objArgs.IsValid = false;
	} // end if( !document.getElementById( m_sCondo ).checked && ...
} // end cvAssociationType_Validate

function cvUnits_Validate( objSource, objArgs )
{
	if( !document.getElementById( m_s0to25 ).checked && 
		!document.getElementById( m_s26to50 ).checked && 
		!document.getElementById( m_s50plus ).checked )
	{
		objArgs.IsValid = false;
	} // end if( !document.getElementById( m_s0to25 ).checked && ...
} // end cvUnits_Validate

function cvStyle_Validate( objSource, objArgs )
{
	if( !document.getElementById( m_sGarden ).checked && 
		!document.getElementById( m_sTownhouse ).checked && 
		!document.getElementById( m_sHiRise ).checked )
	{
		objArgs.IsValid = false;
	} // end if( !document.getElementById( m_sGarden ).checked && ...
} // end cvStyle_Validate

function cvManagement_Validate( objSource, objArgs )
{
	if( !document.getElementById( m_sSelfManaged ).checked && 
		!document.getElementById( m_sManagementCo ).checked )
	{
		objArgs.IsValid = false;
	} // end if( !document.getElementById( m_sSelfManaged ).checked && ...
} // end cvManagement_Validate

function cvPolicyType_Validate( objSource, objArgs )
{
	if( !document.getElementById( m_sAllBuildings ).checked && 
		!document.getElementById( m_sCommonArea ).checked )
	{
		objArgs.IsValid = false;
	} // end if( !document.getElementById( m_sAllBuildings ).checked && ...
} // end cvPolicyType_Validate