function popup_art_cantwell()
{windowOpener('/help/popup-resarticles-io-cantwell.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_MOTDCantwell()
{windowOpener('/help/popup-aboutio-motdcantwell.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_MOTDCantwell2()
{windowOpener('/help/popup-aboutio-motdcantwell2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_FictitiousVotes()
{windowOpener('/help/popup-aboutio-FictitiousVotes.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_FictitiousVotes2()
{windowOpener('/help/popup-aboutio-FictitiousVotes2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_sampletithe()
{windowOpener('/help/popup-research-io-tithe.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_samplecivilm()
{windowOpener('/help/popup-research-io-civilm.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_samplecivild()
{windowOpener('/help/popup-research-io-civild.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_samplecivilb()
{windowOpener('/help/popup-research-io-civilb.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_samplecensus()
{windowOpener('/help/popup-research-io-census.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiodirs()
{windowOpener('/help/popup-aboutio-dirs.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutioslat1881()
{windowOpener('/help/popup-aboutio-dirslater1881.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutioslat18812()
{windowOpener('/help/popup-aboutio-dirslater18812.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiomotd()
{windowOpener('/help/popup-aboutio-motd.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiomotd2()
{windowOpener('/help/popup-aboutio-motd2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_sighting()
{windowOpener('/help/popup-helpio-sighting.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_ioart_tithe()
{windowOpener('/help/popup-resarticles-io-tithe.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_ioart_census()
{windowOpener('/help/popup-resarticles-io-census.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_iogallery_employ()
{windowOpener('/help/popup-aboutio-galleryemploy.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_helpimages()
{windowOpener('/help/popup-helpio-images.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutrotunda()
{windowOpener('/help/popup-aboutio-rotunda.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutrotunda2()
{windowOpener('/help/popup-aboutio-rotunda2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutelphin()
{windowOpener('/help/popup-aboutio-elphin.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutelphin2()
{windowOpener('/help/popup-aboutio-elphin2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutcensusio1871map()
{windowOpener('/help/popup-aboutio-census1871-map.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutcensusio1871()
{windowOpener('/help/popup-aboutio-census1871.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutcensusio18712()
{windowOpener('/help/popup-aboutio-census18712.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutcensusio1841()
{windowOpener('/help/popup-aboutio-census1841.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutcensusio18412()
{windowOpener('/help/popup-aboutio-census18412.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutcensusio1841map()
{windowOpener('/help/popup-aboutio-census1841-map.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutobrien()
{windowOpener('/help/popup-aboutio-obrien.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutobrien2()
{windowOpener('/help/popup-aboutio-obrien2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiopassenger()
{windowOpener('/help/popup-aboutio-passenger.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiopassenger2()
{windowOpener('/help/popup-aboutio-passenger2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiotransmigration()
{windowOpener('/help/popup-aboutio-migration.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiotransmigration2()
{windowOpener('/help/popup-aboutio-migration2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiotithedefaulters()
{windowOpener('/help/popup-aboutio-tithe.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiotithedefaulters2()
{windowOpener('/help/popup-aboutio-tithe2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiomilitia()
{windowOpener('/help/popup-aboutio-militia.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiomilitia2()
{windowOpener('/help/popup-aboutio-militia2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiogallery()
{windowOpener('/help/popup-aboutio-gallery.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiogalleryemploy()
{windowOpener('/help/popup-aboutio-galleryemploy.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_newsio()
{windowOpener('/help/popup-whatsnew-io.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutdub1851()
{windowOpener('/help/popup-aboutio-dub1851.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutdub18512()
{windowOpener('/help/popup-aboutio-dub18512.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutdub1851plans()
{windowOpener('/help/popup-aboutio-dub1851-plans.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutgriffiths()
{windowOpener('/help/popup-aboutio-grif.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutgriffiths2()
{windowOpener('/help/popup-aboutio-grif2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutwills()
{windowOpener('/help/popup-aboutio-wills.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutwills2()
{windowOpener('/help/popup-aboutio-wills2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiomaps2()
{windowOpener('/help/popup-aboutio-maps2.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_aboutiomaps()
{windowOpener('/help/popup-aboutio-maps.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_discussion()
{windowOpener('/help/popup-discussionon.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_articles()
{windowOpener('/help/popup-resarticles-io.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_doctype()
{windowOpener('/help/popup-aboutio-wills-type.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_docstatus()
{windowOpener('/help/popup-aboutio-wills-status.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_footermap()
{windowOpener('/help/popup-helpio-maps.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_helpioimages()
{windowOpener('/help/popup-helpio-images.htm','help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30')}

function popup_help(site)
{

var rootsite = 'http://' + location.hostname + '/';
var url = 'help/popup-help'+ site + '.htm';
var page = window.location.toString();

if (page.indexOf("Wills")>0){
	url = 'help/popup-helpio-wills.htm';
}

else if (page.indexOf("Cantwell")>0)
{	url = 'help/popup-helpio-MOTDCantwell.htm'
}

else if (page.indexOf("WSOB")>0){
	url = 'help/popup-helpio-obrien.htm';
}
else if (page.indexOf("Griffiths")>0)
{	url = 'help/popup-helpio-griffiths.htm'
}
else if (page.indexOf("Place")>0)
{	url = 'help/popup-helpio-maps.htm'
}
else if (page.indexOf("DC")>0)
{	url = 'help/popup-helpio-dub1851.htm'
}
else if (page.indexOf("RGA")>0)
{	url = 'help/popup-helpio-militia.htm'
}
else if (page.indexOf("IOSearchBT27")>0)
{	url = 'help/popup-helpio-passenger.htm'
}
else if (page.indexOf("IOShowRecordsBT27")>0)
{	url = 'help/popup-helpio-passenger.htm'
}

else if (page.indexOf("C1841")>0)
{	url = 'help/popup-helpio-census1841.htm'
}
else if (page.indexOf("C1871")>0)
{	url = 'help/popup-helpio-census1871.htm'
}
else if (page.indexOf("Rotunda")>0)
{	url = 'help/popup-helpio-rotunda.htm'
}
else if (page.indexOf("Elphin")>0)
{	url = 'help/popup-helpio-elphin.htm'
}
else if (page.indexOf("TM")>0)
{	url = 'help/popup-helpio-migration.htm'
}
else if (page.indexOf("Tithe")>0)
{	url = 'help/popup-helpio-tithe.htm'
}
else if (page.indexOf("MOTD")>0)
{	url = 'help/popup-helpio-motd.htm'
}
else if (page.indexOf("Dirs")>0)
{	url = 'help/popup-helpio-dirs.htm'
}
else if (page.indexOf("FVotes")>0)
{	url = 'help/popup-helpio-FictitiousVotes.htm'
}

windowOpener(rootsite + url,'help','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=700,height=430,left=40,top=30');
}


//DO NOT DELETE
//INCLUDE IN ALL JSSource Pages
function windowOpener(url, name, args)
{
	if (typeof(popupWin) != "object")
	{
//alert("got here 1");
		popupWin = window.open(url,name,args);
		popupWin.focus();
	}
	else 
	{
		
		//alert("got here 2");
		//alert("newname: " + name);
			
		if (!popupWin.closed)
		{ 
		
		//alert("got here 3");
			
			
			if (!popupWin.name == name)
			{
				popupWin.location.href = url;
				popupWin.focus();
			}
			else
			{

				popupWin2 = window.open(url, name,args);
				popupWin2.focus();
			}
			
		} 
		else
		{
		
//		alert("got here 4");
			popupWin = window.open(url, name,args);
			popupWin.focus();
		}
			
		
	}

	
}