function popup_aboutaor()
{window.location.href = "http://www.origins.net/help/aboutbo-aor.aspx";}

function popup_aboutyorkmarr()
{window.location.href = "http://www.origins.net/help/aboutbo-yorkmarr.aspx";}

function popup_aboutdorsetmarr2()
{window.location.href = "http://www.origins.net/help/aboutbo-dorsetmarr.aspx";}

function popup_aboutdorsetmarr()
{window.location.href = "http://www.origins.net/help/aboutbo-dorsetmarr.aspx";}

function popup_aboutpoorlaw2()
{window.location.href = "http://www.origins.net/help/aboutbo-poorlaw.aspx";}

function popup_aboutpoorlaw()
{window.location.href = "http://www.origins.net/help/aboutbo-poorlaw.aspx";}

function popup_aboutholborn2()
{window.location.href = "http://www.origins.net/help/aboutbo-holborn.aspx";}

function popup_aboutholborn()
{window.location.href = "http://www.origins.net/help/aboutbo-holborn.aspx";}

function popup_aboutsdnq2()
{window.location.href = "http://www.origins.net/help/aboutbo-sdnq.aspx";}

function popup_aboutsdnq()
{window.location.href = "http://www.origins.net/help/aboutbo-sdnq.aspx";}

function popup_aboutsurrwills2()
{window.location.href = "http://www.origins.net/help/aboutNWI-surrwills.aspx";}

function popup_aboutsurrwills()
{window.location.href = "http://www.origins.net/help/aboutNWI-surrwills.aspx";}

function popup_aboutbogallerydomesmdx()
{window.location.href = "http://www.origins.net/help/about-gallery-domesmdx.aspx";}

function popup_aboutcensus1861()
{window.location.href = "http://www.origins.net/help/aboutbo-census1861.aspx";}

function popup_aboutcensus18612()
{window.location.href = "http://www.origins.net/help/aboutbo-census1861.aspx";}

function popup_aboutsomer()
{ window.location.href = "http://www.origins.net/help/aboutbo-SomersetER.aspx"; }

function popup_aboutyprex2()
{window.location.href = "http://www.origins.net/help/aboutNWI-yprex.aspx";}

function popup_aboutyprex()
{window.location.href = "http://www.origins.net/help/aboutNWI-yprex.aspx";}

function popup_aboutcensus1841accuracy()
{window.location.href = "http://www.origins.net/help/aboutbo-census1841-accuracy.aspx";}

function popup_aboutteachers2()
{window.location.href = "http://www.origins.net/help/aboutbo-teachers.aspx";}

function popup_aboutteachers()
{window.location.href = "http://www.origins.net/help/aboutbo-teachers.aspx";}

function popup_aboutbil2()
{window.location.href = "http://www.origins.net/help/aboutbo-bil.aspx";}

function popup_aboutbil()
{window.location.href = "http://www.origins.net/help/aboutbo-bil.aspx";}

function popup_aboutbocharlesex()
{window.location.href = "http://www.origins.net/help/aboutbo-charles-ex.aspx";}

function popup_aboutbocharles2()
{window.location.href = "http://www.origins.net/help/aboutbo-charles.aspx";}

function popup_aboutbocharles()
{window.location.href = "http://www.origins.net/help/aboutbo-charles.aspx";}

function popup_aboutbopassenger2()
{window.location.href = "http://www.origins.net/help/aboutbo-passenger.aspx";}

function popup_aboutbopassenger()
{window.location.href = "http://www.origins.net/help/aboutbo-passenger.aspx";}

function popup_boart_indischancery()
{window.location.href = "http://www.origins.net/help/resarticle-bo-indischancery.aspx";}

function popup_boart_indis()
{window.location.href = "http://www.origins.net/help/resarticle-bo-indis.aspx";}

function popup_bogallery_employ()
{window.location.href = "http://www.origins.net/help/about-gallery-employ.aspx";}

function popup_boart_boe()
{window.location.href = "http://www.origins.net/help/resarticle-bo-boe.aspx";}

function popup_boart_census1841()
{window.location.href = "http://www.origins.net/help/resarticle-bo-census1841.aspx";}

function popup_boart_census()
{window.location.href = "http://www.origins.net/help/resarticle-bo-census.aspx";}

function popup_boart_burial1()
{window.location.href = "http://www.origins.net/help/resarticle-bo-burials1.aspx";}

function popup_boart_burial()
{window.location.href = "http://www.origins.net/help/resarticle-bo-burials.aspx";}

function popup_helpappgb()
{window.location.href = "http://www.origins.net/help/helpbo-appgb.aspx";}

function popup_aboutappgb()
{window.location.href = "http://www.origins.net/help/aboutbo-appgb.aspx";}

function popup_aboutappgb2()
{window.location.href = "http://www.origins.net/help/aboutbo-appgb.aspx";}

