// Global variables.
 
//msgtxt1 = 
//"Last Update: Saffron Walden X_ results~" +
//"Thats all folks.~~";
 
// function to set navigation buttons to displayed page.
//function setNav(page) { parent.frames[0].fixImg(page); }


var txt = "";

// functions to scroll text in the status bar.

function ScrollText1(pstn) {
if (msgtxt1.charAt(pstn) != '~') {txt = txt + msgtxt1.charAt(pstn); status = txt; pause = 30;}
else {pause = 2000; txt = ""; if (pstn == msgtxt1.length-1) pstn = -1;}
pstn++; setTimeout("ScrollText1('"+pstn+"')",pause);}

function ScrollText2(pstn) {
if (msgtxt2.charAt(pstn) != '~') {txt = txt + msgtxt2.charAt(pstn); status = txt; pause = 50;}
else {pause = 2000; txt = ""; if (pstn == msgtxt2.length-1) pstn = -1;}
pstn++; setTimeout("ScrollText2('"+pstn+"')",pause);}

// Javascript functions to find text on page. Internet Explorer only. 

var PageRange;

function setScrollbox()
{document.all.SearchBox.style.top = document.body.scrollTop + (document.body.clientHeight / 2) - 
(parseInt(document.all.SearchBox.style.height) / 2);} 

function StartSearch()
{document.all.SearchBox.style.visibility="visible"; document.all.SearchText.focus();} 

function FindString()
{if (document.all.SearchText.value != "")
{if (PageRange==null) {PageRange = document.body.createTextRange();}
if (PageRange.findText(document.all.SearchText.value) != false) 
{PageRange.select(); PageRange.scrollIntoView(); PageRange.moveStart("word");}
else 
{PageRange=null;}} document.all.FindBtn.focus();} 

function EndSearch()
{PageRange=null; document.all.SearchBox.style.visibility="hidden";} 


