pageLoaded = 0;				// Prevent access to layers until they're loaded

// Set the pageLoaded variable to denote that the layers are ready to be used 
function doLoadProc() {
	pageLoaded = 1;
}

// swapImg - swaps an image for another that has already been preloaded.
function swapImg(imgName, preloadedImgName) {
	document[imgName].src = eval(preloadedImgName).src;
}

function preload(imgSrc) {
	img = new Image();
	img.src = imgSrc;
	return img;
}

  function popupEmail(subject)
  {
  var msg = "I thought you'd be interested in this information from the UC Davis Graduate School of Management's web site at:    ";
  window.location = "mailto:" + "&body=" + msg + escape(subject);
  window.focus();
  }  
    
function safemail(name, domain, display)
{
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<a href=mailto:' + name + '&#064;' + domain + '>' + displayed +
'</a>');
}