function BMButton(filename1,filename2) {
this.picture1=new Image();
this.picture2=new Image();
this.picture1.src=filename1;
this.picture2.src=filename2;
this.buttOver=buttOver;
}

function buttOver(what) {
document.images[what].src=this.picture2.src;
this.picture2.src=this.picture1.src;
this.picture1.src=document.images[what].src;
} 

var buttonMenu=new Array();

for (i=0; i<4; i++) 
buttonMenu[i]=new BMButton("graph/curs00noact.gif","graph/curs00act.gif");

function HandleMenu(whatButt) {

counter=0;
for (i=0; i<=document.images.length-1; i++)
if ((document.images[i].src==buttonMenu[whatButt].picture1.src)||
(document.images[i].src==buttonMenu[whatButt].picture2.src)) {

if (counter==whatButt) {
			buttonMenu[whatButt].buttOver(i);
			break;
}
counter=counter+1;

}


}

function WindowO(s,w,h){
wind=open("","win","width="+w+",height="+h);
wind.document.writeln('<html>');
wind.document.writeln('<head><\/head><title><\/title><body>');
wind.document.write('<img src=');
wind.document.write(s);
wind.document.write(' width="'+w+'" height="'+h+'">');
wind.document.writeln('<\/body><\/html>');
}

function UpScroll()
{
window.scroll(0);
}

function Submit()
{
document.forms[0].submit();
}

function SubmitSearch()
{
document.getElementById("search").submit();
}

function hide(whatIt) {
document.getElementById(whatIt).style.display="none";
return;
}

function show(whatIt) {
document.getElementById(whatIt).style.display="block";
return;
}
