var hash = new Object();

var formAction = "/cgi-bin/asp/philo/soth/sourceidx.pl?";

hash['word']="Search Texts:";
hash['CONJUNCT[1]'] = 'Single term and phrase search<p>';
hash['CONJUNCT[2]'] = 'Proximity search in the <b>same sentence</b>';
hash['CONJUNCT[3]'] = 'Proximity search in the <b>same paragraph</b>';
hash['CONJUNCT[4]'] = 'Proximity search';
hash['DISTANCE'] = 'separated by';
hash['PROXY0'] = 'words <b>or fewer</b> in the same sentence.<p>';
hash['PROXY1'] = 'words <b>exactly</b> in the same sentence.<p>';

hash['agewriting']="Age at Writing:";
hash['allauthorallforms']="Author(s):";
hash['allauthornames']="Author:";
hash['allsubject']="Subject Headings:";
hash['authorgender0']="Gender: <font color=#000000>ALL</font>";
hash['authorgender1']="Gender: <font color=#000000>M</font>";
hash['authorgender2']="Gender: <font color=#000000>F</font>";
hash['authrace']="Race:";
hash['birthplace']="Place of Birth:";
hash['birthyear']="Year of Birth:";
hash['combined_collection']="Combined Collection";
hash['combined_journal']="Combined Journal";
hash['deathplace']="Place of Death:";
hash['deathyear']="Year of Death:";
hash['docauthorname']="Author:";
hash['docid']="Record Number:";
hash['doctype']="Document Type:";
hash['docyear']="Year Written:";
hash['editor']="Editor or Translator:";
hash['educlevel']="Educational Level:";
hash['geographic']="Place(s):";
hash['historical']="Historical Event(s):";
hash['influence_name']="Influence Name:";
hash['interviewer_name']="Interviewer Name:";
hash['nationality']="Nationality:";
hash['occupation']="Occupation:";
hash['organization']="Organization Subject:";
hash['organization_affiliations']="Organization Affiliations:";
hash['personalevent']="Personal Event(s):";
hash['previouslyunpublished0']="Previously Unpublished: <font color=#000000>ALL</font>";
hash['previouslyunpublished1']="Previously Unpublished: <font color=#000000>No</font>";
hash['previouslyunpublished2']="Previously Unpublished: <font color=#000000>Yes</font>";
hash['publisher']="Publisher:";
hash['pubplace']="Publication Place:";
hash['pubyear']="Year of Publication:";
hash['religion']="Religion:";
hash['schoolattend']="Schools Attended:";
hash['sourcesubj']="Subject Headings:";
hash['sourcetitle']="Title";
hash['sourcetype']="Source Type:";
hash['subjname']="People Referred to:";
hash['titlesubj']="Title Subjects:";


hash['OUTPUT[1]'] = '<p>Results Format:<font color=#000000> Occurrences Line by Line<font color=#000000>';
hash['OUTPUT[2]'] = '<p>Results Format: <font color=#000000>Frequency by Author<font color=#000000>';
hash['OUTPUT[3]'] = '<p>Results Format: <font color=#000000>Frequency by Year<font color=#000000>';
hash['OUTPUT[4]'] = '<p>Results Format: <font color=#000000>Frequency by Source<font color=#000000>';

function prepareItems() {

	hash['DISTANCE'] = 'separated by';
	hash['PROXY0'] = 'words <b>or fewer</b> in the same sentence.<p>';
	hash['PROXY1'] = 'words <b>exactly</b> in the same sentence.<p>';

	var preserveFlag=0;
	var conjunctFlag=0;
	
	for (var j = 0; j < currentHistoryItem.length; j++) {	
	
		if (currentHistoryItem[j].indexOf("CONJUNCT[3]") > -1) {
			conjunctFlag=1;
		}
	}
		
	if (conjunctFlag==0) {
		hash['DISTANCE'] = null;
		hash['PROXY0'] = null;
		hash['PROXY1'] = null;
	}
}

function pageSpecificMapping(s) {
       // s = s.replace(/docauthorname/, 'allauthorforms');
	return s;
}

var errorHash = new Object();

errorHash['poemtitle'] = 'philologic';
errorHash['word']= 'philologic';


errorHash['agewriting']='sqlnumeric';
errorHash['allauthorallforms']='sql';
errorHash['allauthornames']='sql';
errorHash['allsubject']='sql';
errorHash['authorgender0']='sql';
errorHash['authorgender1']='sql';
errorHash['authorgender2']='sql';
errorHash['authrace']='sql';
errorHash['birthplace']='sql';
errorHash['birthyear']='sqlnumeric';
errorHash['combined_collection']='sql';
errorHash['combined_journal']='sql';
errorHash['deathplace']='sql';
errorHash['deathyear']='sqlnumeric';
errorHash['docauthorname']='sql';
errorHash['docid']='sql';
errorHash['doctype']='sql';
errorHash['docyear']='sqlnumeric';
errorHash['editor']='sql';
errorHash['educlevel']='sql';
errorHash['geographic']='sql';
errorHash['historical']='sql';
errorHash['influence_name']='sql';
errorHash['interviewer_name']='sql';
errorHash['nationality']='sql';
errorHash['occupation']='sql';
errorHash['organization']='sql';
errorHash['organization_affiliations']='sql';
errorHash['personalevent']='sql';
errorHash['previouslyunpublished0']='sql';
errorHash['previouslyunpublished1']='sql';
errorHash['previouslyunpublished2']='sql';
errorHash['publisher']='sql';
errorHash['pubplace']='sql';
errorHash['pubyear']='sql';
errorHash['religion']='sql';
errorHash['schoolattend']='sql';
errorHash['sourcesubj']='sql';
errorHash['sourcetitle']='sql';
errorHash['sourcetype']='sql';
errorHash['subjname']='sql';
errorHash['titlesubj']='sql';

