--- captcha.module.original     Sat Jan 13 20:48:05 2007
+++ captcha.module      Sat May  5 01:32:23 2007
@@ -194,12 +194,18 @@ function captcha_captchachallenge(&$form
   $x = rand(1,10);
   $y = rand(1,10);
 
+  if (!$form['submit']['#weight']) {
+    $form['submit']['#weight'] = 30;
+  }
+  
+  $captcha_weight = $form['submit']['#weight'] -1; 
+    
   $captcha = (string)($x + $y);
   $form['captcha_response'] = array (
     '#type' => 'textfield',
     '#title' => t('Math Question: What is %problem?', array('%problem' => $x .' + '. $y)),
     '#description' => t('Please solve the math problem above and type in the result. e.g. for 1+1, type 2.'),
-    '#weight' => 0,
+    '#weight' => $captcha_weight,
     '#required' => TRUE,
     '#validate' => array('_captcha_validate' => array()),
   );
