function groupSelected()
{
  var ThisForm = document.frmArticleGroupdetails;	                      
  ThisForm.group.value = ThisForm.drdGroups.options[ThisForm.drdGroups.options.selectedIndex].value;	
}

function Save(action)
{	
	var ThisForm = document.frmArticleGroupdetails;
  var blnValid = true;
  var strError = "";	
	
	if(action == "cancel")
	{
	  blnValid = true;	  
	}
	else
	{	  
		if(ThisForm.groupnameNL.value == "")
	  {	  
			
			strError += "Naam (NL) is verplicht \n";
			blnValid = false;
		}
	  	
		if((ThisForm.groupnameEN.value == ""))
		{
		  strError += "Naam (EN) is verplicht \n";
			blnValid = false;
		}
		
		if((ThisForm.groupdescriptionNL.value == ""))
		{
		  strError += "Omschrijving (NL) is verplicht \n";
			blnValid = false;
		}		
		
		if((ThisForm.groupdescriptionEN.value == ""))
		{
		  strError += "Omschrijving (EN) is verplicht \n";
			blnValid = false;
		}			
	  
	}
		
	if(blnValid)
	{	  
  	ThisForm.btnAction.value = action ;
		ThisForm.submit();
	}
	else
	{
	  alert(strError);
	}  
}


function setGroup(id,link)
{
  document.location.href=link;
  document.getElementById(id).style.cursor = "pointer";
  
}

function HighlightGroup(id)
{
  document.getElementById(id).style.cursor = "pointer";
  window.status=id;
  //document.getElementById(id).className = 'MenuItemHover';  
}

function UnhighlightGroup(id)
{
  document.getElementById(id).style.cursor = "auto";
  window.status='';
  //document.getElementById(id).className = 'MenuItem';  
}