//	script.js - Common Javascript
//
//	Copyright (C) 1999-2010 Charles A Upsdell, All Rights Reserved; www.upsdell.com


// getElement - get element associated with an ID, or null if not found
function getElement ( id )
{
var element = null;
if ( (arguments.length == 0) || (id == "") )
	return( null );
if ( document.getElementById )
	element = document.getElementById( id );
else if ( document.all )
	element = document.all[id];
return( element );
}

// OnLoad Function
function myOnLoad ( )
{
if ( typeof(myReportAnyBrowserUpdate) !== typeof(noSuchFunction) )
	myReportAnyBrowserUpdate( '../BrowserNews/', 'ins_BrowserUpdate' );
}


// Scroll to a position, defaulting to top of page; return false if done
function myScrollTo ( left, top )
{
if ( arguments.length < 1 )
	left = 0;
if ( arguments.length < 2 )
	top = 0;
var value = true;
if ( typeof(window.scrollTo) !== typeof(noSuchFunction) )
  {
 	window.scrollTo( left, top );
	value = false;
  }
return( value );
}

