--- /home/poweruser/Desktop/orig/contribute.module	2009-08-04 00:27:32.000000000 +0530
+++ /home/poweruser/Desktop/new/contribute.module	2009-08-28 15:51:04.000000000 +0530
@@ -430,7 +430,14 @@
 			);
   }
 }
-
+function contribute_budget($form_id, $form_values) {
+  $value = $form_values['values']['budget'];
+  $minimum_budget = variable_get(contribute_minimum_budget, array('100'));
+  $maximum_budget = variable_get(contribute_maximum_budget, array('100'));
+  if ($value <= $minimum_budget || $value >= $maximum_budget) {
+    form_set_error('', t("Budget amount should be less than $maximum_budget but greater than $minimum_budget" ));
+  }
+}
 
 /*
  * Implemenation of hook_block
