<!--
/*
Function launch - launch a new window
Parameters:
newURL = page URL
newName = name of new window
newFeatures = features of new window
orgName = name of original window
Returns: handle to new window
*/
function launch(newURL, newName, newFeatures, orgName)
{
	var remote = open(newURL, newName, newFeatures);
	if (remote.opener == null)
		remote.opener = window;
	remote.opener.name = orgName;
	return remote;
}

/*
Function launchRemote - launch a new window
Parameters:
page = page URL
Returns: n/a
*/
function launchRemote(page) 
{
	if (!isMenu)
	{
	 myRemote = launch(page,
	                    "myRemote",
	                    "height=250,width=110,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0",
	                    "myWindow");
	}
}

/*
Function launchPressRelease - launches a smaller window for Press Releases
Parameters:
page = Press Release URL
Returns: n/a
*/
function launchPressRelease(p_strPage) 
{
	window.open(p_strPage,'OnyxPR','height=400,width=530,menubar=1,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0');
}

/*
Function refreshWindow - refreshes the remote window with URL specified
Parameters:
URL = page URL
Returns: n/a
*/
function refreshWindow(URL)
{
	window.location = URL;
}

/*
Function OpenSmall - launches a smaller window for Partners
Parameters:
strFile
thewidth,
theheight
Returns: n/a
*/
function OpenSmall(strFile, thewidth, theheight) 
{
  window.open(strFile,'Add','width=' + thewidth + ',height=' + theheight + ',top=0,left=0,scrollbars=1,resizable=1,status=1');
}

/*
Function stockpop_window - launches a smaller window with specific attributes for ShareHolder.com
Parameters:
strFile
thewidth,
theheight
Returns: n/a
*/

function stockpop_window(url) 
{
	if(navigator.userAgent.indexOf("MSIE") == -1) 
	{
		newwindow = window.open(url,'stockpop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=320');
		newwindow.focus();
	} 
	else 
	{
		window.open(url,'stockpop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=320');
	}
}

/*
Function imageSwap - Swaps an image onEvent. Usually done on a MouseOver on href
Parameters:
theImage - NAME parameter of IMG tag of image that is to be swapped
theSrc - actual source path of Image
Returns: n/a
*/
function imageSwap(theImage, theSrc){
  if(document.images){
     document.images[theImage].src = theSrc;
  }
}

/*
Function preloadImages - preloads images into memory buffer. Call in Body OnLoad event
Parameters:
UnSpecified number. Comma delimited list of full path images to pre-Load.
Returns: n/a
*/
function preloadImages() {
  if (document.images) {
    var loadedImages = new Array;
    for(arg=0;arg<preloadImages.arguments.length;arg++) {
      loadedImages[arg] = new Image;
      loadedImages[arg].src = preloadImages.arguments[arg];
    }
  }
}


//-->