window.addEventListener('message',function MyPrinter(e) {
var d = [];
if(e.data && (e.data.indexOf(Label) == 0) && (d = decodeURIComponent(e.data).split('\n')) && (d[1].length > 0) ){
var form = document.getElementsByClassName('form')[0];
if (form){
form.value = d[1];
}
else {
addEventListener('DOMContentLoaded', function(){
var form = document.getElementsByClassName('form')[0];
form.value = d[1];
}, false);
}
window.removeEventListener('message',MyPrinter,false);
}
},false);