function checkDateRange(from,to) { var regExp4 = /\d{4}/; if ( (!regExp4.test( from ) && (from!="")) || (!regExp4.test( to ) && (to!=""))) { alert("Please enter the date range in the format YYYY"); return true; } if ( (from > to) && (to!="")) { alert("The From year must be earlier than the To year"); return true; } return false; } function doSearchPubs(s) { var str = trim(s.value); var regExp1 = /[&+]/; var regExp2 = /[()\[\]"=<>!]|(\band\b)|(\bfield\b)|(\bor\b)|(\band not\b)|(\bor not\b)|(\bcontains\b)/; var regExp3 = /'(\w|\s)*'/g; if ( regExp1.test( str )) { alrt = "Please use AND as the operator."; return alert( alrt ); } if ( regExp3.test( str )) { alrt = "Please use \" as the operator for phrase searching."; return alert( alrt ); } if ( (str == "" || str == "New search") && t!=5 && args['type']!="Tax") { // advanced search can have blank term alert("Please be sure to enter something to search for."); s.focus(); } else { document.location = "/edj01/Article?id=fd032a4e2825ed2bca256f620077c3d8&ed=ljf/site&xsl=index.xsl&server=ljf.itechne.com&type=pubsearch&query=" + escape( str ) + "&start=1&count=10"; } } function doSearchLJF (which, s , t ) { var str = trim(s.value); var regExp1 = /[&+]/; var regExp3 = /'(\w|\s)*'/g; if ( regExp1.test( str )) { alrt = "Please use AND as the operator."; return alert( alrt ); } if ( regExp3.test( str )) { alrt = "Please use \" as the operator for phrase searching."; return alert( alrt ); } // turn stemming on/off try { var boolStem = which.stem.checked; } catch(error) { var boolStem = false; } var fail = false; var lg, lf, ll, fd, td // get from date and to date if (typeof(which.FromDate)!="undefined" && typeof(which.ToDate)!="undefined") { fd=which.FromDate.value; td=which.ToDate.value; if (fd == "YYYY") {fd = ""}; if (td == "YYYY") {td = ""}; fail= checkDateRange(fd,td); } else { fd=""; td=""; } typeof(which.Group)!="undefined" ? lg=which.Group.value : lg=""; typeof(which.Format)!="undefined" ? lf=which.Format.value : lf=""; typeof(which.Lang)!="undefined" ? ll=which.Lang.value : ll=""; if ( (str == "" || str == "New search" || str == "Enter search term") && t!=2 && t!=5 && args['type']!="Tax") { // advanced search can have blank term alert("Please be sure to enter something to search for."); s.focus(); return false; } if (t==1) { // site search var searchURL = "/edj01/Article?id=F535FEBFB02E4D33CA256F4500836DCF&ed=ljf/site&xsl=index.xsl&server=ljf.itechne.com&label=search&query=" + escape( str ) + "&start=1&count=10"; } else if (t==2) { // PLL Legal Info search var searchURL = "/edj01/Article?id=89D26703E6042629CA256F6900173A1F&ed=ljf/site&xsl=index.xsl&server=ljf.itechne.com&label=results&query=" + escape( str ) + "&start=1&count=10&type=PLL" + "&fd=" + fd + "&td=" + td + "&lg=" + escape(lg) + "&lf=" + escape(lf) + "&ll=" + escape(ll); } else if (t==5) { // Advanced Just Search if (which.QueryText2.value!="") { str += which.Option1.value + which.QueryText2.value } if (which.QueryText3.value!="") { str += which.Option2.value + which.QueryText3.value } // collection // collection var stype=''; for (var i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { popupWin = open(url, "Help", "resizable=yes,scrollbars=yes,width=500,height=400"); } } function isBad(name) { document.getElementById(name).src='spacer.gif'; document.getElementById(name).height='1'; document.getElementById(name).width='1'; }