// JavaScript Document

 function pagerHighlight()

    {  var myLoc = location.pathname;

    var itmHref = "";
    var footerObject = "";

    var i = 0;

    var myObj = document.getElementById("pager").getElementsByTagName("a");
    
   var footerObject = document.getElementById("footerPager").getElementsByTagName("a");
   
    myLoc = myLoc.substring(myLoc.lastIndexOf(".")-1, myLoc.lastIndexOf("."));
       for (i=0; i<myObj.length; i++)
        {
         itmHref = myObj[i].innerHTML;
             if(myLoc==itmHref)
               {
               myObj[i].style.color='#ff0000';
               footerObject[i].style.color='#ff0000';
               }               
        }           
  
    }
    
    function tempChange()
    {
    var CurrentIndex = document.getElementById('tempType').selectedIndex;
 
    if(CurrentIndex!=0)
    {
    var CurrentValue = document.getElementById('tempType').options[CurrentIndex].value;
    location.href='Templates_'+CurrentValue+'_1.aspx';
  
    }
    }
    
   