Chris is right, you also must understand that javascript runs client-side, (In the browser), and PHP is server-side (runs on the server). You can generate javascript with PHP, but hardly the other way around ;). -- Charles Morris cmorris@xxxxxxxxxx Network Administrator, Software Developer iSTART Research Assistant, X-CS Systems Group Old Dominion University http://15037760514/~cmorris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php