// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function mark_for_destruction(element, name) 
{
  if (confirm("Sicher?"))
  {  
    $(element).next('.should_destroy').value = 1;
    $(element).up('.' + name).hide();
  }
};

function updateElements()
{
  // tut derzeit nichts.
};

function clearField(o)
{
// diese Funktionen, um Inputs erklärende Texte einzufügen.
	var obj = $(o);
	
	if (obj.title == obj.value)
	{
		obj.value="";
		obj.style.color="#000";
	}
	obj.focus();
}

function restoreField(o)
{
	var obj = $(o);
	
	if (obj.value == "")
	{
		obj.value = obj.title;
		obj.style.color="#777";
	}	
}
