var response = 'maybe';

function show_value () {
	alert (response);
}

function custom_confirm (message, yestext, notext, action_object) {
	if (typeof (notext) == 'undefined') 
		notext = 'Cancel';
	if (typeof (yestext) == 'undefined')
		yestext = 'OK';

	var cdiv = document.createElement ('div');
	var div = document.createElement ('div');
	var p   = document.createElement ('p');
	var yes = document.createElement ('input');
	var no  = document.createElement ('input');
	yes.type = 'button';
	no.type  = 'button';

	var msgbox = new generalMessageBox (100, 'box', 'forceview');
	action_object.setBox (msgbox);

	yes.action_object = action_object;
	yes.onclick = function () {
		response = true;
		this.action_object.yesaction ();
	}
	yes.value   = yestext;

	no.action_object = action_object;
	no.onclick  = function () {
		response = false;
		this.action_object.noaction ();
	}
	no.value   = notext;

	p.appendChild (document.createTextNode (message));

	div.appendChild (p);
	div.appendChild (yes);
	div.appendChild (no);
	cdiv.appendChild (div);
	msgbox.set (cdiv);

	return false;
}
