<!-- Hide from old browsers
allowedSCS = new Array ("11", "20", "21");
function startSearch(limit) 
{
  	if (limit == 'rp') 
	{
    	URLParams = "ci=SF&st=std" + 
	     	"&k1=" + escape(document.srch.k1.value) +
	     	"&l1=1" +
	     	"&o1=1&o2=1&loc=All+Locations&fmt=All+Formats&jw="
	 	popuprpsrchwin(URLParams);
	}
  	else 
	{
 		if (checkterms('std')) 
		{
 			URLParams = "ci=SF&st=std" + 
	     	"&k1=" + escape(document.srch.k1.value) +
	     	"&l1=" + limit +
	     	"&o1=1&o2=1&loc=All+Locations&fmt=All+Formats&jw="
			theURL = "http://aisflrc/athcgi/athweb.pl?a=sr&" + URLParams;
    		window.location.href= theURL;
 		}
  	}
}
function startqvSearch(screenID, positionID, rscr, rpos, rpsrch) 
{
	URLParams = "ci=SF&st=vis&jw=" + 
	"&vs=" + escape(screenID) +
	"&vp=" + escape(positionID) +
	"&vrss=" + rscr +
	"&vrps=" + rpos
  	if (rpsrch == 'R') 
	{
	 	popuprpsrchwin(URLParams);
	}
  	else 
	{
   		theURL = "http://aisflrc/athcgi/athweb.pl?a=v&" + URLParams;
    	window.location.href= theURL;
 	}
}
function checkterms(srchtype, limit) 
{
	if (srchtype == "vis") { return true; }
  	if (srchtype == "adv" && document.srch.k1.value == "") 
	{           
    	if (document.srch.k2.value != "") 
		{
      		document.srch.k1.value = document.srch.k2.value;
      		document.srch.k2.value = ""
      		document.srch.l1.selectedIndex = document.srch.l2.selectedIndex;
      		document.srch.l2.selectedIndex = 0;
      		if (document.srch.k3.value != "") 
			{
				document.srch.k2.value = document.srch.k3.value;
				document.srch.k3.value = "";
				document.srch.l2.selectedIndex = document.srch.l3.selectedIndex;
				document.srch.l3.selectedIndex = 0;
				document.srch.o1.selectedIndex = document.srch.o2.selectedIndex;
				document.srch.o2.selectedIndex = 0;
      		}
     		else 
			{
				document.srch.o2.selectedIndex = 0;
				document.srch.k2.value = ""
      		}
    	}
    	else 
		{ 
      		if (document.srch.k3.value != "") 
			{
				document.srch.k1.value = document.srch.k3.value;
				document.srch.k3.value = ""
				document.srch.l1.selectedIndex = document.srch.l3.selectedIndex;
				document.srch.l3.selectedIndex = 0;
				document.srch.o1.selectedIndex = document.srch.o2.selectedIndex;
				document.srch.o2.selectedIndex = 0;
      		}
    	}
  	} 
	if (document.srch.k1.value.length < 2 || document.srch.k1.value == "  ") 
	{
		if (srchtype == "adv") 
		{
			for (var i = 0; i < allowedSCS.length; i++) 
			{
				if  (allowedSCS[i] == (document.srch.l1.selectedIndex)) 
				{
					if (document.srch.k1.value.length == 1) 
					{
						return true
						break
					}
				}
			}
	    	alert('Search term must be two or more characters!')
	    	document.srch.k1.focus()
	    	return false
		}
		else 
		{
		    alert('Search term must be two or more characters!')
	    	document.srch.k1.focus()
	    	return false
		}
  	}
 	twodotpos = document.srch.k1.value.indexOf('..')
  	threedotpos = document.srch.k1.value.indexOf('...')
  	if (twodotpos != -1 && twodotpos != threedotpos) 
	{
		first = document.srch.k1.value.substring(0,twodotpos).toUpperCase()
  		second = document.srch.k1.value.substring(twodotpos+2, document.srch.k1.value.length).toUpperCase()
	 	if (!checkRange()) 
		{
			return (false);
		}			
  	} 
	if (srchtype == "adv") 
	{
	  	twodotpos = document.srch.k2.value.indexOf('..')
	  	threedotpos = document.srch.k2.value.indexOf('...')
	  	if (twodotpos != -1 && twodotpos != threedotpos) 
		{
			first = document.srch.k2.value.substring(0,twodotpos).toUpperCase()
	  		second = document.srch.k2.value.substring(twodotpos+2, document.srch.k2.value.length).toUpperCase()
	 		if (!checkRange()) 
			{
				return (false);
			}			
		} 
	 	twodotpos = document.srch.k3.value.indexOf('..')
	  	threedotpos = document.srch.k3.value.indexOf('...')
	  	if (twodotpos != -1 && twodotpos != threedotpos) 
		{
			first = document.srch.k3.value.substring(0,twodotpos).toUpperCase()
	  		second = document.srch.k3.value.substring(twodotpos+2, document.srch.k3.value.length).toUpperCase()
	 		if (!checkRange()) 
			{
				return (false);
			}			
  		} 
	}
	return true;
} //end function checkterms
function checkRange() 
{
	first = first.replace(/ /gi, '')
	second = second.replace(/ /gi, '')
	prefix1 = first.substring(0,2)
	prefix2 = second.substring(0,2)
	if (prefix1 == "BR") 
	{
		if (prefix2 == "BR") 
		{
			if (second > first) 
			{
				alert(first + '..' + second  + ' is not a valid range. Please correct and try again.')
				return false
			}
			else 
			{ 
				return(true) 
			}
		}
		else 
		{ 
			return(true)
		}
	}
	if (isNaN(prefix1)) 
	{
		if (prefix1 != "BR" && prefix1 != prefix2) 
		{
			alert(first + '..' + second  + ' is not a valid range. Please correct and try again.')
			return false
		}
	}
	if (!isNaN(first) && !isNaN(second)) 
	{
		first = Number(first)
		second = Number(second)
	}
	if (second < first) 
	{
		alert(first + '..' + second  + ' is not a valid range. Please correct and try again.')
		return false
	}
	else 
	{ 
		return (true)
	}
}
function link_options() 
{
	theURL = "http://aisflrc/athcgi/athweb.pl?a=b&ci=SF&st=adv&pg=10" + "&k1=" + escape(document.srch.k1.value) + "&loc=All+Locations&jw="
	window.location.href= theURL
}
var rpsrchwin = null
var rpsrchwinopen = false
function popuprpsrchwin(myURLParams) 
{
	rpsrchwin = window.open("http://aisflrc/athcgi/athweb.pl?a=rp&rp=" + escape('') + "&" + myURLParams,"rpsrchwin","toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=300,height=160")
	rpsrchwinopen = true
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
		if (rpsrchwin.focus != null) 
		{
			rpsrchwin.focus()
		}
	}
}  
function closerpsrchwin() 
{
	if (rpsrchwinopen == true) { rpsrchwin.close() } 
}

