				function clear_field(obj) {
					obj.value='';
				}
				
				tmr1=0;
				tmr2=0;
				
				function show_sub1(obj,mnu)
				{
					window.clearTimeout(tmr1);
					
					
					
					offset_y1 = document.getElementById('menu').offsetTop + document.getElementById('menu1_'+mnu).offsetTop;
					offset_x1 = document.getElementById('container').offsetLeft + document.getElementById('menu1_'+mnu).offsetLeft + 200;
					
					for (i=0;i<100;i++)
					{
						if (i != mnu)
						{
							tmp = document.getElementById('menu1_'+i);
							if (tmp)
								tmp.className = 'menu1';
						}
					}
					
					for (i=0;i<100;i++)
					{
						tmp = document.getElementById('submenu1_'+i);
						if (tmp)
							tmp.style.visibility = 'hidden';
					}
				  
					e = document.getElementById('submenu1_'+mnu);
		
					if (e)
					{
						e.style.top = offset_y1 + 'px';
						e.style.left = offset_x1 + 'px';
						
						e.style.visibility = 'visible';
						tmr1 = window.setTimeout("hide_menu1()",1000);
					}
				}		
		
				function hide_menu1()
				{
					for (i=0;i<100;i++)
					{
						tmp = document.getElementById('menu1_'+i);
						if (tmp)
							tmp.className = 'menu1';
					}

				
					for (i=0;i<100;i++)
					{
						tmp = document.getElementById('submenu1_'+i);
						if (tmp)
							tmp.style.visibility = 'hidden';
					}
				}
		
				function resetTimer1()
				{
					window.clearTimeout(tmr1);
					tmr1 = window.setTimeout("hide_menu1()",1000)
				}
		
				function stopTimer1()
				{
					window.clearTimeout(tmr1);
				}
		
				function startTimer1()
				{
					tmr1 = window.setTimeout("hide_menu1()",1000)
				}		

				
				
				
				
				
				
				
				function show_sub2(obj,mnu)
				{
					window.clearTimeout(tmr2);
					
					
					
					offset_y1 = document.getElementById('menu2').offsetTop + 30;
					offset_x1 = document.getElementById('menu2').offsetLeft + document.getElementById(obj.id).offsetLeft;
					
					
					for (i=0;i<100;i++)
					{
						if (i != mnu)
						{
							tmp = document.getElementById('menu2_'+i);
							if (tmp)
								tmp.className = 'menu2';
						}
					}
					
					for (i=0;i<100;i++)
					{
						tmp = document.getElementById('submenu2_'+i);
						if (tmp)
							tmp.style.visibility = 'hidden';
					}
				  
					e = document.getElementById('submenu2_'+mnu);
		
					if (e)
					{
						e.style.top = offset_y1 + 'px';
						e.style.left = offset_x1 + 'px';
						
						e.style.visibility = 'visible';
						tmr2 = window.setTimeout("hide_menu2()",1000);
					}
				}		
		
				function hide_menu2()
				{
					for (i=0;i<100;i++)
					{
						tmp = document.getElementById('menu2_'+i);
						if (tmp)
							tmp.className = 'menu2';
					}

				
					for (i=0;i<100;i++)
					{
						tmp = document.getElementById('submenu2_'+i);
						if (tmp)
							tmp.style.visibility = 'hidden';
					}
				}
		
				function resetTimer2()
				{
					window.clearTimeout(tmr1);
					tmr2 = window.setTimeout("hide_menu2()",1000)
				}
		
				function stopTimer2()
				{
					window.clearTimeout(tmr2);
				}
		
				function startTimer2()
				{
					tmr2 = window.setTimeout("hide_menu2()",1000)
				}		
				
