
function SearchDownloads( Category, SearchPhrase ){
  
    //alert( "SearchDowloads" );                //OK    
    //alert( Category + " " + SearchPhrase );   //OK    
    //open( "http://download.com", "_blank" );  //OK 
    
    URLDomain = "http://download.com";
    URLPart1 = "";
    URLPart2 = "&tag=srch";
    URLSearchPhrase = SearchPhrase;
    
    
    //http://www.download.com/3120-20_4-0.html?tg=dl-2001&qt=x&tag=srch
    
    if( Category == "Windows" ){        
      URLPart1 = "/3120-20_4-0.html?tg=dl-2001&qt=";       
    }  
    
    //http://www.download.com/3120-20_4-0.html?tg=dl-20&qt=x&tag=srch  

    if( Category == "Software" ){        
      URLPart1 = "/3120-20_4-0.html?tg=dl-20&qt=";      
    }    
    
    //http://www.download.com/3120-20_4-0.html?tg=dl-2012&qt=x&tag=srch 
    
    if( Category == "Games" ){        
      URLPart1 = "/3120-20_4-0.html?tg=dl-2012&qt=";        
    }    
    
    //http://music.download.com/3607-5_32-0.html?searchType=mdl&qt=x&tag=srch
    
    if( Category == "Music" ){  
      URLDomain = "http://music.download.com";     
      URLPart1  = "/3607-5_32-0.html?searchType=mdl&qt=";      
    }    
    
    URL = URLDomain + URLPart1 + URLSearchPhrase + URLPart2;   
    
    //alert( URL );  
    
    //document.URL = URL;   
    
    window.open( URL );   
    
}