function __pb1_hideDialog() {
  if (dom) {
  document.getElementById("messageLayer").style.visibility='hidden';
  
  }
}

function __pb1_showDialog() {
  if (dom) {
  document.getElementById("messageLayer").style.visibility='visible';
  
  
  
  }
  

function __pb1_insertDialog(){
var dialog_html = 	'<div id="qrDisplayModal" style="border-style: solid; border-width: 5px; height: 380px; width: 600px; background-color: #FFFFFF"; position: fixed; top: 12em; margin-left: auto; margin-right: auto">' +
								'<div id="pleaseWait" style="width: 256px; height: 256; position: absolute; top: 4em; display: block; margin-left: 4em;   z-index: 768">' +
								'<span>Generating QR code, please wait ...</span>' +
								'</div>' +
								'<div id="pb1QRcode" style="position: absolute; background-color: white; top: 4em;  display: block; margin-left: 4em;  z-index: 1024">' +
								'</div></div>';
;
//  Create new link element
var newDiv = document.createElement("div");
  newDiv.id = "__pb1_qrDialog";
newLink.appendChild(newDiv);
var bodyElement = document.getElementsByTagName("body");
bodyElement.appendChild(newDiv);
var newDiv = document.getElementByid("__pb1_qrDialg");
newDiv.innerHTML = dialog_html;
	
}
(function(){
__pb1_insertDialog();
}
