function NewWindow(mypage,myname,w,h,scroll)
{
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}

function OpenWin(loc,winname,WinSize)
{
	var myUrl=loc
	var WinSize="resizable=yes,menubar=no,toolbar=no," + WinSize;
	picWin=window.open(myUrl,"",WinSize);
	return false;
}

function tr()
{
	var O_Acronym="";
	var O_value="";
	var theForm = document.forms[0];
	for  (var i=0;i< theForm.Acronym.length;i++)
	{
		if (theForm.Acronym[i].selected) 
		{
			O_value=theForm.Acronym[i].value;
			O_Acronym=theForm.Acronym[i].text;
			break;
		}
	}
	if (O_value<=1000) 
	{	
		for  (var i=0;i < theForm.Code.length;i++)
		{
			if (theForm.Code[i].value==O_value) 
			{
				theForm.Code[i].selected=true;
				break;
			}
		}	
	}
	else
	{
		theForm.Code[0].selected=true;
	}
	
	for  (var i=0;i < theForm.Title.length;i++)
	{
		if (theForm.Title[i].value==O_value) 
		{
			theForm.Title[i].selected=true;
			break;
		}
	}
		
	newloc = "Attribute.asp?nameAcr=" + O_Acronym;
	parent.frames["Attributes"].location.href = newloc;
}

function tr1()
{
	var O_value="";
	var theForm = document.forms[0];
	for  (var i=0;i< theForm.Code.length;i++)
	{
		if (theForm.Code[i].selected) 
		{
			O_value=theForm.Code[i].value;
			break;
		}
	}
	for  (var i=0;i < theForm.Title.length;i++)
	{
		if (theForm.Title[i].value==O_value) 
		{
			theForm.Title[i].selected=true;
			break;
		}
	}
		
	for  (var i=0;i < theForm.Acronym.length;i++)
	{
		if (theForm.Acronym[i].value==O_value) 
		{
			theForm.Acronym[i].selected=true;
			O_Acronym=theForm.Acronym[i].text;
			break;
		}
	}
	newloc = "Attribute.asp?nameAcr=" + O_Acronym;
	parent.frames["Attributes"].location=newloc;
}
	
function tr2()
{
	var O_value="";
	var theForm = document.forms[0];
	for  (var i=0;i< theForm.Title.length;i++)
	{
		if (theForm.Title[i].selected) 
		{
			O_value=theForm.Title[i].value;
			break;
		}
	}
	for  (var i=0;i < theForm.Acronym.length;i++)
	{
		if (theForm.Acronym[i].value==O_value) 
		{
			theForm.Acronym[i].selected=true;
			O_Acronym=theForm.Acronym[i].text;
			break;
		}
	}
	if (O_value<=1000) 
	{
		for  (var i=0;i < theForm.Code.length;i++)
		{
			if (theForm.Code[i].value==O_value) 
			{
				theForm.Code[i].selected=true;
				break;
			}
		}
	}
	else
	{
		theForm.Code[0].selected=true;
	}
 	
	newloc = "Attribute.asp?nameAcr=" + O_Acronym;
	parent.frames["Attributes"].location=newloc;
}