	function newWindow(url, name, details)
	{
		popup=open(url, name, details);
		popup.location.href = url;
		if (popup.opener == null)
			popup.opener = self;		
		popup.focus();
	}	

	function newChildWindow( url, name )
	{
		popup=open(url, name, "toolbar=yes,status=yes,top=25,left=0,outerWidth=798,outerHeight=547,width=798,height=547,scrollbars=yes,resizable=yes,menubar=yes,locationbar=no");
		popup.location.href = url;
		if (popup.opener == null)
			popup.opener = self;
		popup.focus();
	}

	function newLargePopup( url, name )
	{
		popup=open(url, name, "toolbar=yes,status=yes,scrollbars=yes,menubar=yes,locationbar=no,top=50,left=70,outerWidth=643,outerHeight=468,width=643,height=468,resizable=yes");
		popup.location.href = url;
		if (popup.opener == null)
			popup.opener = self;
		popup.focus();
	}
/*
	function newMediumPopup( url, formName, variable, name )
	{
		popup=open(url, name, "toolbar=no,status=yes,scrollbars=yes,menubar=no,locationbar=no,top=90,left=170,outerWidth=445,outerHeight=390,width=445,height=390,resizable=yes");
		popup.location.href = url + "?FormName=" + formName + "&ClientID=" + variable;
		if (popup.opener == null)
			popup.opener = self;
		popup.focus();
	}
*/

	function newMediumPopup( url, name )
	{
		popup=open(url, name, "toolbar=no,status=yes,scrollbars=yes,menubar=no,locationbar=no,top=90,left=170,outerWidth=445,outerHeight=390,width=445,height=390,resizable=yes");
		popup.location.href = url;
		if (popup.opener == null)
			popup.opener = self;
		popup.focus();
	}

	function newSmallPopup( popupurl, name )
	{
		popup=open(url, name, "toolbar=no,status=yes,scrollbars=yes,menubar=no,locationbar=no,top=90,left=290,outerWidth=220,outerHeight=390,width=220,height=390,resizable=yes");
		popup.location.href = url;
		if (popup.opener == null)
			popup.opener = self;
		popup.focus();
	}

	function toggleRelated(){
		var div1 = document.getElementById('relatedDropdown');
		if (div1.style.display == 'none') {
			div1.style.display = 'block';
		} else {
			div1.style.display = 'none';
		}
	}

	function dBarActivate(elementNumber) {
		document.getElementById('dbContent1').style.display = 'none';
		document.getElementById('dbContent2').style.display = 'none';
		if (elementNumber == 0) {
			document.getElementById('dualBarSelector1').className = 'active';
			document.getElementById('dualBarSelector2').className = '';
			document.getElementById('dbContent1').style.display = 'block';
		} else {
			document.getElementById('dualBarSelector1').className = '';
			document.getElementById('dualBarSelector2').className = 'active';
			document.getElementById('dbContent2').style.display = 'block';
		}
	}
	
	function otherActivate(elementNumber) {
		document.getElementById('otherTab1').className = '';
		document.getElementById('otherTab2').className = '';
		document.getElementById('otherTab3').className = '';
		document.getElementById('otherTab4').className = '';
		document.getElementById('otherContent1').style.display = 'none';
		document.getElementById('otherContent2').style.display = 'none';
		document.getElementById('otherContent3').style.display = 'none';
		document.getElementById('otherContent4').style.display = 'none';
		if (elementNumber == 0) {
			document.getElementById('otherTab1').className = 'active';
			document.getElementById('otherContent1').style.display = 'block';
		} else if (elementNumber == 1) {
			document.getElementById('otherTab2').className = 'active';
			document.getElementById('otherContent2').style.display = 'block';
		} else if (elementNumber == 2) {
			document.getElementById('otherTab3').className = 'active';
			document.getElementById('otherContent3').style.display = 'block';
		} else {
			document.getElementById('otherTab4').className = 'active';
			document.getElementById('otherContent4').style.display = 'block';
		}
	}