function showMessage(message) {
  if (message != '') {
    alert(message);
  }
}

function _HpbJumpURL(theUrl) {
  if (theUrl != '') {
    window.location = theUrl;
  }
}

function _HpbFormSubmit(theForm) {
  theForm.submit();
}

function _HpbFormUrlSubmit(theForm, theUrl) {
  theForm.method="POST";
  theForm.action=theUrl;
  theForm.submit();
}

function _HpbReset(theUrl) {
	if (!(result == 'init')) {
		if( !(result.closed) ) { 
		result.close();
		}
	}
	_HpbJumpURL(theUrl);
}

function _HpbQuit(theUrl) {
	if (!(result == 'init')) {
		if( !(result.closed) ) { 
		result.close();
		}
	}
	_HpbJumpURL(theUrl);
}

function _HpbDelete(theForm, theUrl) {
if (!(result == 'init')) {
	if( !(result.closed) ) { 
		result.close();
		}
	}
	  theForm.method="POST";
	  theForm.action=theUrl;
	  theForm.submit();
}

function _HpbAddDelete(theForm, theUrl) {
if (!(result == 'init')) {
	if( !(result.closed) ) { 
		result.close();
		}
	}
	  theForm.method="POST";
	  theForm.action=theUrl;
	  theForm.submit();
}

