function BodyOnLoad()
	{											
		if(screen.availHeight > 650) 
			{
				window.document.getElementById("tbContent").style.height=screen.availHeight-300;
			}
		BodyOnResize();
	}

function BodyOnResize()
	{				
		window.document.getElementById("tbFiller").style.height= window.document.getElementById("tbMain").offsetHeight-	225;
	}
function myVoid()
		 {
			nothing='';
		}

function openChild(windowURL,width,height) {
		return myWindow=window.open(windowURL,"windowRef","width=" + width + ",height=" + height + ",screenX=0,screenY=0,toolbar=1,location=1,status=1,menuBar=1,scrollBars=1,resizable=1");
		myWindow.focus();
		}			

function PopUpWindow(strURL)
	{
		window.open(strURL,"", "toolbar=0,width=300,height=200,top=200,left=175,scrollbars=0"); 
	}

function navigateBack() 
	{
				
		window.opener.focus();
		self.close();

	}

function Submit_SimpleSearch(thisControl)
	{
		var strSearchText;						
		var strUsing;

		if (thisControl == 'GoButton')
			strSearchText = trimString(window.document.frmSearchBottom.txtSearch.value)
		else
			strSearchText = trimString(window.document.frmSearchLeftTop.txtSearch.value)
						
		strUsing = "AND"
		window.document.location = "Search/AdvancedSearch.asp?Search=" + strSearchText + "&Using=" + strUsing;
			
	}

function trimString(strString) 
	{
		// this will get rid of leading spaces 
		while (strString.substring(0,1) == ' ') 
			strString = strString.substring(1, strString.length);

		// this will get rid of trailing spaces 
		while (strString.substring(strString.length-1,strString.length) == ' ')
			strString = strString.substring(0, strString.length-1);

	   return strString;
	} 

function openScript(windowURL,width,height) 
	{
		window.open(windowURL,"windowRefPopup","width=" + width + ",height=" + height + ",screenX=200,screenY=200,toolbar=0,location=0,status=0,menuBar=0,scrollBars=0,resizable=0");
	}
