<!--/////////////////////////////GLOBAL FUNCTIONS////////////////////////////////////-->

// Opens the footer links, or any external links outside the popup
function targetopener(mylink, closeme, closeonly)
{
   if (! (window.focus && window.opener))return true;
      window.opener.focus();
   if (! closeonly)window.opener.location.href=mylink.href;
   if (closeme)window.close();
   return false;
}

<!--Clear Form Fields onFocus -->
function clearDefault(el)
{
  if (el.defaultValue==el.value) el.value = "";
}

<!-- Window Pop-Up center -->
function NewWindow(mypage, myname, w, h, scroll, tools)
{
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,menubar='+tools;
   win = window.open(mypage, myname, winprops);
   if (parseInt(navigator.appVersion) >= 4)
   {
      win.window.focus();
   }
}

<!--/////////////////////////////NAV////////////////////////////////////-->

<!-- Browser Sniffer -->
NS6=((parseInt(navigator.appVersion)>=5)&&(navigator.appName.indexOf("Netscape")!=-1))?1:0;

<!-- Global Variable used for Dynamic Nav -->
var lastNav = "";

<!-- Function to toggle a nav section -->
function ShowNav(sLinkName)
{
   if(NS6)
   {
      if(lastNav != "")
      {
         document.getElementById(lastNav + '_nav').style.diplay='none';
      }
      document.getElementById(sLinkName + '_nav').style.display='inline';
   }
   else
   {
      if(lastNav != "")
      {
         document.all[lastNav + '_nav'].style.display='none';
      }
      document.all[sLinkName+'_nav'].style.display='inline';
   }
   if(lastNav != "")
   {
      if(lastNav != sLinkName)
      {
         ToggleImage(lastNav, "off");
      }
   }
   ToggleImage(sLinkName, "on");
   lastNav = sLinkName;
}

<!-- function to make a form field containing TD show red -->
function requiredTD(sName)
{
   if(NS6) {
      document.getElementById(sName).className='formreq';
   } else {
      document.all[sName].className='formreq';
   }
}

<!-- function to make a form field containing TD return to normal -->
function normalTD(sName)
{
   if(NS6) {
      document.getElementById(sName).className='formfield';
   } else {
      document.all[sName].className='formfield';
   }
}

<!-- function to toggle an image -->
function ToggleImage(sImage , sState)
{
   document.images[sImage].src = "/institutional/components/img/nav/" + sImage + "_" + sState + ".gif";
}

<!-- function to load navigation -->
window.onload = function () {
   loadNav();
}

<!-- Header Form Validation -->
function checkquote()
{
	if (document.quoteform.quote.value == 'Quote')
	{
		// Quote textbox
		alert('Please enter a quote symbol before pressing "Go"');
		return false;
	}
	else if (document.quoteform.quote.value == '')
	{
		// Quote textbox
		alert('Please enter a quote symbol before pressing "Go"');
		return false;
	}
	return true;
}