// function and copy taken from avocado.org
var alertStr = "Please Note: You have clicked on a link to a web site maintained by a third party and are about to leave the Hass Avocado Board's web site. The Board provides this link as a convenience to you; the link should not be considered an endorsement by the Board of the third-party web site or the company who owns it. The Board is not responsible for the quality, safety, completeness, accuracy or nature of the content of the linked web site. To return to http://www.avocadocentral.com, simply close the new browser window.";
var confStr = alertStr + "\n\nClick 'OK' to continue, or 'Cancel' to return to http://www.avocadocentral.com now.";

function extLink(url) {
  if(confirm(confStr)) {
     window.open(url);
     return false;
  } else {
     return false;
  }
}

// Pop up labels for nutrtion page.
var pop_n=null;
function nutrPop(u,n,w,h){
if(pop_n == null || pop_n.closed){
   pop_n = window.open(u,n,'menus=0,location=0,status=0,width='+w+',height='+h+',scrolling=0');
}else{
   pop_n.close();
   pop_n = window.open(u,n,'menus=0,location=0,status=0,width='+w+',height='+h+',scrolling=0');
}
   pop_n.focus();
}
