//Function to switch to designated view function goV(sortview) { if (document.forms[0].FormType.value == 'Search') { var query = location.href; var temp = new Array(); temp = query.split('&Query='); switch(sortview) { case 'J': window.location.href = './InterSearchJudgmentsbyJudge?SearchView&Query=' + temp[1]; break; case 'D': window.location.href = './InterJudgmentsbyJDate?SearchView&Query=' + temp[1]; break; default: window.location.href = './InterJudgments?SearchView&Query=' + temp[1]; break; } } else { switch(sortview) { case 'J': window.location.href = './InterJudgmentsbyJudge'; break; case 'D': window.location.href = './InterJudgmentsbyJDate'; break; default: window.location.href = './InterJudgments'; break; } } }