if(window.name == "printWin"){ document.write(''); document.getElementById("main_menu").style.display ="none"; document.getElementById("sub_menu").style.display ="none"; document.getElementById("micro_menu").style.display ="none"; } function artPrint(){ window.open(window.location.href,"printWin","width=780,height=600,menubar=yes,toolbar=yes,status=yes,scrollbars=yes"); }