function launchLov(lovUrl, windowWidth, windowHeight)
{
  window.open(lovUrl, 'lovWindow', 
              'scrollbars=yes,resizable=yes,height='+windowHeight+',width='+windowWidth);
}

function lovOK(lovList, lovField)
{
  if (lovList.selectedIndex == -1)
  {
    alert("Please select a value");
    return;
  }
  lovField.value = lovList.options[lovList.selectedIndex].text;
  window.close();
}

function sizeLayer(layerName, width, height)
{
	var theLayer = document.getElementById(layerName);

	
	if(width > -1 && width != null && width != "undefined")
	{
		theLayer.style.width = width;
	}

	if(height > -1 && height != null && height != "undefined")
	{
		theLayer.style.height = height;
	}
}

