function delconfirm(dsstr,dsid,aim,fid,hid){
	if(confirm("Möchten Sie den Datensatz "+dsstr+" unwiederruflich löschen?")){
		if (aim != "") {
			document.location.href=aim;
		}
		if (fid != "") {
			document.getElementById(fid).value = document.getElementById(fid).value + ";" + dsid;
			if (hid != "") {
				document.getElementById(hid).style.display = 'none';
			}
		}
	}
}
function delconfirm_record(record,aim){
	if(confirm("Möchten Sie den Datensatz "+record+" unwiederruflich löschen?")){
		if (aim != "") {
			document.location.href=aim;
		}
	}
}
function delconfirm_item(item,itemid,fid,hid){
	if(confirm("Möchten Sie das Objekt "+item+" unwiederruflich löschen?")){
		if (fid != "") {
			document.getElementById(fid).value = document.getElementById(fid).value + ";" + itemid;
			if (hid != "") {
				document.getElementById(hid).style.display = 'none';
			}
		}
	}
}

function myconfirm(txt,aim){
	if(confirm(txt)){
		document.location.href=aim;
	}
}
function togglefieldset(id,togglebuttonid){
	id = document.getElementById(id);
	if (id.className == "close"){
		id.className = "open";
		togglebuttonid.className = "fieldset_toggle_open";
	}
	else {
		id.className = "close";
		togglebuttonid.className = "fieldset_toggle_close";
	}
}

function setcookie(name,value,expires){
	now=new Date();
	expires=new Date(now.getTime()+expires*86400000);
	document.cookie=name+"="+value+";expires="+expires.toGMTString()+";";
}