All the code for a password textbox is below including the css, the html code and the javascript. You could place all this in a text file and save it as pwd.php
and anywhere you wish to place it just insert <?php include($path-to . '/pwd.php');?>
.