"; // var newstr = document.all.item(printdetais).innerHTML; // var oldstr = document.body.innerHTML; // //var myStyle = ''; // //document.body.innerHTML = myStyle + headstr + newstr + footstr; // //window.print(); // //document.body.innerHTML = oldstr; // document.body.innerHTML = headstr + newstr + footstr; // window.print(); // document.body.innerHTML = oldstr; // window.close(RedirectToDashboard()); // return false; //} //indowObject.print(); // WindowObject.close(Redirectcompleteconsultscrn()); //} String.prototype.replaceAll = function (search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); }; function PrintContent(printdetais) { $("#consulttitle").hide(); $("#dvprintbtn").hide(); $("#dvclosebtn").hide(); $("#constltattacment").hide(); var headstr = "