var tid = 0;

function tick()
{
	if ( tid )
	{
		clearTimeout(tid);
		tid = 0;
	}

	e = document.getElementById( "checkb" );
	if (e )
	{
		e.disabled = false;
	}

	e = document.getElementById( "spinner" );
	if ( e )
	{
		e.style.display = "none";
	}

	alert( "We were unable to find any available flights matching the specified criteria.  You can try to refine your search, or you can attempt to search again at a later date." );
}

function process()
{
	e = document.getElementById( "checkb" );
	if (e )
	{
		e.disabled = true;
	}

	e = document.getElementById( "spinner" );
	if ( e )
	{
		e.style.display = "inline";
	}

	tid = setTimeout( "tick()", 5000 );
}

function login()
{
	alert( "Due to the incredibly low number of repeat customers that we serve, this functionality has been disabled.  We apologize for any inconvenience this may have caused." );
	return false;
}
