Index: general-template.php
===================================================================
--- general-template.php	(revision 19983)
+++ general-template.php	(working copy)
@@ -2212,6 +2212,31 @@
 }
 
 /**
+ * Outputs the html value and placeholder attributes.
+ * 
+ * Accepts the value of the input field and an optional placeholder for
+ * use when the value is empty.
+ * 
+ * @param string $value The value of the input field
+ * @param bool $echo (true) Whether to echo or just return the string
+ * @param string $placeholder (NULL) The placeholder of the input field
+ * @return string html attribute or empty string  
+ */
+function valued( $value, $echo = true, $placeholder = NULL ){
+	$data = '';
+	if ( isset( $value ) )
+		$data = ' value="' . esc_attr( $value ) . '"';
+
+	if ( isset( $placeholder ) )
+		$data .= ' placeholder="' . esc_attr( $placeholder ) . '"';
+
+	if ( $echo )
+		echo $data;
+	else
+		return $data;
+}
+
+/**
  * Outputs the html checked attribute.
  *
  * Compares the first two arguments and if identical marks as checked
