function _activateGLControls()
{
	// Has the country been selected?
	// If the country is USA then we need to have a region selected
	if ( ('US' == _getGLCountry().value) && ( 0 > _getGLRegionValue())  ){

		//alert('run');

		// Submit
		_getGLSubmit().disabled = true;
		_getGLSubmit().className = 'button disabled';

	} else if( (-1 !=_getGLCountry().value) ){

		// Yes ->

		// Enable the reset button
		_getGLReset().disabled = false;
		_getGLReset().className = 'button';

		// If the region and sub region are N/A
		if( (-2 == _getGLRegionValue()) && (-2 ==_getGLSubRegion().value) ){

			//alert('1');

			// Enable the submit button
			_glEnableSubmit();

		// If the region AND sub region havent been selected
		}else if( -1 ==_getGLRegion().value && -1 == _getGLRegionValue() ){

			//alert('2');

			// Enable the submit button
			_glEnableSubmit();

		// All other cases
		}else {

			//alert('3');

			// Enable the submit button
			_glEnableSubmit();

		}


	} else if (-1 == _getGLCountry().value){

		// If the user *hasnt* selected a country OR has clicked on --SELECT--
		// on the country again:

		// Reset & disable elements

		// region
		_resetGLRegion();
		_getGLRegion().disabled = true;

		// Sub Region
		_resetGLSubRegion();
		_getGLSubRegion().disabled = true;

		// Industry
		_resetGLIndustry();
		_getGLIndustry().disabled = true;

		// Division
		_resetGLDivision();
		_getGLDivision().disabled = true;

		// Submit
		_getGLSubmit().disabled = true;
		_getGLSubmit().className = 'button disabled';

		// Reset
		_getGLReset().disabled = true;
		_getGLReset().className = 'button disabled';
	}

	// Regardless of the country selection value there are a few other checks
	// we can do:

	// Does the region have a valid value?
	if (-1 == _getGLRegionValue()){

		// No value, reset the sub region
		_resetGLSubRegion();
		_getGLSubRegion().disabled = true;

	}

	//alert(_getGLRegionValue());

	if ( ('US' == _getGLCountry().value) &&  (!document.getElementById('statecode')) ){
		// Submit
		_getGLSubmit().disabled = true;
		_getGLSubmit().className = 'button disabled';
	}


}

function _glEnableSubmit()
{
	if(_getGLDivision().disabled == false && _getGLIndustry().disabled == false){
		_getGLSubmit().disabled = false;
		_getGLSubmit().className = 'button';
	} else {
		setTimeout(_glEnableSubmit,200);
	}
}
