function nullOptions(aMenu){

tot=aMenu.options.length;

if (aMenu.options.length>0)

for (i=0;i<tot;i++)

{

aMenu.options[i]=null

}

aMenu.options.length=0;

}

function MySearchF(){

nullOptions(document.F187.MySelect);

URLs=new Array()

titls=new Array()

Kwds=new Array()

URLs[0]="index.htm";

titls[0]="HOME";

Kwds[0]="RADIOACTIVE, RARE, METALS, RESOURCES, ENERGY, ENVIRONMENT, ASSISTANCE, WASTE, PLANT, TREATMENT";

URLs[1]="partnership.htm";

titls[1]="OUR PARTNERS";

Kwds[1]="PARTNERS";

URLs[2]="history.htm";

titls[2]="History";

Kwds[2]="MINING, NATIONAL, URANIUM, HISTORY";

URLs[3]="branches.htm";

titls[3]="Branches";

Kwds[3]="HEADQUARTERS, DEVELOPMENT, RESEARCH, PILOT";

URLs[4]="results.htm";

titls[4]="Results & Awards";

Kwds[4]="AWARDS, MEDALS, GOLD, SILVER, PAPERS, PATENT";

URLs[5]="staff_ENG.htm";

titls[5]="Staff";

Kwds[5]="STAFF, DIRECTOR, BOARD, DECISION, RESOURCES";

URLs[6]="services.htm";

titls[6]="Services";

Kwds[6]="SERVICES, URANIUM, RARE, SUPPORT, TRAINING, SPECIALISATION, ASSISTANCE, RADIOACTIVE, TREATMENT, WASTE, PLANT, DRESSING";

URLs[7]="programmes.htm";

titls[7]="International Programmes";

Kwds[7]="PROJECTS, PROGRAMMES, INTERNATIONAL, NATIONAL, PARTNERS";

URLs[8]="projects.htm";

titls[8]="National & International Projects";

Kwds[8]="PROJECTS, PROGRAMMES, INTERNATIONAL, NATIONAL, PARTNERS";

URLs[9]="R&D.htm";

titls[9]="Research & Development Department";

Kwds[9]="LABORATORY, ENGINEERING, MINERAL, GEOLOGICAL, MINING, RADIOPROTECTION, CHEMICAL";

/* ..... There are a lot of URLs, Keywords, Titles so I have just included the first set for one page */

var joined=new Array()

/* We start off a new array by joining together the titles and keywords */

/* ####################### Only the data above needs to be changed ####################### */

var joined=new Array()

{

for (i=0;i<URLs.length; i++){

joined[i]=titls[i]+Kwds[i]

}

Searchphrase=document.F187.MyText.value

j=0;

checker=0;

if (document.F187.MyText.value.length<1){

alert('Please enter something to search for.');

}

else {

var myFoundURL=new Array();

var myFoundText=new Array();

for (i=0;i<URLs.length; i++)

{

if (joined[i].indexOf(Searchphrase.toUpperCase())>-1){

checker+=1;

j++;

myFoundURL[j]=URLs[i];

myFoundText[j]=titls[i];

}

}

if (checker>0){

document.F187.MySelect.options[0]=new Option('Results: '+checker,'')

for (j=1;j<checker+1;j++)

{

document.F187.MySelect.options[j]=

new Option(myFoundText[j],myFoundURL[j]); 

}

}

else {

document.F187.MySelect.options[0]=new Option('Sorry! Couldn\'t find anything:','') 

 

}

}

}

//Older Netscapes like a refresh, but Microsoft doesn't and nor does Net 7

/*if (navigator.appName.indexOf("Netscape")>-1)

history.go(0)*/

}

function searchGo(){

if (document.F187.MySelect.selectedIndex>0){

location=document.F187.MySelect.options[document.F187.MySelect.selectedIndex].value

}

else {

alert('Please select an option.')

}

}

