function Dalert(message) {
	var alertContentObj = dijit.byId('DalertMessage');
	alertContentObj.setContent(message);
	
	dijit.byId('Dalert').show();
}

function closeDAlert() {
	dijit.byId('Dalert').hide();
}

function Dconfirm(message) {
	var confirmContentObj = dijit.byId('DconfirmMessage');
	confirmContentObj.setContent(message);
	
	dijit.byId('DconfirmValidButton').onClick = function() {
		document.getElementById("DconfirmValue").value="true";
		dijit.byId('Dconfirm').hide();
	}
	
	dijit.byId('DconfirmCancelButton').onClick = function() {
		document.getElementById("DconfirmValue").value="false";
		dijit.byId('Dconfirm').hide();
	}
	
	dijit.byId('Dconfirm').show();
	waitDconfirm();
}

function waitDconfirm() {
	var value = document.getElementById("DconfirmValue").value;
	if (value=="") {
		setTimeout("waitDconfirm()",1000);
	}
}

function getDconfirmValue() {
	var value = (document.getElementById("DconfirmValue").value=="true");
	document.getElementById("DconfirmValue").value="";
	return value;
}