function confirmDelete(id,name,parent){
	if(window.confirm("Are you sure you want to delete "+unescape(name)+"?")){
		url = (String(window.location).indexOf("?") != -1) ? String(window.location).substr(0,String(window.location).indexOf("?")) : String(window.location);
		window.location = url+"?action=delete&id="+id+"&parent="+parent;
	}
}
function switchForms(bool){
	for(i=0;i<document.forms.length;i++){
		switchDiv(document.forms[i].id.toString(),bool);
	}
}
