function commonPopup(url, width, height, toolsInd, wname)
{
	var options = "width=" + width + ",height=" + height + ",top=10,left=10";
	var moreOptions = "";
	var windowName = wname;
	if (windowName == "")
		windowName = "reutersPopup";
	switch (toolsInd)
	{
		case 0 : moreOptions = ""; break;
		case 1 : moreOptions = ",toolbar=no,status=no,resizable=yes,scrollbars=yes"; break;
		case 2 : moreOptions = ",menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes"; break;
		default : moreOptions = ""; break;
	}			
	options += moreOptions;
	popupWindow = window.open(url, windowName, options);
	popupWindow.focus();
}

function linksMenu(selection)
{
	//alert(selection.selectedIndex);
	var url = selection.options[selection.selectedIndex].value;
	if (url == "false")
		return false;
	window.location.href = url;
}

/*
function getRadioValue (radioButtonOrGroup) 
{
	var value = null;

	// group
  	if (radioButtonOrGroup.length) 
	{ 
		for (var b = 0; b < radioButtonOrGroup.length; b++)
	    	if (radioButtonOrGroup[b].checked)
		        value = radioButtonOrGroup[b].value;
	}
	else if (radioButtonOrGroup.checked)
		value = radioButtonOrGroup.value;

	return value;
}
*/

function showElement(element) 
{
	if (element) 
	{
		if (document.layers) 
			document.eval(element).visibility='show'; 
		else 
			document.getElementById(element).style.visibility='visible'
	}
}

function hideElement(element) 
{
	if (element) 
	{
		if (document.layers) 
			document.eval(element).visibility='hide'; 
		else 
			document.getElementById(element).style.visibility='hidden'
	}
}



function opit(url) 
{
	location.href = url;
}

/*

var load = "no";

// needed to hard code images to prod:  WSOD was including this javascript, but 
// they did not have the images (i.e. relative links didn't work)
if (document.images) {
	about = new Image();
	about.src = "http://wwwi.reuters.com/comX/images/navAbout.gif";
	aboutOn = new Image();
	aboutOn.src = "http://wwwi.reuters.com/comX/images/navAboutOn.gif";
	prod = new Image();
	prod.src = "http://wwwi.reuters.com/comX/images/navProd.gif";
	prodOn = new Image();
	prodOn.src = "http://wwwi.reuters.com/comX/images/navProdOn.gif";
	customer = new Image();
	customer.src = "http://wwwi.reuters.com/comX/images/navCustomer.gif";
	customerOn = new Image();
	customerOn.src = "http://wwwi.reuters.com/comX/images/navCustomerOn.gif";
	careers = new Image();
	careers.src = "http://wwwi.reuters.com/comX/images/navCareers.gif";
	careersOn = new Image();
	careersOn.src = "http://wwwi.reuters.com/comX/images/navCareersOn.gif";

	load = "yes";
}



function imageOn(theimg) {
	if (load == "yes") {
		if (document.images) {
			document[theimg].src = eval(theimg + "On.src");
		}
	}
}

function imageOff(theimg) {
	if (load == "yes") {
		if (document.images) {
			document[theimg].src = eval(theimg + ".src");
		}
	}
}

function navOn(which) {
	if (document.getElementById(which)) {
		document.getElementById(which).className='topNavOn';
	}
	if (document.getElementById(which+'Ar')) {
		document.getElementById(which+'Ar').className='topNavOn';
	}
}

function navOff(which) {
	if (document.getElementById(which)) {
		document.getElementById(which).className='topNav';
	}
	if (document.getElementById(which+'Ar')) {
		document.getElementById(which+'Ar').className='topNav';
	}
}

*/