// JavaScript Document
function deleteEntry(id,model) {
	if(model == 'Group'|| model == 'Subgroup')
	{
		var conf = confirm("Are you sure you want to delete this item and all of its sub groups?");
	}
	else
	{
		var conf = confirm("Are you sure you want to delete this?");
	}
	if(conf) {
		field = model + "Id";
	  document.delform.elements[field].value=id;
	  document.delform.submit();
	} else {
	  return;
	}
 }
 
 function hideMetaEdit() {
	  if(document.getElementById('metaedit').style.display==="")
	  {
	  	document.getElementById('metaedit').style.display="none";
	  }
	  else
	  {
	  	document.getElementById('metaedit').style.display="";
	  }
  }
  
  function openEvox($url)
  {
	var load = window.open($url,'showroom','scrollbars=no,menubar=no,height=570,width=755,resizable=no,toolbar=no,location=no,status=no');
  }

  function openPhotos($url)
  {
	var load = window.open($url,'showroom','scrollbars=no,menubar=no,height=570,width=755,resizable=no,toolbar=no,location=no,status=no');
  }
