// -----------------------------------------------------------------
//						Redland Shire Council 
// -----------------------------------------------------------------
// Class    : Functions 
// Purpose  : General javascript functions for handling display and
//			  miscelaneous client side functions.
// -----------------------------------------------------------------
// Calls    :
// Called by: 
// -----------------------------------------------------------------
// Arguments:
// Globals  :
// Returns  :
// -----------------------------------------------------------------
// Notes    : This JavaScript file contains miscelaneous client side 
//			  code.
// -----------------------------------------------------------------
// History  :
// =================================================================


// a function that will shade alternate rows in the table to make presentation
// more readable.
function shadeTable(tbl)
{
	for (var i=1;i<tbl.rows.length;i++)
	{
		if (parseInt(i/2)==i/2)
		{
			tbl.rows[i].className='light_bg';
		}
		else
		{
			tbl.rows[i].className='paragraph';
		}
	}
}

function checkLayerPostback()
{
	if (document.getElementById('chkApply').checked) {
		LoadNextImage();
		document.getElementById('txtCurrentTool').value='ToggleLayer';
		document.forms[0].submit();
	} else {
		showCommonDiv('Refresh Map',220,120,300,200,'reload.htm',true,false,false);
	}
}
