Amount:&nbsp;&nbsp;<input type="text" name="name[]" class="txtfield validate[custom[integer],min[100]] " style="width:140px;"  /> 
            </div>
            </div>
            <div style=" width:40%; float:left; overflow:hidden;">
            <div style="margin-bottom:25px; width:100%; float:left; overflow:hidden; font-weight:bold;" class="clonedInput2">
                Date:&nbsp;&nbsp;<input type="text" name="date[]" class="txtfield datepicker_recurring_start validate[custom[date],future[NOW]]" style="width:140px;" maxlength="12" />&nbsp;&nbsp;
            </div>
            </div>
          </div>
            <div style=" float:left; clear:both; overflow:hidden;">
 <!--             <input type="button" id="btnAdd" value="Add New Row" class="rwsbutton" /> 
-->

              <?php 
    if (isuniqueoffer($eid, $_SESSION['GTUserID']) > 0) {
        if (togetstatusoffer($_GET["aid"], $_SESSION['GTUserID']) == 3) {
            //echo '<input type="button" name="gtsbutton" id="gtsbutton" value="Rejected" class="rwsbutton rwsred" disabled="disabled"/>';
            echo '<input type="button" id="btnAdd" value="Add New Row" class="rwsbutton" />';
        } else {
            echo '<a class="rwsbutton lightbox rwsgray" href="#gterroroffer" style="display:block; text-align:center;">Add New Row</a>';
        }
    } else {
        if ($row["balance"] != "") {
            echo '<input type="button" id="btnAdd" value="Add New Row" class="rwsbutton" />';
        } else {
            echo '<a class="rwsbutton lightbox rwsgray" href="#gterroroffer2" style="display:block; text-align:center;">Add New Row</a>';
        }
    }
    ?>
            </div>
            
]" type="hidden" value="<?php 
        echo $row['unikdueid'];
        ?>
" />
          <input name="rws_payin[<?php 
        echo $row['ac_id'];
        ?>
]" type="hidden" value="<?php 
        echo $row['payin'];
        ?>
" />
		  <input name="rws_status[<?php 
        echo $row['ac_id'];
        ?>
]" type="hidden" value="<?php 
        echo togetstatusoffer($row['ac_id'], $row['id']);
        ?>
" />        
          <input name="rws_acid[<?php 
        echo $row['ac_id'];
        ?>
]" type="hidden" value="<?php 
        echo $row['ac_id'];
        ?>
" />
          <input name="rwsaccount_type[<?php 
        echo $row['ac_id'];
        ?>
]" type="hidden" value="<?php 
        echo $array_product_type[$row['product_type']];
        ?>
</textarea></div>
                <?php 
        echo '<input type="submit" name="gtsbutton" id="gtsbutton" value="Submit Offer" class="rwsbutton"/>';
    } else {
        echo '<a class="rwsbutton lightbox rwsgray" href="#gterroroffer2" style="display:block; width:50px; text-align:center;">Offer</a>';
    }
}
?>
        <div id="gterroroffer" style="display:none; max-width:300px; text-align:justify"><p><strong>You have already submitted an offer. You must now wait for your creditor to respond.</strong></p></div>
        <div id="gterroroffer2" style="display:none; max-width:300px; text-align:justify"><p><strong>Your Dues Account details are awaiting verification by your creditor. Once they are verified, you can make offers!</strong></p></div>
         <div id="gterroroffer3" style="display:none; max-width:300px; text-align:justify"><p><strong>You have exhaused the number of offers available online. Please speak to your account manager for further details</strong></p></div>
    </div>


<?php 
if (isuniqueoffer($eid, $_SESSION['GTUserID']) == 0 || togetstatusoffer($_GET["aid"], $_SESSION['GTUserID']) == 3 || togetstatusoffer($_GET["aid"], $_SESSION['GTUserID']) == 0 || togetstatusoffer($_GET["aid"], $_SESSION['GTUserID']) == 2 || togetstatusoffer($_GET["aid"], $_SESSION['GTUserID']) == 1) {
    ?>
<!--

<div class="adManagercatmenu">
		
        <div class="categorysecondid">        	
          <div id="wrapper">  
            <div style=" width:40%; float:left; overflow:hidden;">
            <div style="margin-bottom:10px; width:100%; float:left; overflow:hidden; font-weight:bold;" class="clonedInput" >
               Amount:&nbsp;&nbsp;<input type="text" name="name[]" class="txtfield validate[custom[integer],min[100]] " style="width:140px;"  /> 
            </div>
            </div>
            <div style=" width:40%; float:left; overflow:hidden;">
            <div style="margin-bottom:25px; width:100%; float:left; overflow:hidden; font-weight:bold;" class="clonedInput2">
                Date:&nbsp;&nbsp;<input type="text" name="date[]" class="txtfield datepicker_recurring_start validate[custom[date],future[NOW]]" style="width:140px;" maxlength="12" />&nbsp;&nbsp;