

   function renkdegis(vl)
    { 
         vl.style.color="#18178f"; 
    }
    
    
   function renk2degis(vl)
    {
           vl.style.color="#ffffff"; 
    }



 function renkdegisSiteMap(vl)
    { 
         vl.style.color="#18178f"; 
    }
    
    
   function renk2degisSiteMap(vl)
    {
           vl.style.color="#ffffff"; 
    }



function confirmMe(txt)
{
    var res=confirm(txt);    
    return res;
}


function openPopup(path,ctrl)
{
    if(ctrl!=null)
    {
        if(path.indexOf("?")==-1)
        {
            path=path+"?opener="+ctrl.id;
        }else
        {
            path=path+"&opener="+ctrl.id;
        }
    }

   var mywindow = window.open (path,'Gundemsaglik','location=0,status=0,toolbar=0,scrollbars=1,width=600,height=600');
   return false;
}

function openPopupWithSize(path,ctrl,hdnId,width,height)
{
    if(ctrl!=null)
    {
        if(path.indexOf("?")==-1)
        {
            path=path+"?opener="+ctrl.id;
        }else
        {
            path=path+"&opener="+ctrl.id;
        }
        
        
    }
    
     if(path.indexOf("?")==-1)
    {
       path=path+"?hdn="+hdnId; 
    }else{
       path=path+"&hdn="+hdnId; 
    }
    
    var mywindow = window.open (path,'Gundemsaglik','location=0,status=0,toolbar=0,scrollbars=1,width='+width+',height='+height);
    return false;
}


function openPopupForPicture(path,ctrl,hdnId)
{
    if(ctrl!=null)
    {
        if(path.indexOf("?")==-1)
        {
            path=path+"?opener="+ctrl.id;
        }else
        {
            path=path+"&opener="+ctrl.id;
        }
    }
    
   if(path.indexOf("?")==-1)
   {
       path=path+"?hdn="+hdnId; 
   }else{
       path=path+"&hdn="+hdnId; 
   }
 
   var mywindow = window.open (path,'Gundemsaglik','location=0,status=0,toolbar=0,scrollbars=1,width=600,height=600');
    return false;
}

function showPanel(ctrl)
{
    document.getElementById(ctrl).style.display="";

}


function showControl(ctrl)
{
    document.getElementById(ctrl).style.display="";

}

function hideControl(ctrl)
{
    document.getElementById(ctrl).style.display="none";

}

 
 function highlightEtiket(vl)
    {
        vl.style.background="#ff0000";
        vl.style.color="#ffffff";
        
    }
    
    function NonhighlightEtiket(vl,vlColor)
    {        
          vl.style.background="#ffffff";                
          vl.style.color="#000000";
    }   
    
    
    
    function highlightPaging(vl)
    {
        vl.style.background="#ffffff";              
    }
    
    function NonHighlightPaging(vl,vlColor)
    {        
          vl.style.background="#67c6dd";                
    }   
    
 function highlightMe(vl)
    {
        vl.style.background="#ba0000";              
    }


 function highlightFont(vl)
    {
        vl.style.background="#ba0000";              
    }
    
    function NonHighlightMe(vl,vlColor)
    {        
        try{
            vl.style.background=vlColor;                
        }catch(err)
        {}
    }   
    
function setControlDisplay(ctrl)
{
    if(document.getElementById(ctrl).style.display=="")
    {
        document.getElementById(ctrl).style.display="none";
    }else
    {
        document.getElementById(ctrl).style.display="";
    }

}    

