
		function CUST_CONFIRM(params) {
		   this.ok     = typeof params.ok != 'undefined' ? params.ok : 'Ok';
		   this.cancel = typeof params.cancel != 'undefined' ? params.cancel : 'Cancel';
		   this.msg    = typeof params.message != 'undefined' ? params.message : '';

		   ok_cb   = typeof params.ok_cb != 'undefined' ? params.ok_cb : function() {};
		   cncl_cb = typeof params.cancel_cb != 'undefined' ? params.cancel_cb : function() {};

		   this.ok_cb = function() {
			   var cp = document.getElementById('cust_confirm_popup');
			   document.lastChild.lastChild.removeChild(cp);
			   ok_cb();
		   };

		   this.cncl_cb = function() {
			   var cp = document.getElementById('cust_confirm_popup');
			   document.lastChild.lastChild.removeChild(cp);
			   cncl_cb();
		   };

		   this._build_dom();
	   }
	   
	   CUST_CONFIRM.prototype._build_dom = function() {
		   
		   var confirm_container = document.createElement('div');

		   confirm_container.id               = 'cust_confirm_popup';
		   confirm_container.style['z-index'] = '203';
		   confirm_container.style.position   = 'absolute';
		   confirm_container.style.left       = '0px';
		   confirm_container.style.top        = '50%';
		   confirm_container.style.width      = '100%';

		   var container = document.createElement('div');
		   container.id				  = 'importConfigConfirmationDiv';
		   container.innerHTML = this.msg + '<br/><div></div>';
		   
		   var ok_btn = document.createElement('input');

		   ok_btn.type    = 'button';
		   ok_btn.value   = this.ok;
		   ok_btn.onclick = this.ok_cb;

		   //container.lastChild.appendChild(ok_btn);

		   var cncl_btn = document.createElement('input');

		   cncl_btn.type    = 'button';
		   cncl_btn.value   = this.cancel;
		   cncl_btn.onclick = this.cncl_cb;

		   //container.lastChild.appendChild(cncl_btn);

		   var buttonContainer = document.createElement('div');
		   buttonContainer.id		  = 'importConfigConfirmationButtonsDiv';
		   buttonContainer.innerHTML  = '<div></div>';
		   buttonContainer.lastChild.appendChild(ok_btn);
		   buttonContainer.lastChild.appendChild(cncl_btn);
		   container.lastChild.appendChild(buttonContainer);
		   
		   confirm_container.appendChild(container);
		   document.lastChild.lastChild.appendChild(confirm_container);
	   }

	   function custom_confirm(params) {
		   var confirm = new CUST_CONFIRM(params);
	   }
	   
	   function do_ok() {
		   closeAndSave();
		   alert('Your new colours have been saved!');
	   }

	   function do_cancel() {
		   //return false;
	   }