// JScript File for browse by control ....
// janaka

 function category_click(cat_id,userControlID,imageCategory)
 {
    //alert(cat_id); 
    //alert(userControlID);
    
    Anthem_InvokeControlMethod(
                        userControlID,
                        'BuildSubListByClick',
                        [cat_id,imageCategory],
                        function(result) {    					    
                        }
                    );
    						
                        
     
 }
 
 function subcategory_click(subcat_id,userControlID,newloc,hisloc,guid,searchby)
 {
    //AddBackEntry(newloc, hisloc);
    Anthem_InvokeControlMethod(
                        userControlID,
                        'SubListItemClicked',
                        [subcat_id,guid,searchby],
                        function(result) {    					    
                        }
                    );
    						
                        
     
 }
 
function concept_click(con_id,userControlID,newloc,hisloc,guid,searchby)
 {
    
    AddBackEntry(newloc, hisloc);
    Anthem_InvokeControlMethod(
                        userControlID,
                        'ConceptListItemClicked',
                        [con_id,guid,searchby],
                        function(result) {    					    
                        }
                    );
    						
                        
     
 }
 
 function collection_click(col_id,userControlID,newloc,hisloc,guid,searchby)
 {
    AddBackEntry(newloc, hisloc);
    Anthem_InvokeControlMethod(
                        userControlID,
                        'CollectionListItemClicked',
                        [col_id,guid,searchby],
                        function(result) {    					    
                        }
                    );
    						
                        
     
 }
 
function top_letter_click(topid,sec_id,userControlID)
{
	
	   
	    Anthem_InvokeControlMethod(
                        userControlID,
                        'TopLettersClick',
                        [topid,sec_id],
                        function(result) {    					    
                        }
                    );

}

function bottom_letter_click(topid,sec_id,userControlID)
{
	    Anthem_InvokeControlMethod(
                        userControlID,
                        'BottomLettersClick',
                        [topid,sec_id],
                        function(result) {    					    
                        }
                    );
}

 function keyword_click(key_id,userControlID,newloc,hisloc,guid,searchby)
 {
    
    AddBackEntry(newloc, hisloc);
    Anthem_InvokeControlMethod(
                        userControlID,
                        'KeywordListItemClicked',
                        [key_id,guid,searchby],
                        function(result) {    					    
                        }
                    );
    						
                        
     
 }