<!--

var desc = null;

// opens pop-up window in center of screen; first the w and h of pop-up window are
// set as a function of the character length of file (i.e. length of description)

function param_win(file) {

	if (file.length<=200) {
		var w = 225;
		var h = 150;
	} else if (file.length>=200,file.length<350) {
		var w =275;
		var h = 200;
	} else if (file.length>=350,file.length<750) {
		var w = 350;
		var h = 250;
	} else if (file.length>=750) {
	   var w = 425;
	   var h = 275;
	}

	if (window.screen) {
		var chasm = screen.availWidth;
		var mount = screen.availHeight;
	}

	desc = window.open(file, 'window3', 'width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5) + ',scrollbars=yes,status=no,resizable=yes,toolbar=no');
}

// closes pop up description window when parametric search page refocuses

function paramHelpClose() {
   if (desc != null && desc.open) desc.close();
}

window.onfocus=paramHelpClose;

//-->

