Index: post-template.php
===================================================================
--- post-template.php	(revision 20972)
+++ post-template.php	(working copy)
@@ -771,7 +771,7 @@
 		'selected' => 0, 'echo' => 1,
 		'name' => 'page_id', 'id' => '',
 		'show_option_none' => '', 'show_option_no_change' => '',
-		'option_none_value' => ''
+		'option_none_value' => '', 'attr' => array(),
 	);
 
 	$r = wp_parse_args( $args, $defaults );
@@ -782,9 +782,14 @@
 	// Back-compat with old system where both id and name were based on $name argument
 	if ( empty($id) )
 		$id = $name;
-
+		
+	$attributes = '';
+	foreach ( (array)$attr as $attr_name => $value ) {
+		$attributes .= " $attr_name=" . '"' . $value . '"';
+	}
+	
 	if ( ! empty($pages) ) {
-		$output = "<select name='" . esc_attr( $name ) . "' id='" . esc_attr( $id ) . "'>\n";
+		$output = "<select name='" . esc_attr( $name ) . "' id='" . esc_attr( $id ) . "'$attributes>\n";
 		if ( $show_option_no_change )
 			$output .= "\t<option value=\"-1\">$show_option_no_change</option>";
 		if ( $show_option_none )
