< Div Style = "Margin-top: auto; text-align: center ;" ID = "Buttondiv" > < Object ID = "WB" Height = "0" Width = "0" Classid = "CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2" Name = "WB" > </ Object > < Input Class = "BTB" Onclick = "Javascript: printit ()" Type = "Button" Value = "Print" Name = "Button_print" /> < Input Class = "BTB" Onclick = "Javascript: printsetup ();" Type = "Button" Value = "Print page settings" Name = "Button_setup" /> < Input Class = "BTB" Onclick = "Javascript: printpreview ();" Type = "Button" Value = "Print preview" Name = "Button_show" /> < Input Class = "BTB" Onclick = "Document. getelementbyid ('buttondiv '). style. Display = 'none ';" Type = "Button" Value = "Hide button" /> </ Div >
< Script Type = "Text/JavaScript" > Function Printsetup (){ // Print page settings Document. getelementbyid ( ' Buttondiv ' ). Style. Display = " None " ; Wb.exe CWB ( 8 , 1 ); Document. getelementbyid ( ' Buttondiv ' ). Style. Display = " Block " ;} Function Printpreview (){ // Print Page Preview Document. getelementbyid ( ' Buttondiv ' ). Style. Display = " None " ; Wb.exe CWB ( 7 , 1 ); Document. getelementbyid ( ' Buttondiv ' ). Style. Display = " Block " ;} Function Printit (){ If (Confirm ( ' Are you sure you want to print it? ' ) {Document. getelementbyid ( ' Buttondiv ' ). Style. Display = " None " ; Wb.exe CWB ( 6 , 6 ) Document. getelementbyid ( ' Buttondiv ' ). Style. Display = " Block " ;}} </ Script >