function showBlueFieldArea(desc) {
	desc.style.width = '357px';
	desc.style.backgroundColor = '#E1E9F2';
	desc.style.display = 'block';
}

//function showBlueFieldAreaBreaksNetscape(desc) {
	//desc.style.width = '357px';
	//desc.style.float = 'left';  **causes trouble***
	//desc.style.backgroundColor = '#E1E9F2';
	//desc.style.display = 'block';
//}

function hideDiv(div_id) {
			getDomElement(div_id).style.display = 'none';
}

function showDescriptions(zone) {
	if (zone != 'A') 
			hideDiv('descA');
	if (zone != 'B') 
			hideDiv('descB');
	if (zone != 'C') 
			hideDiv('descC');
	if (zone != 'None') 
			hideDiv('descNone');
  	
	showBlueFieldArea(getDomElement('desc' + zone)); 
}

function showZoneDesc(zone) {
 	showDescriptions(zone);
 	showTabLinks(zone);
}

function getDomElement(id) {
	return document.getElementById(id);
}

function showLoadingImage() {
 	document.getElementById('loading').style.visibility='visible';
}

function showLoadingImageAndNavigateToZoneView() { 
	showLoadingImage();
	document.location='transportation.htm';
}

function showLoadingImageAndSubmit(form_id_number) { 
	showLoadingImage();
	submitScrollForm(form_id_number);
}

function submitForm() { 
    var form = document.getElementById('form_id');
    form.submit();
}

function submitScrollForm(id) { 
    var form = document.getElementById('scroll_form_' + id);
    form.submit();
}

function showActiveTab(tab, zone) {
	tab.className = 'zone_' + zone + '_active';
}

function showInactiveTab(tab, zone) {
	tab.className = 'zone_' + zone;
}

function showTabLinks(zone) {
	if (zone == 'A') 
		showActiveTab(getDomElement('zoneTablink_A'), 'a');
	else 
		showInactiveTab(getDomElement('zoneTablink_A'), 'a');
		
	if (zone == 'B') 
		showActiveTab(getDomElement('zoneTablink_B'), 'b');
	else
		showInactiveTab(getDomElement('zoneTablink_B'), 'b');
		
	if (zone == 'C') 
		showActiveTab(getDomElement('zoneTablink_C'), 'c');
	else
		showInactiveTab(getDomElement('zoneTablink_C'), 'c');
		
	if (zone == 'None') 
		showActiveTab(getDomElement('zoneTablink_None'), 'none');
	else
		showInactiveTab(getDomElement('zoneTablink_None'), 'none');
}
