function popup_searching()
{windowOpener('/help/popup-searching.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_newsletter()
{windowOpener('/help/popup-newsletter.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_cartpp()
{windowOpener('/help/popup-cart-pp.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_cart()
{windowOpener('/help/popup-cart.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_samplerecord()
{windowOpener('/help/popup-samplerecord.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_contact()
{windowOpener('/help/popup-contact.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_abbreviations()
{windowOpener('/help/popup-abbreviations.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_namex()
{windowOpener('/help/popup-searching-namex.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_freetext()
{ windowOpener('/help/popup-searching-freetext.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_vat()
{windowOpener('/help/popup-cart-vat.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_privacy()
{windowOpener('/help/popup-termsofservice.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_termsofservice()
{windowOpener('/help/popup-termsofservice.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_collections_scot19()
{windowOpener('/help/popup-collections-scot19.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_collections_ire19()
{windowOpener('/help/popup-collections-ire19.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_collections_ew19()
{windowOpener('/help/popup-collections-ew19.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_collections_us19()
{windowOpener('/help/popup-collections-us19.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_collections_uspres()
{windowOpener('/help/popup-collections-uspres.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_collections_britpm()
{windowOpener('/help/popup-collections-britpm.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_collections_atavus()
{windowOpener('/help/popup-collections-atavus.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_collections107()
{windowOpener('/help/popup-collections107.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_collections()
{windowOpener('/help/popup-collections.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_about()
{windowOpener('/help/popup-about.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_heraldry()
{windowOpener('/help/popup-heraldry.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_demo()
{windowOpener('/demo/1.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_helpres()
{windowOpener('/help/popup-helpres.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_EditVariants(type,name,precision)
{
	var strURL = "";
	strURL = "/NameX/NameXDisplay.aspx?Name=" + name + "&NameXLevel=" + precision  + "&Type=" + type;
	popupWin = window.open(strURL,'NameXEdit','toolbar=yes,status=no,scrollbars=yes,location=yes,menubar=no,resizable=1,directories=no,width=400,height=430,left=40,top=30');
}

function HighLightOnOff( HidCount ) 
{
	// alert("got here to HighLightOnOff()");
	// alert( "Value of HidCount: " + HidCount );
	
	if( HidCount > 0 )
	{
      var i=0;
      for(i=0; i<=HidCount; i++) {
            if (window.parent.content.hid[i].style.background == "silver") {
                  window.parent.content.hid[i].style.background = "white";
            }
            else       {
                  window.parent.content.hid[i].style.background = "silver";
            }
      }
    }
}

//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();
		}
	}
}