function popup_aboutcensus1841()
{window.location.href = "http://www.origins.net/help/aboutbo-census1841.aspx";}

function popup_aboutcensus18412()
{window.location.href = "http://www.origins.net/help/aboutbo-census1841.aspx";}

function popup_aboutcensus1841map()
{window.location.href = "http://www.origins.net/help/aboutbo-census1841-map.aspx";}

function popup_aboutcensus1841ex()
{window.location.href = "http://www.origins.net/help/aboutbo-census1841-ex.aspx";}

function popup_abouttrinity()
{window.location.href = "http://www.origins.net/help/aboutbo-trinity.aspx";}

function popup_helptrinity()
{window.location.href = "http://www.origins.net/help/helpbo-trinity.aspx";}

function popup_abouttrinity2()
{window.location.href = "http://www.origins.net/help/aboutbo-trinity.aspx";}

function popup_aboutboindis()
{window.location.href = "http://www.origins.net/help/aboutbo-indis.aspx";}

function popup_aboutboyindis2()
{window.location.href = "http://www.origins.net/help/aboutbo-indis.aspx";}

function popup_aboutboymed()
{window.location.href = "http://www.origins.net/help/aboutNWI-ymed.aspx";}

function popup_aboutboymed2()
{window.location.href = "http://www.origins.net/help/aboutNWI-ymed.aspx";}

function popup_aboutboypec()
{window.location.href = "http://www.origins.net/help/aboutNWI-ypec.aspx";}

function popup_aboutboypec2()
{window.location.href = "http://www.origins.net/help/aboutNWI-ypec.aspx";}

function popup_aboutbomilitia()
{window.location.href = "http://www.origins.net/help/aboutbo-militia.aspx";}

function popup_aboutbomilitia2()
{window.location.href = "http://www.origins.net/help/aboutbo-militia.aspx";}

function popup_aboutbogallery()
{window.location.href = "http://www.origins.net/help/aboutbo-gallery.aspx";}

function popup_aboutbogalleryemploy()
{window.location.href = "http://www.origins.net/help/aboutbo-galleryemploy.aspx";}

function popup_samplemaps()
{window.location.href = "http://www.origins.net/help/aboutbo-mapsample.aspx";}

function popup_articles()
{window.location.href = "http://www.origins.net/help/resarticles-bo.aspx";}

function popup_about()
{window.location.href = "http://www.origins.net/help/aboutbo.aspx";}

function popup_samplegaz()
{window.location.href = "http://www.origins.net/help/aboutbo-gazsample.aspx";}

function popup_newseo()
{window.location.href = "http://www.origins.net/help/whatsnew-bo.aspx";}

function popup_aboutbmi()
{window.location.href = "http://www.origins.net/help/aboutbo-bmi.aspx";}

function popup_aboutbmi2()
{window.location.href = "http://www.origins.net/help/aboutbo-bmi.aspx";}

function popup_bmiforenames()
{window.location.href = "http://www.origins.net/help/helpbo-bmi-fnabbs.aspx";}

function popup_aboutmla()
{window.location.href = "http://www.origins.net/help/aboutbo-mla.aspx";}

function popup_aboutmla2()
{window.location.href = "http://www.origins.net/help/aboutbo-mla.aspx";}

function popup_aboutboe()
{window.location.href = "http://www.origins.net/help/aboutNWI-boe.aspx";}

function popup_aboutboe2()
{window.location.href = "http://www.origins.net/help/aboutNWI-boe.aspx";}

function popup_aboutpcc()
{window.location.href = "http://www.origins.net/help/aboutNWI-pcc.aspx";}

function popup_aboutpcc2()
{window.location.href = "http://www.origins.net/help/aboutNWI-pcc.aspx";}

function popup_aboutacl()
{window.location.href = "http://www.origins.net/help/aboutNWI-acl.aspx";}

function popup_aboutacl2()
{window.location.href = "http://www.origins.net/help/aboutNWI-acl.aspx";}

function popup_aboutlccd()
{window.location.href = "http://www.origins.net/help/aboutbo-lccd.aspx";}

function popup_aboutlccd2()
{window.location.href = "http://www.origins.net/help/aboutbo-lccd.aspx";}

function popup_aboutlonapps()
{window.location.href = "http://www.origins.net/help/aboutbo-lonapps.aspx";}

function popup_aboutlonapps2()
{window.location.href = "http://www.origins.net/help/aboutbo-lonapps.aspx";}

function popup_aboutgaz()
{window.location.href = "http://www.origins.net/help/aboutbo-gaz.aspx";}

function popup_aboutgaz2()
{window.location.href = "http://www.origins.net/help/aboutbo-gaz.aspx";}

function popup_aboutbomaps()
{window.location.href = "http://www.origins.net/help/aboutbo-maps.aspx";}

function popup_aboutbomaps2()
{window.location.href = "http://www.origins.net/help/aboutbo-maps.aspx";}

