// --- hey paul, hello from adelaide.
// --- to use this cheeky script...
// --- include the startnews() function in the header or body onload
// --- this creates a var called opennews which stores the current open pop-up, initially set to zero (all closed)
// --- this also limits the pop-ups to one open at a time.
// --- you'll need to duplicate these functions to allow separate recent work and nav column pop-ups.


function showSearch() {	

	searchblock = document.getElementById('searchform');
	searchfield = document.getElementById('searchfield');
	// --- closes the item if its open...	

	if ( searchblock.style.display == 'block') {
 
 		searchfield.blur();
		searchblock.style.display = 'none';
	   
	
	} else { 
	
		searchblock.style.display = 'block' ; 
		searchfield.focus();
	}
}

function submitSearch()
{
  document.myform.submit();
}
