function popup_aboutdublinwills()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-dublinwills.aspx";}

function popup_art_cantwell()
{window.location.href = "http://www.originsnetwork.com/help/resarticle-io-cantwell.aspx";}

function popup_MOTDCantwell()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-motdcantwell.aspx";}

function popup_MOTDCantwell2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-motdcantwell.aspx";}

function popup_FictitiousVotes()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-FictitiousVotes.aspx";}

function popup_FictitiousVotes2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-FictitiousVotes.aspx";}

function popup_sampletithe()
{window.location.href = "http://www.originsnetwork.com/help/research-io-tithe.aspx";}

function popup_samplecivilm()
{window.location.href = "http://www.originsnetwork.com/help/research-io-civilm.aspx";}

function popup_samplecivild()
{window.location.href = "http://www.originsnetwork.com/help/research-io-civild.aspx";}

function popup_samplecivilb()
{window.location.href = "http://www.originsnetwork.com/help/research-io-civilb.aspx";}

function popup_samplecensus()
{window.location.href = "http://www.originsnetwork.com/help/research-io-census.aspx";}

function popup_aboutiodirs()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-dirs.aspx";}

function popup_aboutiomotd()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-motd.aspx";}

function popup_aboutiomotd2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-motd.aspx";}

function popup_sighting()
{window.location.href = "http://www.originsnetwork.com/help/helpio-sighting.aspx";}

function popup_ioart_tithe()
{window.location.href = "http://www.originsnetwork.com/help/resarticle-io-tithe.aspx";}

function popup_ioart_census()
{window.location.href = "http://www.originsnetwork.com/help/resarticle-io-census.aspx";}

function popup_iogallery_employ()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-galleryemploy.aspx";}

function popup_helpimages()
{window.location.href = "http://www.originsnetwork.com/help/helpimages.aspx";}

function popup_aboutrotunda()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-rotunda.aspx";}

function popup_aboutrotunda2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-rotunda.aspx";}

function popup_aboutelphin()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-elphin.aspx";}

function popup_aboutelphin2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-elphin.aspx";}

function popup_aboutcensusio1871map()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-census1871-map.aspx";}

function popup_aboutcensusio1871()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-census1871.aspx";}

function popup_aboutcensusio18712()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-census1871.aspx";}

function popup_aboutcensusio1841()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-census1841.aspx";}

function popup_aboutcensusio18412()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-census1841.aspx";}

function popup_aboutcensusio1841map()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-census1841-map.aspx";}

function popup_aboutobrien()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-obrien.aspx";}

function popup_aboutobrien2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-obrien.aspx";}

function popup_aboutiopassenger()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-passenger.aspx";}

function popup_aboutiopassenger2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-passenger.aspx";}

function popup_aboutiotransmigration()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-migration.aspx";}

function popup_aboutiotransmigration2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-migration.aspx";}

function popup_aboutiotithedefaulters()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-tithe.aspx";}

function popup_aboutiotithedefaulters2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-tithe.aspx";}

function popup_aboutiomilitia()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-militia.aspx";}

function popup_aboutiomilitia2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-militia.aspx";}

function popup_aboutiogallery()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-gallery.aspx";}

function popup_aboutiogalleryemploy()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-galleryemploy.aspx";}

function popup_newsio()
{window.location.href = "http://www.originsnetwork.com/help/whatsnew-io.aspx";}

function popup_aboutdub1851()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-dub1851.aspx";}

function popup_aboutdub18512()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-dub1851.aspx";}

function popup_aboutdub1851plans()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-dub1851-plans.aspx";}

function popup_aboutgriffiths()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-grif.aspx";}

function popup_aboutgriffiths2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-grif.aspx";}

function popup_aboutwills()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-wills.aspx";}

function popup_aboutwills2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-wills.aspx";}

function popup_aboutiomaps2()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-maps.aspx";}

function popup_aboutiomaps()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-maps.aspx";}

function popup_discussion()
{window.location.href = "http://www.originsnetwork.com/help/discussion-on.aspx";}

function popup_articles()
{window.location.href = "http://www.originsnetwork.com/help/resarticles-io.aspx";}

function popup_doctype()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-wills-type.aspx";}

function popup_docstatus()
{window.location.href = "http://www.originsnetwork.com/help/aboutio-wills-status.aspx";}

function popup_footermap()
{window.location.href = "http://www.originsnetwork.com/help/helpio-maps.aspx";}

function popup_helpioimages()
{window.location.href = "http://www.originsnetwork.com/help/helpimages.aspx";}


function popup_help(site)
{
	var rootsite = 'http://' + location.hostname + '/';
	var url = 'help/help'+ site + '.aspx';
	var page = window.location.toString();

	if (page.indexOf("IrishWills")>0) 
	{ url = 'help/helpio-wills.aspx';
	}
	else if (page.indexOf("WSOB")>0){
		url = 'help/helpio-obrien.aspx';
	}
	else if (page.indexOf("Griffiths")>0)
	{	url = 'help/helpio-griffiths.aspx'
	}
	else if (page.indexOf("Place")>0)
	{	url = 'help/helpio-maps.aspx'
	}
	else if (page.indexOf("DC")>0)
	{	url = 'help/helpio-dub1851.aspx'
	}
	else if (page.indexOf("RGA")>0)
	{	url = 'help/helpio-militia.aspx'
	}
	else if (page.indexOf("IOSearchBT27")>0)
	{	url = 'help/helpio-passenger.aspx'
	}
	else if (page.indexOf("IOShowRecordsBT27")>0)
	{	url = 'help/helpio-passenger.aspx'
	}
	else if (page.indexOf("C1841")>0)
	{	url = 'help/helpio-census1841.aspx'
	}
	else if (page.indexOf("C1871")>0)
	{	url = 'help/helpio-census1871.aspx'
	}
	else if (page.indexOf("Rotunda")>0)
	{	url = 'help/helpio-rotunda.aspx'
	}
	else if (page.indexOf("Elphin")>0)
	{	url = 'help/helpio-elphin.aspx'
	}
	else if (page.indexOf("TM")>0)
	{	url = 'help/helpio-migration.aspx'
	}
	else if (page.indexOf("Tithe")>0)
	{	url = 'help/helpio-tithe.aspx'
	}
	else if (page.indexOf("MOTD")>0)
	{	url = 'help/helpio-motd.aspx'
	}
	else if (page.indexOf("Dirs")>0)
	{	url = 'help/helpio-dirs.aspx'
	}
	else if (page.indexOf("FVotes")>0)
	{	url = 'help/helpio-FictitiousVotes.aspx'
	}	
	else if (page.indexOf("DublinWG")>0)
	{	url = 'help/helpio-dublinwills.aspx'
	}
	else if (page.indexOf("WW1Memorials")>0)
	{	url = 'help/helpio-memorial.aspx'
	}	
	else if (page.indexOf("PTDWI")>0)
	{	url = 'help/helpio-phillimore.aspx'
	}	
	else if (page.indexOf("VPWI")>0)
	{	url = 'help/helpio-vicars.aspx'
	}
	else if (page.indexOf("1798R")>0)
	{	url = 'help/helpio-1798Rebellion.aspx'
	}		
		
	// New Code to load in same window
	window.location.href = rootsite + url;

	// OLD Code For Popups
	//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();
		}
	}
}