var MenuSource = ""+ ""+ ""+ ""+ ""+ ""+ ""; var openedMenu = ""; var coolstring='\"'; function ShowMenu(menuId) { if (document.all[menuId]) document.all[menuId].style.visibility = "visible"; openedMenu = menuId; } function HideMenu(menuId) { if (document.all[menuId]) document.all[menuId].style.visibility = "hidden"; } function ChangeBgColor(src, color) { src.style.backgroundColor=color; src.style.cursor='hand'; } function WriteMenu(){ document.write(MenuSource); } function Trim(myvalue) { while(myvalue.search(' ')!=-1) { myvalue=myvalue.replace(' ',' '); } if(myvalue.substr(0,1)==' ') { myvalue=myvalue.substr(1,myvalue.length-1) } if (myvalue.substr(myvalue.length-1,1)==' ') { myvalue=myvalue.substr(0,myvalue.length-1) } return myvalue; }