function confirmDelete(txt)  {
	if (confirm("Are you sure you want to delete this " + txt + "?")) {
		return true;
	} else {
		return false;
	}
}

function confirmPublish(txt)  {
	if (confirm("Are you sure you want to publish this " + txt + "?")) {
		return true;
	} else {
		return false;
	}
}


function deleteOK(Name, txt){
var deleteOK  =  false;
	
	if (confirm("Are you sure you want to delete this "+ txt +"?")){
deleteOK  =  true;
	}
	return deleteOK;
}

function deleteNow(frm, x){
frm.whattodo.value  =  'DELETE';
	frm.workid.value = x;
	frm.submit();
}

function deleteNow(frm, x){
frm.whattodo.value  =  'DELETE';
	frm.workid.value = x;
	frm.submit();
}

function deleteEventNow(frm, x){
frm.whattodo.value  =  'DELETE';
	frm.eventid.value = x;
	frm.submit();
}

function deleteFocusNow(frm, x){
frm.whattodo.value  =  'DELETE';
	frm.ID.value = x;
	frm.submit();
}
function changeOk(txt){
var changeOK = false;
		if(confirm(txt)){
changeOK = true;
		}
		return changeOK;
}
function changeAvatar(frm,x,nextAction){
frm.whattodo.value  =  'CHANGEAVATAR';
	frm.workid.value = x;
	frm.whattodonext.value = nextAction;
	//alert("next action "+nextAction);
	frm.submit();
}
function changeFocus(frm,x,nextAction){
frm.whattodo.value  =  'CHANGEFocus';
	frm.focusprofileid.value = x;
	frm.whattodonext.value = nextAction;
	//alert("next action "+nextAction);
	frm.submit();
}
