/* Highlight anchored element when requested through URL
/* Version 1.01 (Feb 5, 2007)
/*-------------------------------------------------------*/

Event.observe(window, 'load', function() {
  n = location.hash.substr(1);
	if (n !== '') {
    var e = $(n);
    while (e !== null && e != document && e.nodeName != 'TR' && e.nodeName != 'P' ) {
      e = e.parentNode;
    }
    if (e !== null && e != document) {
  	  Element.setStyle(e, {background:'#ffff66'});
  	}
  }
} )

function ELink(IncomingURL){
    var MsgText = "You are about to exit the U.S. Department of Commerce web site to visit a site outside of the Federal Government. "
    MsgText = MsgText + "This link will take you to "
    MsgText = MsgText + IncomingURL
    MsgText = MsgText + "\n\nIf you wish to continue click on OK or click cancel to return to our site."
    var agree=confirm(MsgText) ;
    if (agree){
      window.location.href=IncomingURL;
    }
}