function showGloss() {
  openWin("glossary.html?showall=1", 420, 340, "GlossWin")
}

function showResources() {
  openWin("WebHelp/ttac_concept1.htm", 620, 440, "ResourceWin")
}

function showEvaluation() {
  	
	options = "location=0,toolbar=0,menubar=0,resizable=0,scrollbars=1,width=560,height=500";
	winname = "EvaluationWin";
	doc = "evaluation.asp";
	thewin = window.open(doc, winname, options);
	thewin.focus();
}

function showHelp() {
// open window slightly smaller than the screen resolution
    width = screen.width - 10
    height = screen.height - 40

// set maximum dimensions
    if (height > 610) height = 610
    if (width > 820) width = 820

// check to see if the screen is tiny
    if (height <= 600 || width <= 800) {
// tiny screen, use fullscreen
		foo = window.open('help_sm.htm','HelpWin','fullscreen,left=0,top=0,screenX=0,screenY=0,scrollbars=no,resizable=no,width='+width+',height='+height)
    } else {
// large screen, open in appropriately sized window
      foo = window.open('help.htm','HelpWin','left=0,top=0,screenX=0,screenY=0,scrollbars=no,resizable=no,width='+width+',height='+height)
    }
	foo.focus();
}

function openWin(doc,w,h,wname) {
	var wid = 355;
	var hei = 400;
	var width = w;
	var height = h; 

	if (wname && wname != null) {
		var winname = wname;
	} else {
		var winname = "SomeWin";
	}

	// If width and height were specified, use those
	if ((width) && width != '' && width > 0 && (height) && height != '' && height > 0) {
		wid = width;
		hei = height;
	}

	options = "location=0,toolbar=0,menubar=0,resizable=1,scrollbars=1,width=" + wid + ",height=" + hei;

	thewin = window.open(doc, winname, options);
	thewin.focus();
}

