function ItemSelected()
{
	var o1=document.getElementById("TopSearch1_Search_Key").getElementsByTagName("a");
	var o2=document.getElementById("TopSearch1_Search_Type");		
	for(var i=0;i<o1.length;i++)
	{	    
	    o1[i].onclick=function()
	    {	        
	        for(var s=0;s<o1.length;s++)
	        {
				if(o1[s].className!="")
	            o1[s].className="";	            
	        }
	        this.className="current";	
	        o2.value=this.id;    	  	        	      
	    }
	}		
}

function ItemSelectedEnd(id)
{
	var o1=document.getElementById("TopSearch1_Search_Key").getElementsByTagName("a");
	var o2=document.getElementById(id);
	var o3=document.getElementById("TopSearch1_Search_Type");		
	for(var i=0;i<o1.length;i++)
	{	    
	    if(o1[i].className!="")
	    o1[i].className="";	    
	}	
	o1[o1.length-1].className="current";
	o1[o1.length-1].innerHTML=o2.innerHTML;	
	o1[o1.length-1].id=id-1;
	o3.value=id-1;	
}

function DivShow()
{
	var o1=document.getElementById("ColMore");
	o1.style.visibility='visible'
}
function Search_Show(i)
{        
    var o1=document.getElementById("SearchDataShow");
    var o3=document.getElementById("TipUpSeat");
    var o4=document.getElementById("TopSearch1_Search_Type").value;    
    o1.innerHTML="";    
    o3.innerHTML="";
    o3.innerHTML=Search_List.sTipUpSeat(i).value;        
    var o2=Search_List.sDataShow(i,o4).value;      
    if(o2==null)
    {
        o1.innerHTML="Sorry,Not Find Info";
    }
    else
    {
        o1.innerHTML=o2;
    }
}
function SubForm(URL)
{
    var o1=document.getElementById("form1");
    o1.action=URL;
    o1.submit();
}

function Selectillness()
{
    var o1=document.getElementById("illness").getElementsByTagName("a");
    var o2=document.getElementById("DataShow").getElementsByTagName("ul");    
    for(var i=0;i<o1.length;i++)
    {
       o1[i].onclick=function()
	    {	        
	        for(var s=0;s<o1.length;s++)
	        {
				if(o1[s].className!="")
	            o1[s].className="";	 
	            if(s<o2.length&&o2[s].style.display!="none")           
	            o2[s].style.display="none";
	        }
	        this.className="current";		        	        	      
	        if(this.id<o2.length+1)
	        o2[this.id-1].style.display="";
	    }
    }
}