jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});var counter = 0;function printDocument(divName, className) {counter++;var newFields = document.getElementById(divName).cloneNode(true);newFields.id = divName;newFields.style.display = 'block';var newField = newFields.childNodes;for (var i=0;i<newField.length;i++) {var theName = newField[i].nameif (theName)newField[i].name = theName + counter;}var myWindow = window.open('','Print','width=600,height=800,centerscreen,scrollbars');myWindow.document.write("<html><head><title></title></head><body><div id=\"start\" class=\""+className+"\"></div></body></html>"); myWindow.document.write("<link href=\"/html/themes/siemens/css/print.css\" type=\"text/css\" rel=\"stylesheet\" />");myWindow.document.close();myWindow.document.getElementById('start').appendChild(newFields);myWindow.print();}