function launchHelp()
{

  var agt = navigator.userAgent.toLowerCase();
  var is_mac    = (agt.indexOf("mac")!=-1);

  if (document.all || document.layers || document.getElementById) {
    w = screen.availWidth;
    h = screen.availHeight;

    var topPos = (h-580)/2;
    var leftPos = (w-710)/2;

    if ((document.all) && (is_mac)) { sh = 540 } else { sh = 520 }
    sw = 440
    window.open(strRoot + '/help/default.asp','map','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+sw+',height='+sh+',top='+topPos+',left='+leftPos);
  }
  else {
    alert("You need to have a version 4+ browser to view this section of the web site.");
  }
}


function launchEmail()
{

  var agt = navigator.userAgent.toLowerCase();
  var is_mac    = (agt.indexOf("mac")!=-1);

  if (document.all || document.layers || document.getElementById) {
    w = screen.availWidth;
    h = screen.availHeight;

    var topPos = (h-580)/2;
    var leftPos = (w-710)/2;

    if ((document.all) && (is_mac)) { sh = 540 } else { sh = 520 }
    sw = 440
    window.open(strRoot + '/email/send_email.asp','email','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+sw+',height='+sh+',top='+topPos+',left='+leftPos);
  }
  else {
    alert("You need to have a version 4+ browser to view this section of the web site.");
  }
}

var currentVisible 

function showAnswer(id) {
	switchDisplay(getElement(id))
}

function switchDisplay(el){ 
	if(el!=null){ 
		if(currentVisible!=undefined) { 
			currentVisible.style.display='none'
		}
		if(el.style.display=="none" || el.style.display==""){ 	
			el.style.display='inline'
			currentVisible = el
		} else {
			el.style.display='none'
		}
	}
}

function getElement(id){
	if(document.all){
		el = document.all(id)
	} else if(document.getElementById){
		el = document.getElementById(id)
	} else {
		el = null
	}
	return el
}

function resizeOuterTo(w,h) {
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			top.outerWidth=w;
			top.outerHeight=h;
		}
		else top.resizeTo(w,h);
	}
}
