/*
//	Default: Standardtext des PullDown-Menüs
//	Wert: ausgewählter Wert
//	Name: Formularname
*/
function formular(Default, Wert, Name) 
{
	if (Wert != Default) 
	{ 
		document.forms[Name].submit();
	}
}

function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  	window.open(theURL,winName,features);
}

function delfield(obj){ 
 obj.value = "";
}

/**
 * Displays an confirmation box before to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
function confirmLink(theLink, theUserName)
{

//    var is_confirmed = confirm('Möchten Sie diesen Eintrag tatsächlich löschen:\n' + theUserName);
    var is_confirmed = confirm('Möchten Sie diesen Eintrag tatsächlich löschen?');
    if (is_confirmed) {
        theLink.href += '&aktion=loeschen';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function


