var hdnCourtURL="_ctl0_hdnCourtURL";var hdnLang="_ctl0_hdnLang";document.oncontextmenu=new Function("return false;");function txtLastName_KeyPress(c,b,a){document.frmDefault.submit();return false}function grdInmateCharge_DblClickHandler(e,c){var p=igtbl_getRowById(c);var a=p.getCellFromKey("CaseNbr").getValue();a=a.toUpperCase();if(a==""){return}var j=document.getElementById(hdnCourtURL).value;if(j==""){return}try{var o=new Array("C","F","G","H","J","N","P","T","V");var k=o.length;var g="";for(var n=0;n<k;n++){if(a.toUpperCase().indexOf(o[n])>0){g=o[n];break}}if(g!=""){var f=a.substr(0,a.toUpperCase().indexOf(g));var m=a.substr(a.toUpperCase().indexOf(g),2);var b=a.substr(a.indexOf(m)+m.length);if(f.length==2){if(parseInt(f,10)<39){f="20"+f}else{f="19"+f}}if(b.length<6){var d="";var l=6-b.length;for(i=0;i<l;i++){d=d+"0"}b=d+b}j+="&caseNo="+f+m+b}}catch(h){}window.open(j,"CourtURL","width=1010,height=745,status=1,resizable=1,top=27,left=70,scrollbars=1",false);return}var _CurWindow;function grdInmateFacility(a){_CurWindow=window.open(a);setTimeout("_SetFocus2Sec()",50);return false}function grdInmateVisitor(a){_CurWindow=window.open(a,"Visitor","width=1010,height=745,status=1,resizable=1,top=27,left=140,scrollbars=1",false);setTimeout("_SetFocus2Sec()",50);return false}function _SetFocus2Sec(){_CurWindow.focus()}function fn_OpenFrm(b,a){window.open(a,b,"width=1010,height=745,status=1,resizable=1,top=27,left=70,scrollbars=1",false);return false}function setLanguage(a){document.getElementById(hdnLang).value=a;return true};
