/*
	Create Panel containing Sources Search Controls and Links to Topic and AZ Indexes
	Last Modified - Mar 28, 2009
*/
//create sso object
if( typeof(sso) != 'object') {
	sso = function() {
		this.SourcesButton = "";
		this.SourcesFormValidate = function ( AForm ) {
			if(sso.SourcesButton == ""){
				alert('A search type was not selected.\n\nPlease click the "Topics" \nor "Names" search buttons.');
				return false;
			}	else return true;
	} }
}		
//dynamically load .css file
sso.link = document.createElement('link'); 
sso.link.href = "/css/ssoSearchPanel.css"; 
sso.link.rel = 'stylesheet'; 
sso.link.type = 'text/css'; 
document.getElementsByTagName('head')[0].appendChild(sso.link); 
//write controls
document.write(
"<div id=ssoSeachPanel> \
<FORM action='http://www.sources.com/cgisearch/cgisearch.exe' method=post onsubmit='return sso.SourcesFormValidate(this)' \
 ENCTYPE='application/x-www-form-urlencoded'  \
 style='text-align:center;padding: 10px 0 5px 0;font-size:10px;'><INPUT name=LISTINGS type=hidden  value=LISTINGS><INPUT name=SQL type=hidden value=LINK> \
<span style='padding-right:15px;'>Search <b>SOURCES</b>:</span> \
<input name='Find' type='Text' style='font-size:10px;width:120px;'> \
<br> \
<input id='btnSourcesSearchTopics' name='SH' type=submit onClick='sso.SourcesButton=this.name' value='Topics' style='font-size:9px;'	> \
&nbsp; \
<input id='btnSourcesSearchNames' name='TI' type=submit onClick='sso.SourcesButton=this.name' value='Names' style='font-size:9px;'	> \
</FORM> \
	Browse: <b> \
	<a href='http://www.sources.com/Listings/Li_Az_Index.htm'>A to Z Index</a> \
 	<a href='http://www.sources.com/Listings/Li_SubjectIndex.htm'>Topic Index</a> \
 	</b> \
</div>");