/*******************************************************************
DESCRIPTION:
Javascript code for pop-up definition window.
--
CREATED BY: Blossom Woo
MODIFIED BY: Gregory Ramsperger to use local files
*******************************************************************/
function openWinDef(strFormName) {
	var intHeight;
	
	// determine length of definition text
	var strDef = eval('document.'+strFormName+'.strDef.value');
	var intDefLength = strDef.length;
	
	// calculate window height based on definition length
	intHeight = (intDefLength / 53) * 20 + 75;
	if (intHeight > 600)
		intHeight = 800;

	var strWinAttribs = 'width=320,height=' + intHeight + ',status=yes,menubar=yes,scrollable=no,resizable=yes';
	
	var n = window.open('','popup', strWinAttribs);
	eval('document.'+strFormName+'.submit();');
}

/*
function openWinDef(strWord, strDef) {
	var intHeight;
	var intDefLength = strDef.length;
	// calculate window height based on definition length
	intHeight = (intDefLength / 53) * 20 + 100;
	//alert ("strWord: "+escape(strWord)+"; def: "+escape(strDef));
	
	var strUrl = "/reviews/chart_definition.asp?strWord=" + escape(strWord) + "&strDef=" + escape(strDef);
	var strWinAttribs = 'width=320,height=' + intHeight + ',status=yes,menubar=yes,scrollable=no,resizable=no';
	
	var n=open(strUrl,'definition', strWinAttribs);
}
*/
// Created with XCache Version:(2.2.7331.1), Copyright (c) 1997-2001 XCache Technologies All Rights Reserved 
// Page: http://w10.pcworld.com:80/reviews/lib/defn_win_pop_veto.js 
// File: file://e:\CacheDir\cache1\reviews\lib\00000031.js 
// Origin File: file://E:\wwwData\pcw\reviews\lib\defn_win_pop_veto.js 
// Date: Tue, 06 Apr 2004 07:32:28 GMT 

