﻿// JScript File
function getLeftNavigation(){
    var url = '';
    url = "MVMenu.aspx"
    //showProgressSearch();
    invokeServer(url, "WritedivUnit3132")
}
function WritedivUnit3132(){
    //hideProgressSearch();
    var output=unescape(arguments[0]);    
   
    try{
        var divUnit3132=document.getElementById("tdLeftNavigation")        
          
        if (divUnit3132!=null){
        
            output = output.split('<!----start mode 62---->')[1] 
            output = output.split('<!----end mode 62---->')[0]
        }
            divUnit3132.innerHTML=output;
            
            onloadtest('MVMenu1_Repeater1_ctl00_leafnode');    
           
    }
    catch(err){
        alert(err);
    }
}


function first(td)
{	
    var a='<%=tempval %>';			  

    if (a!= td) 
      {          
      //alert(document.getElementById(td).id);
           //document.getElementById(td).style.backgroundColor="#f7f7f7";
      }     
}		
		
function changeRowColor(a)
{  
    if (document.getElementById(a)) 
        document.getElementById(a).style.backgroundColor="#ffffcc"  
}

function restoreRowColor(a)
{       
    var b=(getCookie('tempval'));    
       
    if (a!= b) 
    {
        if (document.getElementById(a))
            document.getElementById(a).style.backgroundColor="#f7f7f7"          
    }   
}
function test(s)
{  
    //s=s.toLowerCase();
    //alert('a');
    //document.getElementsByName("MVMenu1_Repeater1_ctl00_leafnode")[0].style.display = 'none';
    if (document.getElementById('MVMenu1_Repeater1_ctl00_leafnode'))
        document.getElementById('MVMenu1_Repeater1_ctl00_leafnode').style.display = 'none'; 
    //alert('b');   
    if (document.getElementById(s)){
        if (document.getElementById(s).style.display == 'none') {   
            document.getElementById(s).style.display = ''
        }
        else{
            document.getElementById(s).style.display = 'none';
        }
    }
}
function onloadtest(s)
{          
//alert(s); 
    if (document.getElementById(s)){
        if (document.getElementById(s).style.display == 'none'){      
            document.getElementById(s).style.display = '';            
        }    
        else{        
            document.getElementById(s).style.display = 'none';
        }
    }
}

 function clickonchild(s,leafnode,lgid){
       CreateCookie('tempval', s);
       CreateCookie('templeafnode', leafnode);
       CreateCookie('lgid', lgid);       
}


