
function GoBack(){window.history.back();}

function HideAll() {
hide1(); hide2(); hide3(); hide4();	hide5(); hide6();
}

function trim(strText) { 

    // this will get rid of leading spaces 
    while (strText.substring(0,1) == ' ') 
        strText = strText.substring(1, strText.length);

    // this will get rid of trailing spaces 
    while (strText.substring(strText.length-1,strText.length) == ' ')
        strText = strText.substring(0, strText.length-1);

   return strText;
} 

function show1(menu) {if (menu == "menu1") {hide2(); hide3(); hide4(); hide5(); hide6(); putMenu("menu1", 223, 60);}}
function show2(menu) {if (menu == "menu2") {hide1(); hide3(); hide4(); hide5(); hide6(); putMenu("menu2", 278, 60);}}
function show3(menu) {if (menu == "menu3") {hide1(); hide2(); hide4(); hide5(); hide6(); putMenu("menu3", 331, 60);}}
function show4(menu) {if (menu == "menu4") {hide1(); hide2(); hide3(); hide5(); hide6(); putMenu("menu4", 386, 60);}}
function show5(menu) {if (menu == "menu5") {hide1(); hide2(); hide3(); hide5(); hide6(); putMenu("menu5", 441, 60);}}
function show6(menu) {if (menu == "menu6") {hide1(); hide2(); hide3(); hide5(); hide6(); putMenu("menu6", 494, 60);}}

function hide1() {putMenu("menu1",  70,  -300);}
function hide2() {putMenu("menu2",  70,  -300);}
function hide3() {putMenu("menu3",  70,  -300);}
function hide4() {putMenu("menu4",  70,  -300);}
function hide5() {putMenu("menu5",  70,  -300);}
function hide6() {putMenu("menu6",  70,  -300);}

function putMenu(menu, top, left) {
	if (document.all) {if (document.all[menu]) {document.all[menu].style.pixelTop = top; document.all[menu].style.pixelLeft = left;}} 
	else{
		if (document[menu]) {document[menu].top = top; document[menu].left = left;} 
		else {
             if (document.getElementById){document.getElementById(menu).style.top = top; document.getElementById(menu).style.left = left;}
			 else
				 {if( document.layers ) {document.layers[menu].top = top - 170; document.layers[menu].left = left - 20;}}
             }	
		}
}				  

function putMain(menu, top, left) {
	if (document.all) {if (document.all[menu]) {document.all[menu].style.pixelTop = top; document.all[menu].style.pixelLeft = left;}} 
	else{
		if (document[menu]) {document[menu].top = top; document[menu].left = left;} 
		else {
             if (document.getElementById){document.getElementById(menu).style.top = top; document.getElementById(menu).style.left = left;}
			 else
				 {if( document.layers ) {document.layers[menu].top = top; document.layers[menu].left = left;}}
             }	
		}
}				  
