function sendMailTo(name, company, domain) {
	locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
	window.location.replace(locationstring);
}

function toggleLayers( layer1, layer2 )
{
  toggleLayer(layer1);
  toggleLayer(layer2);
}

function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function openNewWindow(windowURL, windowName) {
	var ns4 = (navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4);
	var window_width = ns4 ? 796: 800;
	var window_height = ns4 ? 600 : 596;
	var window_top = window.top + 10;
	var window_left = window.left + 10;
    newWindow = window.open(windowURL,windowName,'resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	newWindow.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
