// JavaScript Document

function selectrecord(txtSpecial,txtFields,txtValues) { 
	if (txtSpecial!='NONE')
		{
		aFields = txtFields.split("~");
		aValues = txtValues.split("~");
		for (var i=0; i < aFields.length; i++) 
			{
			var txtPopValues="opener.document.forms[0]."+aFields[i]+".value="+"'"+aValues[i]+"'";
			eval(txtPopValues);
			}
			window.close();
		}
}
<!---**********--->
function NewRptWin() {
	var nHeight=screen.availHeight;
	var nWidth=screen.availWidth;
	window.resizeTo(nWidth,nHeight);
}
<!---**********--->
function CheckLogin(LocationID,NextWindow,IsReport) {
	switch (LocationID) {
		case 'LOGIN':
			alert('Please enter your User Name and Password above.  This option requires registration (at no cost). Click on the purple REGISTER NOW box on the home page if you have not registered.');
			window.location.href='index.cfm';
			break;
		case 'NORPT':
			alert("This report will be ready for subscribers shortly!.  We will notify you as soon as this Defined Query Library report has been activated.");
			break;
		default:
			if (IsReport=='Y') 
				{
				window.open(NextWindow);
				}
			else
				{
				window.location.href=NextWindow;
				}
	}
}
<!---**********--->
