var URLArray = new Array();
function addURL(item, strTarget, strLinkURL) 
{
    var itemArray = URLArray[item];
	if (itemArray == null || typeof(itemArray) == 'undefined') {
		URLArray[item] = itemArray = new Array();
	}
	
	itemArray[itemArray.length] = {'target':strTarget,
				     'URL':strLinkURL
				    }
}

function goToSelectedLinks(productMenu)
{
	var i = productMenu.selectedIndex-1;
	var item = productMenu.name;
	
	if (i >= 0  && i < URLArray[item].length) 
	{
		var strLinkURL = URLArray[item][i].URL;
		var strTarget = URLArray[item][i].target;
		
		if (strLinkURL != "")
		{
		  if ( strTarget.indexOf("_top") != -1 )
		  {
			  window.location.href = strLinkURL;		  
		  }
		  else
		  {
			  window.open(strLinkURL,'win','width=680,height=550,scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes,location=yes,directories=yes');		  
		  }
		}
		//productMenu.selectedIndex = 0;
	}
	// Go to the selected link if not ""
}

