how to print the page in custom format

Hi All,

I've a login page like

USER ID : Test box to enter data

PASSWORD: Text Box to enter data

A Button named as Print

When i click on print button i want to print the form in custom format. when i use window.print in java script it is printing text boxes and button . but i dont want to print button and text boxes. i just want to print the user id and password entered by the user with corresponding labels.

Can anyone suggest me how to print the page in the above format with out using the request object. coz i need to implemnt above with plain java script and html.

Tks in Advance

[643 byte] By [sgnana81a] at [2007-11-27 4:40:43]
# 1
Use CSS. Check out the 'media' attribute. http://www.w3.org/TR/REC-CSS2/media.html
BalusCa at 2007-7-12 9:51:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...