﻿
function Navigate_PAJU_A( prodURL ) {

    var myOption;
    for (i=document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect.length-1; i > -1; i--) 
    {
        if (document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect[i].checked) 
        {
            myOption = i; 
        }
    }
    var elementPAJU;
    if(myOption=="0")
    {
        elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
    }
    else if(myOption=="1")
    {
        elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");    
    }

    if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
    if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
    var PAJUURL;
    PAJUURL = elementPAJU.options[elementPAJU.options.selectedIndex].value;
    var JAPUURL;
    if (myOption == "0")
    {
        JAPUURL = "-practicearea";
    }
    else if (myOption == "1")
    {
        JAPUURL = "-jurisdiction";
    }
    if (PAJUURL == "") 
       window.location.href = "/" + prodURL + 'content' + JAPUURL;
    else
    {
       PAJUURL = '-' + PAJUURL;
       window.location.href = '/' + prodURL + 'content' + PAJUURL;
    }
}

function Navigate_PA_JU_A( prodURL ) {
	
  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
    for (i=document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect.length-1; i > -1; i--) 
    {
        if (document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect[i].checked) 
        {
            myOption = i; 
        }
    }
    var elementPAJU;
    if(myOption=="0")
    {
        elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
    }
    else if(myOption=="1")
    {
        elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");    
    }
  var elementPA = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
  var elementJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource2");

/// Changes
    var PAJUURL;
    PAJUURL = elementPAJU.options[elementPAJU.options.selectedIndex].value;
    var JAPUURL;
    if (myOption == "0")
    {
        JAPUURL = "-practicearea";
    }
    else if (myOption == "1")
    {
        JAPUURL = "-jurisdiction";
    }
    if (PAJUURL != "select") JAPUURL="";
    if (PAJUURL != '') 
        PAJUURL = '-' + PAJUURL;
    window.location.href = '/' + prodURL + 'content' + PAJUURL + JAPUURL;
////
  
  var PAURL = elementPA.options[elementPA.options.selectedIndex].value;
  var JUURL = elementJU.options[elementJU.options.selectedIndex].value;
  if (PAURL == "select") PAURL="";
  if (JUURL == "select") JUURL="";
  
  if (PAURL != '') 
    PAURL = '-' + PAURL;
  if (JUURL != '') 
    JUURL = '-' + JUURL;
  window.location.href = '/' + prodURL + 'content' + PAURL + JUURL;

}
function Navigate_JU_PA_A( prodURL ) {
	
  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
  var elementPA = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
  var elementJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource2");
  
  var PAURL = elementPA.options[elementPA.options.selectedIndex].value;
  var JUURL = elementJU.options[elementJU.options.selectedIndex].value;
  
  if (PAURL == "select") PAURL="";
  if (JUURL == "select") JUURL="";
  
  if (PAURL != '') 
    PAURL = '-' + PAURL;
  if (JUURL != '') 
    JUURL = '-' + JUURL;
  window.location.href = '/' + prodURL + 'content' + PAURL + JUURL;

}

function Navigate_PA_A( prodURL ) {
  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
  var elementPA = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
      
  for (i=document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect.length-1; i > -1; i--) 
  {
        if (document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect[i].checked) 
        {
            myOption = i; 
        }
  }
  var elementPAJU;
  if(myOption=="0")
  {
     elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
  }
  else if(myOption=="1")
  {
     elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");    
  }

  var PAURL = elementPA.options[elementPA.options.selectedIndex].value;
  
   var JAPUURL;
   if (myOption == "0")
   {
       JAPUURL = "-practicearea";
   }
   else if (myOption == "1")
    {
        JAPUURL = "-jurisdiction";
    }
    if (PAURL == "") 
       window.location.href = "/" + prodURL + 'content' + JAPUURL;
    else
    {
       PAURL = '-' + PAURL;
       window.location.href = '/' + prodURL + 'content' + PAURL;
    }
}

function Navigate_JU_A( prodURL ) {

  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
  var elementJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");

  for (i=document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect.length-1; i > -1; i--) 
  {
        if (document.aspnetForm.ctl00$pagecontent$TPA_sources1$tpacontentselect[i].checked) 
        {
            myOption = i; 
        }
  }
  var elementPAJU;
  if(myOption=="0")
  {
     elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");
  }
  else if(myOption=="1")
  {
     elementPAJU = document.getElementById("ctl00$pagecontent$TPA_sources1$contentSource1");    
  }
  
  var JUURL = elementJU.options[elementJU.options.selectedIndex].value;
 
   var JAPUURL;
   if (myOption == "0")
   {
       JAPUURL = "-practicearea";
   }
   else if (myOption == "1")
    {
        JAPUURL = "-jurisdiction";
    }
    if (JUURL == "") 
       window.location.href = "/" + prodURL + 'content' + JAPUURL;
    else
    {
       JUURL = '-' + JUURL;
       window.location.href = '/' + prodURL + 'content' + JUURL;
    }
}

function tpaContentSelected( destURL ) {
  if (destURL != '') 
    window.location.href = '/' + destURL;
}
function Navigate_PA_JU( prodURL ) {
	
  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
  var elementPA = document.getElementById("ctl00_pagecontent_PJSelect");
  var elementJU = document.getElementById("ctl00_pagecontent_JUSelect");
  
  var PAURL = elementPA.options[elementPA.options.selectedIndex].value;
  var JUURL = elementJU.options[elementJU.options.selectedIndex].value;
  
  if (PAURL == "select") PAURL="";
  if (JUURL == "select") JUURL="";
  
  if (PAURL != '') 
    PAURL = '-' + PAURL;
  if (JUURL != '') 
    JUURL = '-' + JUURL;
    
  window.location.href = '/' + prodURL + 'Content' + PAURL + JUURL;

}

function Navigate_PA( prodURL ) {
	
  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
  var elementPA = document.getElementById("ctl00_pagecontent_PJSelect");
  
  var PAURL = elementPA.options[elementPA.options.selectedIndex].value;
  
  if (PAURL == "select") PAURL="";
  
  if (PAURL != '') 
    PAURL = '-' + PAURL;
    
  window.location.href = '/' + prodURL + 'Content' + PAURL;
}

function Navigate_JU( prodURL ) {
	
  if (!document.getElementById) return; // Prevent running in unsupported browsers (the select container displays)
  if (prodURL=='') return; // Prevent running in unsupported browsers (the select container displays)
  var elementJU = document.getElementById("ctl00_pagecontent_JUSelect");
  
  var JUURL = elementJU.options[elementJU.options.selectedIndex].value;
  
  if (JUURL == "select") JUURL="";
  
  if (JUURL != '') 
    JUURL = '-' + JUURL;
    
  window.location.href = '/' + prodURL + 'Content' + JUURL;
}
