javascript:var d="http://www.search.txcourts.gov/",p="CaseSearch.aspx?coa=cossup",gs=window.getSelection();if(gs.type!="None"){var cnc=gs.getRangeAt(0),sc=cnc.startContainer;if(typeof sc.data!="undefined"){var cn=sc.data.substr(cnc.startOffset,cnc.endOffset-cnc.startOffset);cn=cn.replace(/\u2013/g,"-").replace(/^[^\d]+|[^CRV\d]+$/g,"");if(cn.match(/C[RV]$/)){s=cn.split("-");s[0]=("00"+s[0]).slice(-2);s[1]=("00"+s[1]).slice(-2);s[2]=("00000"+s[2]).slice(-5);cn=s.join("-")}if(cn!=""){var p="Case.aspx?cn="+cn}}}window.open(d+p)

@@ -4,16 +4,39 @@
 ascript:
+function TAMESSearch()%7B
 var d=%22h
@@ -546,9 +546,23 @@
 pen(d+p)
+%7DTAMESSearch()
 %0A

Update bookmarklet.min.js