
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 tr()
{
	var O_Acronym="";
	var O_value="";
	var theForm = document.forms[0];
	var theLen = theForm.Acronym.length;
	for  (var i=0;i< theLen;i++)
	{
		if (theForm.Acronym[i].selected) 
		{
			O_value=theForm.Acronym[i].value;
			O_Acronym=theForm.Acronym[i].text;
			break;
		}
	}
	if (O_value<=1000) 
	{	
		theLen = theForm.Code.length;
		for  (var i=0;i < theLen;i++)
		{
			if (theForm.Code[i].value==O_value) 
			{
				theForm.Code[i].selected=true;
				break;
			}
		}	
	}
	else
	{
		theForm.Code[0].selected=true;
	}
	theLen = theForm.Title.length;
	for  (var i=0;i < theLen;i++)
	{
		if (theForm.Title[i].value==O_value) 
		{
			theForm.Title[i].selected=true;
			break;
		}
	}
	 	 
	newloc = "Object.asp?nameAcr=" + O_Acronym;
	parent.frames["Objects"].location.href = newloc;
}

function tr1()
{
	var O_value="";
	var theForm = document.forms[0];
	var theLen = theForm.Code.length;
	for  (var i=0;i< theLen;i++)
	{
		if (theForm.Code[i].selected) 
		{
			O_value=theForm.Code[i].value;
			break;
		}
	}
	theLen =  theForm.Title.length;
	for  (var i=0;i < theLen;i++)
	{
		if (theForm.Title[i].value==O_value) 
		{
			theForm.Title[i].selected=true;
			break;
		}
	}
	theLen = theForm.Acronym.length;
	for  (var i=0;i < theLen;i++)
	{
		if (theForm.Acronym[i].value==O_value) 
		{
			theForm.Acronym[i].selected=true;
			O_Acronym=theForm.Acronym[i].text;
			break;
		}
	}
	newloc = "Object.asp?nameAcr=" + O_Acronym;
	parent.frames["Objects"].location.href=newloc;
}
	
function tr2()
{
	var O_value="";
	var theForm = document.forms[0];
	var theLen = theForm.Title.length
	for  (var i=0;i< theLen;i++)
	{
		if (theForm.Title[i].selected) 
		{
			O_value=theForm.Title[i].value;
			break;
		}
	}
	theLen = theForm.Acronym.length;
	for  (var i=0;i < theLen;i++)
	{
		if (theForm.Acronym[i].value==O_value) 
		{
			theForm.Acronym[i].selected=true;
			O_Acronym=theForm.Acronym[i].text;
			break;
		}
	}
		
	if (O_value<=1000) 
	{
		theLen = theForm.Code.length;
		for  (var i=0;i < theLen;i++)
		{
			if (theForm.Code[i].value==O_value) 
			{
				theForm.Code[i].selected=true;
				break;
			}
		}
	}
	else
	{
		theForm.Code[0].selected=true;
	}
	newloc = "Object.asp?nameAcr=" + O_Acronym;
	parent.frames["Objects"].location.href = newloc;
}
