/* (c) Jamespot 2005-2007 */
function action_structure(mode)
{
  if (document.layers)
	{
			fp= document.layers["fp_structure"];
			ta= document.layers["topArticle_structure"];
			hd= document.layers["headlines_structure"];
	}
	else if (document.all)
	{
			fp= document.all["fp_structure"];
			ta= document.all["topArticle_structure"];
			hd= document.all["headlines_structure"];
	}
	else if (document.getElementById)
	{
			fp= document.getElementById("fp_structure");
			ta= document.getElementById("topArticle_structure");
			hd= document.getElementById("headlines_structure");
	}
  if (mode==1)
  {
    fp.style.border="1px solid #FF0000";
    ta.style.border="0px";
    hd.style.border="0px";
  }
  else if(mode==0)
  {
    fp.style.border="0px";
    ta.style.border="0px";
    hd.style.border="0px";
  }
  else if(mode==2)
  {
    fp.style.border="0px";
    ta.style.border="1px solid #FF0000";
    hd.style.border="0px";
  }
  else if(mode==3)
  {
    fp.style.border="0px";
    ta.style.border="0px";
    hd.style.border="1px solid #FF0000";
  }
}

function prevalidateSpotlight(inSelectSpotMessage) {
  var isOk = true;
  var spotSelect = document.getElementById("IdSpot");
  if (spotSelect != null) {
    if ((spotSelect.value == "") || (spotSelect.value == 0)){
      isOk = false;
      alert(inSelectSpotMessage);
    }
  }
  return isOk;
}