function popup_aboutblb()
{window.location.href = "http://www.origins.net/help/aboutbo-blb.aspx";}

function popup_aboutblb2()
{window.location.href = "http://www.origins.net/help/aboutbo-blb.aspx";}

function popup_aboutcensus1871()
{window.location.href = "http://www.origins.net/help/aboutbo-census1871.aspx";}

function popup_aboutcensus18712()
{window.location.href = "http://www.origins.net/help/aboutbo-census1871.aspx";}

function popup_aboutcensus1871map()
{window.location.href = "http://www.origins.net/help/aboutbo-census1871-map.aspx";}

function popup_helpimages()
{window.location.href = "http://www.origins.net/help/helpimages.aspx";}

function popup_marriagedata()
{window.location.href = "http://www.origins.net/help/helpbo-marriages.aspx";}

function popup_discussion()
{window.location.href = "http://www.origins.net/help/discussion-on.aspx";}	


function popup_help(site)
{
	var rootsite = 'http://' + location.hostname + '/';
	var url = 'help/help'+ site + '.aspx';
	var page = window.location.toString();

	if (page.indexOf("BOEWills")>0)
	{
		url = 'help/helpbo-boe.aspx';
	}
	else if (page.indexOf("Boyds")>0)
	{
		url = 'help/helpbo-bmi.aspx';
	}
	else if (page.indexOf("FO125")>0 || page.indexOf("VG156")>0)
	{	url = 'help/helpbo-mla.aspx'
	}
	else if (page.indexOf("PCCWills")>0)
	{	url = 'help/helpbo-pcc.aspx'
	}
	else if (page.indexOf("ArchWills")>0)
	{	url = 'help/helpbo-acl.aspx'
	}
	else if (page.indexOf("Apprentices")>0)
	{	url = 'help/helpbo-lonapps.aspx'
	}
	else if (page.indexOf("Burials")>0)
	{	url = 'help/helpbo-blb.aspx'
	}
	else if (page.indexOf("LCCourt")>0)
	{	url = 'help/helpbo-lccd.aspx'
	}
	else if (page.indexOf("Gaz")>0)
	{	url = 'help/helpbo-gaz.aspx'
	}
	else if (page.indexOf("Image")>0)
	{	url = 'help/helpbo-images.aspx'
	}
	else if (page.indexOf("Place")>0)
	{	url = 'help/helpbo-gaz.aspx'
	}
	else if (page.indexOf("C1871")>0)
	{	url = 'help/helpbo-census1871.aspx'
	}
	else if (page.indexOf("C1841")>0)
	{	url = 'help/helpbo-census1841.aspx'
	}
	else if (page.indexOf("C1861")>0)
	{	url = 'help/helpbo-census1861.aspx'
	}
	else if (page.indexOf("Militia")>0)
	{	url = 'help/helpbo-militia.aspx'
	}
	else if (page.indexOf("BIMP")>0)
	{	url = 'help/helpbo-ymed.aspx'
	}
	else if (page.indexOf("BIPP")>0)
	{	url = 'help/helpbo-ypec.aspx'
	}
	else if (page.indexOf("PCID")>0)
	{	url = 'help/helpbo-indis.aspx'
	}
	else if (page.indexOf("TH")>0)
	{	url = 'help/helpbo-trinity.aspx'
	}
	else if (page.indexOf("AOGB")>0)
	{	url = 'help/helpbo-appgb.aspx'
	}
	else if (page.indexOf("BOSearchBT27")>0)
	{	url = 'help/helpbo-passenger.aspx'
	}
	else if (page.indexOf("BOShowRecordsBT27")>0)
	{	url = 'help/helpbo-passenger.aspx'
	}
	else if (page.indexOf("BIL")>0)
	{	url = 'help/helpbo-bil.aspx'
	}
	else if (page.indexOf("Teachers")>0)
	{	url = 'help/helpbo-teachers.aspx'
	}
	else if (page.indexOf("Chancery")>0)
	{	url = 'help/helpbo-charles.aspx'
	}
	else if (page.indexOf("PECY")>0)
	{	url = 'help/helpbo-yprex.aspx'
	}
	else if (page.indexOf("SurreyWills")>0)
	{	url = 'help/helpbo-surrwills.aspx'
	}
	else if (page.indexOf("SDNQ")>0)
	{	url = 'help/helpbo-sdnq.aspx'
	}
	else if (page.indexOf("Holborn")>0)
	{	url = 'help/helpbo-holborn.aspx'
	}
	else if (page.indexOf("PoorLaw")>0)
	{	url = 'help/helpbo-poorlaw.aspx'
	}
	else if (page.indexOf("Dorset")>0)
	{	url = 'help/helpbo-dorsetmarr.aspx'
	}
	else if (page.indexOf("YMB")>0)
	{	url = 'help/helpbo-yorkmarr.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();
		}
			
		
	}

	
}


