
function search()
{
        //var select = document.getElementById('selectedId');
        //alert(select);
        //alert(select.options[select.selectedIndex].value);
      //  document.getElementById("searchFromId").submit();
}

		
					
		function showMenuother(parentDivId,showDivId)
			{
			   //top.asp的服务与支持
				var yIndex = getYPosition(parentDivId) + 23;
				var xIndex = getXPosition(parentDivId) - 0;
				var menu = document.getElementById(showDivId);
				
				menu.style.left = xIndex;
				menu.style.top = yIndex;
				menu.style.display = "block";
				
			}
	
			
			
			function showMenuList(parentDivId,showDivId)
			{
			   //top
				var yIndex = getYPosition(parentDivId) + 13;
				var xIndex = getXPosition(parentDivId) - 15;
				var menu = document.getElementById(showDivId);
				
				menu.style.left = xIndex;
				menu.style.top = yIndex;
				menu.style.display = "block";
				
			}
			function showMenuListmain(parentDivId,showDivId)
			{
			   //aboutkt
				var yIndex = getYPosition(parentDivId) + 23;
				var xIndex = getXPosition(parentDivId) - 0 ;
				var menu = document.getElementById(showDivId);
				
				menu.style.left = xIndex;
				menu.style.top = yIndex;
				menu.style.display = "block";
				
			}
			function showMenuListr(parentDivId,showDivId)
			{//关于京通top.asp
			   
				var yIndex = getYPosition(parentDivId) + 23;
				var xIndex = getXPosition(parentDivId) + 63;
				var menu = document.getElementById(showDivId);
				
				menu.style.left = xIndex;
				menu.style.top = yIndex;
				menu.style.display = "block";
				
			}
			function getYPosition(parentId)
			{
				var rootDiv = document.getElementById(parentId);
				var yIndex = rootDiv.offsetTop;
				while(rootDiv.offsetParent!=null)
				{
					rootDiv = rootDiv.offsetParent;
					yIndex+=rootDiv.offsetTop;
				}
				return yIndex;
			}
			
			function getXPosition(parentId)
			{
				var rootDiv = document.getElementById(parentId);
				var xIndex = rootDiv.offsetLeft;
				while(rootDiv.offsetParent!=null)
				{
					rootDiv = rootDiv.offsetParent;
					xIndex+=rootDiv.offsetLeft;
				}
				return xIndex;
			}
			
			function closeDiv(currentDivId)
			{
				var currentDiv = document.getElementById(currentDivId);
				currentDiv.style.display = 'none';
			}
			
			function showThisDiv(currentDivId)
			{
			    var currentDiv = document.getElementById(currentDivId);
			    currentDiv.style.display = 'block';
			}
			
			function isInTargetDiv(targetDivId)
			{
				var targetDiv = document.getElementById(targetDivId);
				
				var x = window.event.clientX;
				var y = window.event.clientY;
				
				var divX = getXPosition(targetDivId);
				var divY = getYPosition(targetDivId);
				
				//if(x<divX || x>divX+50 || y<divY || y>divY+50)
				if(x<divX || x>divX+32 || y<divY )
				{
					if(targetDiv.style.display == "block")
				    {
					    targetDiv.style.display = "none";
				    }
				}
				
				
			}
			
			function changeBgColor(e)
			{
				
                var evt=e || window.event;
                var element=evt.srcElement || evt.target;  
                
				element.style.backgroundColor="#e66515";
				
			}
			
			function clearBgColor(e)
			{
				var evt=e || window.event;
                var element=evt.srcElement || evt.target;  
                
				element.style.backgroundColor="";
			}
			
		