var changewin = null
var changewinopen = false
var browsewinopen = false
function popupchangewin()
{
	changewin = window.open("http://aisflrc/athcgi/athweb.pl?a=g&ci=SF&pg=10&st=std&k1=" + escape(document.srch.k1.value) +"&k2=&k3=&o1=1&o2=1&l1=1&l2=1&l3=1&loc=All+Locations&fmt=All+Formats&jw=","changewin","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=290,height=400")
	changewinopen = true
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
		if (changewin.focus != null)
		{
   	    changewin.focus()
		}
	}
}
function closechangewin() 
{
   if (changewinopen == true) 
   {
	changewin.close()
   }  
}
var browsewin = null;
var term = null;
function popupbrowsewin(field) 
{
	if (field == "k1") { term = escape(document.srch.k1.value) }
	if (field == "k2") { term = escape(document.srch.k2.value) }
	if (field == "k3") { term = escape(document.srch.k3.value) }
	browsewin = window.open("http://aisflrc/athcgi/athweb.pl?a=bi&ci=SF&st=std" +
		"&k1=" + term + "&field=" + field +
		"&loc=All+Locations&fmt=All+Formats&jw=","browsewin","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=435,height=460")
	browsewinopen = true
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
		if (browsewin.focus != null) 
		{
			browsewin.focus()
  		}
	}
}  
function closebrowsewin() 
{
	if (browsewinopen == true) { browsewin.close() } 
}
var patinfowin = null
var patinfowinopen = false
function popuppatinfowin() 
{
	url = "http://aisflrc/athcgi/athpatinfo.pl?a=p"
	patinfowin = window.open(url,"patinfowin","toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=350,height=300")
	patinfowinopen = true
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
	    if (patinfowin.focus != null) 
		{
           patinfowin.focus()
       }
	}
}  
function closepatinfowin() 
{
	if (patinfowinopen == true) 
	{ 
		patinfowin.close() 
	} 
}
function startover() 
{
	document.srch.k1.value = ""
	document.srch.k1.focus()
}
var chknohits = null
var em = "null"
function check_nohits() 
{
	if (em != "null") 
	{
		alert(em)
		document.srch.k1.focus()
		return
	}
	if (chknohits == "1")
	{
		var dobrowse = confirm("Unable to find any material matching request.\nDo you want to browse a list of all keywords starting with\nthe one that most closely matches your search term?")
		if (dobrowse) 
		{
			chknohits = "0";
			popupbrowsewin('k1')
		}
		else 
		{
			document.srch.k1.focus()
		}
	}
	else 
	{
		document.srch.k1.focus()
	}
}
function popuphelp(helptype) 
{
	helpwin = window.open("http://aisflrc/athcgi/athhelp.pl?a=" + helptype,"helpwin","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=500,height=400");
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
		if (helpwin.focus != null) 
		{
			helpwin.focus();
		}
	}   
}
var marcwin = null
var marcwinopen = false
function popupmarcwin()
{
	marcwin = window.open("http://aisflrc/athcgi/marcdl.pl?a=dg&ci=SF&in=&li=&ti=0&tm=1103314512&fp=srch","marcwin","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=350,height=260");
	marcwinopen = true
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
	    if (marcwin.focus != null) 
		{
           marcwin.focus()
       	}
	}
}  
function closemarcwin() 
{
	if (marcwinopen == true) 
	{ 
		marcwin.close() 
	} 
}
var illwin = null
var illwinopen = false
function popupillwin(type) 
{
	url = "http://aisflrc/athcgi/awill.pl?a=" + type + "&ci=SF&in=&li=&ti=0&tm=1103314512&fp=srch"
	illwin = window.open(url,"illwin","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=650");
	illwinopen = true
	if (navigator.appVersion.indexOf("MSIE 4.0") == -1 || navigator.appVersion.indexOf("Mac") == -1)
	{
	    if (illwin.focus != null) 
		{
           illwin.focus()
       }
	}
}  
function closeillwin() 
{
	if (illwinopen == true) 
	{ 
		illwin.close() 
	} 
}
var chknohits = null
var em = "null"
function check_nohits() 
{
	if (em != "null") 
	{
		alert(em)
		document.srch.k1.focus()
		return
	}
	if (chknohits == "1") 
	{
		var dobrowse = confirm("Unable to find any material matching request.\nDo you want to browse a list of all keywords starting with\nthe one that most closely matches your search term?")
		if (dobrowse) 
		{
			chknohits = "0";
			popupbrowsewin('k1')
		}
		else 
		{
			document.srch.k1.focus()
		}
	}
	else 
	{
		document.srch.k1.focus()
	}
}
// stop hiding -->