﻿    function _MO(obj) {obj.style.backgroundColor="#f7f7f7";obj.style.borderColor="#D15600";}
    function _MT(obj) {obj.style.backgroundColor="white";obj.style.borderColor="#d6d3d6";}
    function DoPage(pageindex)
    {
        var strURL="TemplateList.aspx?P="+pageindex;
        
        if( typeof(So_Color) != 'undefined')
            strURL+="&COLOR="+escape(So_Color);
        
        if( typeof(So_Occasion) != 'undefined')
            strURL+="&Occasion="+escape(So_Occasion);
        
        if( typeof(So_Collection) != 'undefined')
            strURL+="&Collection="+escape(So_Collection);
        
        if( typeof(So_Tags) != 'undefined')
            strURL+="&Tags="+escape(So_Tags);
        
        if( typeof(So_Author) != 'undefined')
            strURL+="&Author="+escape(So_Author);
        
        if(typeof(So_Keywords) != 'undefined')
            strURL+="&Keywords="+escape(So_Keywords);

        __toURL(strURL);
    }
    function MoreColors()
    {
        __$("aMoreColors").style.display="none"; __$("aLessColors").style.display="block";
        for(var i=5 ;i <=ColorEndIndex;i++) __$("liColor"+i).style.display="block";  
    }
    function LessColors()
    {
        __$("aMoreColors").style.display="block";__$("aLessColors").style.display="none";
        for(var i=5 ;i <=ColorEndIndex;i++) __$("liColor"+i).style.display="none";
    }
    function MoreOccasions()
    {
        __$("aMoreOccasions").style.display="none"; __$("aLessOccasions").style.display="block";
        for(var i=5 ;i <=OccasionEndIndex;i++) __$("liOccasion"+i).style.display="block";  
    }
    function LessOccasions()
    {
        __$("aMoreOccasions").style.display="block";__$("aLessOccasions").style.display="none";
        for(var i=5 ;i <=OccasionEndIndex;i++) __$("liOccasion"+i).style.display="none";
    }
    function MoreCollections()
    {
        __$("aMoreCollections").style.display="none"; __$("aLessCollections").style.display="block";
        for(var i=5 ;i <=CollectionEndIndex;i++) __$("liCollection"+i).style.display="block";  
    }
    function LessCollections()
    {
        __$("aMoreCollections").style.display="block";__$("aLessCollections").style.display="none";
        for(var i=5 ;i <=CollectionEndIndex;i++) __$("liCollection"+i).style.display="none";
    }

