function processAction(action) {
	document.forms[0].action = action;
	if(checkForPriorSubmit()) {
		document.forms[0].submit();
		loadingstatusbar();
		return true;
	} else {
		return false;
	}
}

function checkForPriorSubmit() {
	if (formSubmitted)
	{
		return false;
	}
	formSubmitted = true;
	return true; 
} 

// This is used to alternate colors in a html table row
function createRow(rowNum) {
	document.write(rowNum % 2 ? '<tr bgcolor=#F0F0F0>' : '<tr bgcolor=#FFFFFF>');
}

var loading=new Array();
loading[1]="Processing.  Please wait.   **";
loading[2]="Processing.  Please wait.   ****";
loading[3]="Processing.  Please wait.   ******";
loading[4]="Processing.  Please wait.   ********";
var i=1;
var b=true;
function loadingstatusbar()
{
window.status=loading[i];
if (i==4) i=1;
else i+=1;
if (b==true) timerID=setTimeout("loadingstatusbar()",200);
}


