<?php

     $fod=11;
       $stat=1;
$sq112ab ="SELECT * FROM $table_name98 WHERE form_id ='$fod' AND status='$stat' ";
//$sq112ab="SELECT * FROM $table_name54 WHERE status >0 ORDER BY model ";
  $result112ab = @mysqli_query($connection,$sq112ab) or die(mysqli_error($connection));
while ($row112ab = mysqli_fetch_array($result112ab)) {
$map_id2= $row112ab['map_id'];
$pr= $row112ab['van1'];
$tot=$row112ab['van47'];
$req=$row112ab['van4'];

 $PR11[$map_id2]="$pr - $req - $ $tot";
   $display_listPR11 .=  "<option value=$map_id2>$PR11[$map_id2]</option>";
        }

  $map_id2='';


     $sql33d ="SELECT * FROM $table_name101 WHERE map_id ='$map_id' Order by event_id Desc ";
 $result33d = @mysqli_query($connection,$sql33d) or die(mysqli_error($connection));
 while ($row1 = mysqli_fetch_array($result33d)) {
        $App22=  $row1['approved'];
         $App22_id=  $row1['approve_id'];

         if ($App22_id ==1){
           $AppState="Approved";
         }else{
            $AppState=" Not Approved";
         }

        $sql33r ="SELECT * FROM $table_name110 WHERE id ='$App22_id'  ";

  $result33r = @mysqli_query($connection,$sql33r) or die(mysqli_error($connection));
        $row22r =mysqli_fetch_array($result33r,MYSQLI_ASSOC);
      $lastApp=$row22r['lastname'];
      $em221a=

            $display_approvals .="$lastApp - $AppState \n";
            $van[20]=$display_approvals;

    }



 $display_form1 .="
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"639\" style=\"border-collapse: collapse; width: 549pt\">
	<colgroup>
		<col width=\"70\" span=\"5\" style=\"width: 52pt\">
		<col width=\"22\" style=\"width: 16pt\">
		<col width=\"70\" span=\"2\" style=\"width: 52pt\">
		<col width=\"87\" style=\"width: 65pt\">
		<col width=\"70\" span=\"2\" style=\"width: 52pt\">
	</colgroup>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td style=\"color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; vertical-align: top; white-space: nowrap; border: medium none; padding: 0px\" align=\"left\" valign=\"top\" colspan=\"7\" rowspan=\"5\">&nbsp;<p style=\"margin-top: 0; margin-bottom: 0\">
		<img border=\"0\" src=\"$loc2/admin/GoTool/forms/fill/Sany_horiz_logo.png\" width=\"230\" height=\"67\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
		<p style=\"margin-top: 0; margin-bottom: 0\"><font size=\"6\">PURCHASE ORDER</font><br>
         <div class=\"peter\">Available Purchase Requests:<br/>
        <select size=1 name=25 >
        <option value=\"$van[2]\"> $van[2]</option>
                 $display_listPR11
                  </select> </div>

        </td>
		<td width=\"70\" style=\"width: 52pt; vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid windowtext; padding: 0px; background: #C6D9F1\">
		<sup>P.O. NUMBER</sup></td>
		<td colspan=\"2\" width=\"57\" style=\"width: 117pt; color: #943634; font-size: 16.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid windowtext; border-top: .5pt solid windowtext; border-bottom: .5pt solid windowtext; padding: 0px\">
		<input type=\"text\" name=\"1\" size=\"16\" value=\"$van[1]\"></td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\" rowspan=\"2\">&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid windowtext; padding: 0px; background: #C6D9F1\">
		PR Number</td>
		<td colspan=\"2\" width=\"57\" style=\"width: 117pt; color: #943634; font-size: 16.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid windowtext; border-top: .5pt solid windowtext; border-bottom: .5pt solid windowtext; padding: 0px\">
		<input type=\"text\" name=\"2\" size=\"16\" value=\"$van[2]\"></td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid windowtext; border-right: .5pt solid windowtext; border-top: medium none; border-bottom: .5pt solid windowtext; padding: 0px; background: #C6D9F1\">
		<sup>P.O. DATE</sup></td>
		<td colspan=\"2\" width=\"57\" style=\"width: 117pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid windowtext; border-top: .5pt solid windowtext; border-bottom: .5pt solid windowtext; padding: 0px\">
		&nbsp;<input type=\"text\" name=\"3\" size=\"16\" value=\"$van[3]\"></td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid windowtext; border-right: .5pt solid windowtext; border-top: medium none; border-bottom: .5pt solid windowtext; padding: 0px; background: #C6D9F1\">
		<sup>P.O. PAGE</sup></td>
		<td colspan=\"2\" width=\"57\" style=\"width: 117pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid windowtext; border-top: .5pt solid windowtext; border-bottom: .5pt solid windowtext; padding: 0px\">
		1 of 2</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td height=\"32\" style=\"height: 24.0pt; vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"64\" style=\"height: 48.0pt\">
		<td rowspan=\"2\" height=\"128\" width=\"70\" style=\"height: 96.0pt; width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid windowtext; padding: 0px; background: #C6D9F1\">
		SUPPLIER</td>
		<td colspan=\"4\" rowspan=\"2\" width=\"180\" style=\"width: 208pt; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid windowtext; padding: 0px\">
    <textarea rows=\"4\" name=\"4\" cols=\"38\">   $van[4]    </textarea>
   </td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td rowspan=\"2\" width=\"70\" style=\"width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid windowtext; padding: 0px; background: #C6D9F1\">
		SHIP TO:</td>
		<td colspan=\"4\" rowspan=\"2\" width=\"297\" style=\"width: 221pt; color: #963634; font-weight: 700; text-align: left; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid windowtext; border-right: .5pt solid black; border-top: .5pt solid windowtext; border-bottom: .5pt solid black; padding-left: 60px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px\">

		SANY AMERICA INC.<br>
		318 Cooper Circle<br>
		Peachtree City, GA 30269<br>
		Attn: <input type=\"text\" name=\"24\" size=\"14\" value=\"$van[24]\"><br>
&nbsp;</td>
	</tr>
	<tr height=\"64\" style=\"height: 48.0pt\">
		<td height=\"64\" style=\"height: 48.0pt; vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"18\" style=\"height: 13.8pt\">
		<td height=\"18\" width=\"70\" style=\"height: 13.8pt; width: 52pt; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: medium none; padding: 0px\">
		</td>
		<td width=\"70\" style=\"width: 52pt; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"70\" style=\"width: 52pt; font-weight: 700; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"22\" style=\"width: 16pt; color: #943634; font-size: 10.0pt; font-style: italic; text-align: left; vertical-align: middle; white-space: normal; font-weight: 400; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"20\" style=\"height: 15.0pt\">
		<td height=\"20\" style=\"height: 15.0pt; vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"70\" style=\"width: 52pt; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"87\" style=\"width: 65pt; color: #943634; font-size: 10.0pt; font-style: italic; text-align: center; vertical-align: top; white-space: normal; font-weight: 400; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"70\" style=\"width: 52pt; color: #943634; font-size: 10.0pt; font-style: italic; text-align: center; vertical-align: top; white-space: normal; font-weight: 400; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"70\" style=\"width: 52pt; color: #943634; font-size: 10.0pt; font-style: italic; text-align: center; vertical-align: top; white-space: normal; font-weight: 400; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td colspan=\"2\" height=\"32\" width=\"140\" style=\"height: 24.0pt; width: 104pt; font-size: 9.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding-left: 0px; padding-right: 15px; padding-top: 0px; padding-bottom: 0px; background: #C6D9F1\">
		SUPPLIER NO.:</td>
		<td colspan=\"3\" style=\"width: 210px; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;<input type=\"text\" name=\"5\" size=\"15\" value=\"$van[5]\"></td>
		<td rowspan=\"2\" width=\"22\" style=\"width: 16pt; color: #943634; font-style: italic; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-weight: 400; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;</td>
		<td rowspan=\"6\" width=\"70\" style=\"width: 52pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid windowtext; border-top: .5pt solid windowtext; border-bottom: medium none; padding: 0px; background: #C6D9F1\">
		Bill TO:</td>
		<td colspan=\"4\" rowspan=\"6\" width=\"297\" style=\"width: 221pt; color: #963634; font-weight: 700; text-align: left; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid windowtext; border-right: .5pt solid black; border-top: .5pt solid windowtext; border-bottom: medium none; padding-left: 45px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px\">

		SANY AMERICA INC.<br>
		100 WORLD DRIVE, SUITE 218<br>
		PEACHTREE CITY, GEORGIA 30269<br>
		<br>
&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td colspan=\"2\" height=\"32\" width=\"140\" style=\"height: 24.0pt; width: 104pt; font-size: 9.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding-left: 0px; padding-right: 15px; padding-top: 0px; padding-bottom: 0px; background: #C6D9F1\">
		SHIP VIA:</td>
		<td colspan=\"3\" style=\"width: 110px; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;<input type=\"text\" name=\"6\" size=\"15\" value=\"$van[6]\"></td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td colspan=\"2\" height=\"32\" width=\"140\" style=\"height: 24.0pt; width: 104pt; font-size: 9.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding-left: 0px; padding-right: 15px; padding-top: 0px; padding-bottom: 0px; background: #C6D9F1\">
		PAYMENT TERMS:</td>
		<td colspan=\"3\" style=\"width: 110px; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		<input type=\"text\" name=\"7\" size=\"15\" value=\"$van[7]\"></td>
		<td rowspan=\"4\" width=\"22\" style=\"width: 16pt; color: #943634; font-style: italic; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-weight: 400; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;</td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td colspan=\"2\" width=\"140\" style=\"height: 16px; width: 104pt; font-size: 9.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding-left: 0px; padding-right: 15px; padding-top: 0px; padding-bottom: 0px; background: #C6D9F1\">
		ORDER TYPE :</td>
		<td colspan=\"3\" style=\"width: 110px; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding: 0px\">
		&nbsp;<input type=\"text\" name=\"8\" size=\"15\" value=\"$van[8]\"></td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td colspan=\"2\" width=\"140\" style=\"height: 16px; width: 104pt; font-size: 9.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding-left: 0px; padding-right: 15px; padding-top: 0px; padding-bottom: 0px; background: #C6D9F1\">
		F.O.B.</td>
		<td colspan=\"3\" style=\"width: 210px; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding: 0px\">
		<input type=\"text\" name=\"9\" size=\"15\" value=\"$van[9]\"></td>
	</tr>
	<tr height=\"32\" style=\"height: 24.0pt\">
		<td colspan=\"2\" width=\"140\" style=\"width: 104pt; font-size: 9.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding-left: 0px; padding-right: 15px; padding-top: 0px; padding-bottom: 0px; background: #C6D9F1\">
		SALES TAX</td>
		<td colspan=\"3\" style=\"width: 110px; color: #0D0D0D; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding: 0px\">
		<input id=\"sales_tax\" type=\"text\" name=\"10\" size=\"15\" value=\"$van[10]\"></td>
	</tr>
	<tr height=\"34\" style=\"height: 25.95pt\">
		<td colspan=\"5\" height=\"34\" width=\"180\" style=\"height: 25.95pt; width: 260pt; font-size: 10.0pt; font-weight: 700; text-align: left; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding: 0px; background: white\">
		<sup>ACCT. NO.:# </sup>
		<input type=\"text\" name=\"11\" size=\"41\" value=\"$van[11]\"></td>
		<td colspan=\"6\" width=\"180\" style=\"width: 180pt; font-weight: 700; text-align: left; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding: 0px\">
		<sup>CONFIRMED TO:&nbsp;</sup><input type=\"text\" name=\"12\" size=\"37\" value=\"$van[12]\"><sup>&nbsp;</sup></td>
	</tr>
	<tr height=\"34\" style=\"height: 25.95pt\">
		<td colspan=\"5\" height=\"34\" width=\"180\" style=\"height: 25.95pt; width: 260pt; font-size: 10.0pt; font-weight: 700; text-align: left; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: medium none; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: white\">
		<sup>&nbsp;</sup></td>
		<td colspan=\"6\" width=\"389\" style=\"width: 180pt; font-weight: 700; text-align: left; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid windowtext; padding: 0px\">
	   EMAIL:<input type=\"text\" name=\"13\" size=\"42\" value=\"$van[13]\"><sup>&nbsp;&nbsp;&nbsp;</sup></td>
	</tr>
	<tr height=\"18\" style=\"height: 13.8pt\">
		<td height=\"18\" style=\"height: 13.8pt; font-size: 10.0pt; vertical-align: middle; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">
		</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"20\" style=\"height: 15.0pt\">
		<td height=\"20\" width=\"70\" style=\"height: 15.0pt; width: 52pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>LN</sup></td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>ITEM NUMBER</sup></td>
		<td colspan=\"4\" width=\"232\" style=\"width: 172pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>DESCRIPTION</sup></td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>U/M</sup></td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>QTY</sup></td>
		<td width=\"87\" style=\"width: 65pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>DUE DATE</sup></td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>PRICE</sup></td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; font-weight: 700; text-align: center; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>TOTAL</sup></td>
	</tr>

    ";

      $sql33f ="SELECT * FROM $table_name103 WHERE map_id ='$map_id' ";

  $result33f = @mysqli_query($connection,$sql33f) or die(mysqli_error($connection));
         $nbr_ligne88 = mysqli_num_rows($result33f);
        $nbr_ligne1=$nbr_ligne88;

    $nbr_ligne=$nbr_ligne1;
    //$nbr_ligne=2;
	//        if ($nbr_ligne=$blink){
	//$nbr_ligne=0;
	//        }


     $sql33f ="SELECT * FROM $table_name103 WHERE map_id ='$map_id3' ";

  $result33f = @mysqli_query($connection,$sql33f) or die(mysqli_error($connection));
         $m = mysqli_num_rows($result33f);

   if ($m==$blink){
	$m=2;

    }

for ($i=0; $i<$m; $i++) {
$j=$i+1;

     // $pete=$tod[$i];
    // Display only the first line
    if ($nbr_ligne == 0) {
     $nbr_ligne = 1;
     }
    if ($i >= $nbr_ligne) $display = 'style="display:none"';
            //<input type=\"text\" name=\"PF$i\" size=\"16\" value=\"${PF.$i}\">
	 $prod22 .="
  <tr id=\"cell$i\" $display>
    <td height=\"26\" width=\"10\" style=\"height: 19.95pt; width: 52pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
	  <input type=\"text\" name=\"PA$i\" size=\"4\" value=\"$j\">
     <a href=\"javascript:void(0)\" onclick=\"javascript:document.getElementById('cell$j').style.display='table-row'; this.style.display='none'\">[+]</a></td>
		</td>

		<td width=\"16\" style=\"width: 16pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		 <input type=\"text\" name=\"PB$i\" size=\"16\" value=\"${PB.$i}\"> </td>
		<td colspan=\"4\" width=\"110\" style=\"width: 172pt; font-size: 10.0pt; text-align: left; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
	   <input type=\"text\" name=\"PC$i\" size=\"25\" value=\"${PC.$i}\"> </td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
	    <input type=\"text\" name=\"PD$i\" size=\"6\" value=\"${PD.$i}\"> </td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
	    <input id=\"qty-$i\" title=\"$i\" class=\"qty\" type=\"text\" name=\"PE$i\" size=\"6\" value=\"${PE.$i}\"> </td>
		<td width=\"87\" style=\"width: 65pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
	    <input type=\"text\" name=\"PF$i\" size=\"12\" value=\"${PF.$i}\"> </td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
	  <input id=\"cost-$i\" title=\"$i\" class=\"cost\" type=\"text\" name=\"PG$i\" size=\"16\" value=\"${PG.$i}\"> </td>
		<td width=\"70\" style=\"width: 52pt; font-size: 10.0pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
   <input id=\"total-$i\" title=\"$i\" type=\"text\" name=\"PH$i\" size=\"16\" value=\"${PH.$i}\">	<input id=\"old_total-$i\" type=\"hidden\" name=\"old_total[]\" value=\"\" />	
   </td>
	</tr>


 ";
}

 $display_form2 .="
                    <tr height=\"20\" style=\"height: 15.0pt\">
		<td colspan=\"8\" height=\"20\" width=\"512\" style=\"height: 15.0pt; width: 380pt; font-size: 10.0pt; font-weight: 700; text-align: left; vertical-align: top; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: .5pt solid #0D0D0D; border-bottom: medium none; padding: 0px\">
		<sup>SPECIAL INSTRUCTIONS:</sup></td>
		<td width=\"87\" style=\"width: 65pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: medium none; padding: 0px\">&nbsp;</td>
		<td width=\"70\" style=\"width: 52pt; font-size: 6.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		TOTAL:</td>
		<td style=\"font-size: 10.0pt; text-align: center; vertical-align: middle; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; white-space: nowrap; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;<input id=\"subtotal\" type=\"text\" name=\"14\" size=\"12\" value=\"$van[14]\"> </td>
	</tr>
	<tr height=\"20\" style=\"height: 15.0pt\">
		<td style=\"font-size: 10.0pt; vertical-align: top; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border-left: .5pt solid #0D0D0D; border-right: medium none; border-top: medium none; border-bottom: medium none; padding: 0px\" colspan=\"9\" rowspan=\"4\">
		<textarea rows=\"4\" name=\"23\" cols=\"78\">$van[23]</textarea></td>
		<td width=\"70\" style=\"width: 52pt; font-size: 6.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		MISC./ ADJ:</td>
		<td style=\"font-size: 10.0pt; text-align: center; vertical-align: middle; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; white-space: nowrap; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		<input id=\"misc\" type=\"text\" name=\"15\" size=\"14\" value=\"$van[15]\"></td>
	</tr>
	<tr height=\"20\" style=\"height: 15.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-size: 6.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		TAX&nbsp; 7 %</td>
		<td style=\"font-size: 10.0pt; text-align: center; vertical-align: middle; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; white-space: nowrap; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		<input id=\"tax\" type=\"text\" name=\"16\" size=\"14\" value=\"$van[16]\"></td>
	</tr>
	<tr height=\"20\" style=\"height: 15.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-size: 6.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		FREIGHT</td>
		<td style=\"font-size: 10.0pt; text-align: center; vertical-align: middle; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; white-space: nowrap; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;<input id=\"freight\" type=\"text\" name=\"17\" size=\"14\" value=\"$van[17]\"></td>
	</tr>
	<tr height=\"20\" style=\"height: 15.0pt\">
		<td width=\"70\" style=\"width: 52pt; font-size: 6.0pt; font-weight: 700; text-align: right; vertical-align: middle; white-space: normal; color: black; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border-left: .5pt solid #0D0D0D; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		P.O. TOTAL</td>
		<td style=\"font-size: 10.0pt; text-align: center; vertical-align: middle; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; white-space: nowrap; border-left: medium none; border-right: .5pt solid #0D0D0D; border-top: medium none; border-bottom: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;<input id=\"order_total\" type=\"text\" name=\"18\" size=\"14\" value=\"$van[18]\"></td>
	</tr>
	<tr height=\"18\" style=\"height: 13.8pt\">
		<td height=\"18\" style=\"height: 13.8pt; font-weight: 700; text-align: center; vertical-align: middle; color: black; font-size: 11.0pt; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; white-space: nowrap; border: medium none; padding: 0px\">
		</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
		<td style=\"vertical-align: middle; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; white-space: nowrap; border: medium none; padding: 0px\">&nbsp;</td>
	</tr>
	<tr height=\"18\" style=\"height: 13.8pt\">
		<td colspan=\"2\" height=\"36\" width=\"140\" style=\"height: 27.6pt; width: 104pt; font-size: 10.0pt; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>REQUISITIONER:</sup></td>
		<td colspan=\"2\" width=\"140\" style=\"width: 104pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding: 0px\">
		<input type=\"text\" name=\"19\" size=\"17\" value=\"$van[19]\">&nbsp;</td>
		<td width=\"70\" style=\"width: 52pt; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: medium none; padding: 0px\">&nbsp;</td>
		<td colspan=\"2\" width=\"92\" style=\"width: 68pt; font-size: 10.0pt; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>APPROVALS:</sup></td>
		<td colspan=\"4\"  rowspan=\"2\" width=\"297\" style=\"width: 221pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding: 0px\">
		&nbsp;	<textarea rows=\"4\" name=\"20\" cols=\"78\">$van[20]</textarea>
       </td>
	</tr>
	<tr height=\"18\" style=\"height: 13.8pt\">
		<td colspan=\"2\" height=\"36\" width=\"140\" style=\"height: 27.6pt; width: 104pt; font-size: 10.0pt; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>BUYER:</sup></td>
		<td colspan=\"2\" width=\"140\" style=\"width: 104pt; text-align: center; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; border: .5pt solid #0D0D0D; padding: 0px\">
		<input type=\"text\" name=\"21\" size=\"30\" value=\"$van[21]\"></td>
		<td width=\"70\" style=\"width: 52pt; vertical-align: middle; white-space: normal; color: black; font-size: 11.0pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: medium none; padding: 0px\">&nbsp;</td>
		<td colspan=\"2\" width=\"92\" style=\"width: 68pt; font-size: 10.0pt; vertical-align: middle; white-space: normal; color: black; font-weight: 400; font-style: normal; text-decoration: none; font-family: 'Century Gothic', sans-serif; text-align: general; border: .5pt solid #0D0D0D; padding: 0px; background: #C6D9F1\">
		<sup>APPROVALS:</sup></td>

	</tr>
</table>
<p>&nbsp;</p>
<table border=\"0\" width=\"700\">
	<tr>
		<td><b>1. BASIC TERMS:</b> Seller&#39;s commencement of work on the
		goods/services or shipment of the goods or commencement of services,
		whichever occurs first, shall be deemed acceptance of Sany America, Inc.
		offer to purchase contained in this purchase order. Acceptance of this
		purchase order is limited to the express terms contained herein and in
		any supplement, specifications or other document specifically referred
		to herein. Additional or different terms or terms in Seller&#39;s acceptance
		that vary in degree from the terms of this offer shall be deemed a
		material alteration of the offer contained herein and are hereby
		objected to and rejected. This offer shall be deemed accepted by the
		Seller without such terms unless such terms are in description,
		quantity, price or delivery schedule of the goods or services, in which
		case this offer shall be deemed rejected. If this purchase order is
		deemed an acceptance of a prior offer by Seller, such acceptance is
		limited to the express terms contained herein and in any supplement,
		specifications or other document specifically referred to herein.
		Additional or different terms, or terms that vary to any degree from
		any+C46 of the terms of this purchase order, are deemed material and are
		rejected. However, this purchase order shall not operate as a rejection
		of the Seller&#39;s offer unless it varies the terms of the description,
		quantity, price or delivery schedule of the goods or services.<br>
		<b>2. PRICE AND PAYMENT:</b> Seller agrees that the prices quoted in
		this purchase order are firm and shall remain firm until deliveries have
		been completed, unless otherwise agreed in writing by both parties.
		Seller warrants that the prices quoted hereunder are the lowest prices
		for which these or similar goods or services are sold by Seller to other
		purchasers, and in the event of price reduction between execution of
		this purchase order and the delivery of the goods or services, Sany
		America Inc. shall be entitled to such reduction. The payment date
		scheduled from the day the invoice is received by Sany America, Inc. for
		accepted goods or services performed. Credits due to rejections or
		discrepancies on paid invoices may be deducted by Sany America, Inc.
		from subsequent payments.<br>
		<b>3. SHIPPING INSTRUCTIONS:</b> Time is of the essence. Seller agrees
		that goods or services ordered pursuant C46 may be shipped in
		installments at such times and in such quantities as Sany America, Inc.
		shall direct. Seller will use all efforts to deliver specified goods or
		services when directed, including, without limitation, employing workers
		on an overtime basis and shipping by air freight with Seller bearing the
		additional expense in the event of a delay caused by the Seller. Seller
		shall promptly notify Sany America, Inc. if delivery cannot be made as
		scheduled. Sany America, Inc. may refuse delivery of goods or services
		made in advance of the scheduled delivery or in excess of the scheduled
		quantities and may return to Seller or hold such goods or services, as
		Sany America, Inc. at its discretion may determine at Seller&#39;s expense.<br>
		<b>4. WARRANTY: </b>Seller warrants that all goods and/or services
		delivered hereunder (1) are merchantable and free from defects and
		workmanship; (2) are fit for the particular purpose intended by Sany
		America, Inc. as such purpose is known to Seller; and (3) c+A42onform to
		the applicable specifications, drawings, samples, or other description
		referenced in this purchase order. Seller has good title to the goods
		and services and will convey such good title to Sany Americ+C46a, Inc..
		Seller agrees to hold Sany America, Inc. harmless from any claim of
		patent infringement or similar proceedings based on goods and or
		services sold by Seller hereunder and defend any such claims at its own
		expense.<br>
		<b>5. INSPECTION: </b>Payment for goods shall not constitute acceptance
		thereof. Sany America, Inc. shall have the right to A42inspect all goods
		and/or services and to reject any or all goods that are defective or
		non-conforming. Goods and/or services rejected may be returned to Seller
		at its expense and Sany America, Inc. may charge Seller all expenses of
		unpacking, examining, repacking, expense to production, and reshipping
		such goods and/or services. If Sany America, Inc. received goods and/or
		services with a defect or non-conformity that is not apparent on
		examination, Sany America, Inc. may require replacement of such goods
		and/or services, as well as payment of damages. Nothing contained in
		this purchase order shall relieve in any way Seller from its obligation
		of testing, inspection and quality control. Inspection or testing of, or
		failure to inspect or test, the goods and/or services by Sany America,
		Inc. shall not affect Seller&#39;s warranty or Sany America, Inc. rights
		hereunder.<br>
		<b>6. CONFIDENTIAL INFORMATION: </b>Without prior written consent of
		Sany America, Inc., Seller shall neither disclose to any person its
		employment, nor use for purposes other than performance of this purchase
		order, any information or equipment received from Sany America, Inc. or
		developed by Seller at Sany America, Inc. expense pursuant to this
		purchase order, including, but not limited to, tools, fixtures,
		drawings, blueprints, descriptions, or specifications. Upon termination
		or expiration of this purchase order, Seller, at Sany America, Inc.
		request, shall return to Sany America, Inc. all such material delivered
		to Seller or produced by Seller at Sany America, Inc. expense.<br>
		<b>7. CHANGES: </b>Sany America, Inc. shall have the right to make
		changes at any time in this purchase order, including, without
		limitation scheduled delivery times, and Seller agrees to accept such
		changes. If such changes result in additional costs, Sany America shall
		make an equitable adjustment in the purchase price, provided such
		additional costs are itemized in writing by Seller within thirty (30)
		days of change.<br>
		<b>8. TERMINATION:</b> Sany America, Inc. shall have the right to
		terminate this purchase order at any time for its convenience. In such
		event, Seller shall immediately stop all deliveries of goods and/or
		services and observe any instructions from Sany America, Inc. as to the
		goods and/or services being produced to Sany America, Inc.
		specifications. Seller shall be paid an equitable adjustment for work
		already performed with respect to goods and/or services already
		performed with respect to goods and/or services produced to Sany
		America, Inc. specifications. Sany America, Inc. may terminate this
		purchase order for cause in the event of a default or breach by Seller.
		In such event, Sany America, Inc. shall not be liable to Seller for any
		amounts, and Seller shall be liable for, and shall hold Sany America,
		Inc. harmless from, any damages occasioned by Seller&#39;s breach or
		default. If it should be determined that Sany America, Inc. has
		improperly terminated this purchase order for default or breach, such
		termination shall be deemed to be for Sany America&#39;s convenience.<br>
		<b>9. GOVERNING LAW:</b> Seller shall comply with all applicable
		federal, state and local laws, rules and regulations. The agreement
		arising pursuant to this purchase order shall be governed under the laws
		of the state of Georgia.<br>
		<b>10. FAILURE TO ENFORCE:</b> Failure to enforce remedies for specific
		breaches of terms and conditions herein shall not operate to waive the
		right to enforce provisions in the future.<br>
&nbsp;</td>
	</tr>
</table>
<script type=\"text/javascript\">
	$(document).ready(function() {
		$('.qty').live('blur', function() {	
			var row = $(this).attr('title');
			if ($('#cost-' + row).val() != '') {
				if ($('#old_total-' + row).val() != '') {
					var subtract_sub = parseFloat($('#old_total-' + row).val());
				} else {
					var subtract_sub = 0;
				}
				var cost = parseFloat($('#cost-' + row).val());
				var qty = parseInt($(this).val());
				var this_sub = cost * qty;
				if ($('#subtotal').val() != '') {
					var old_sub = $('#subtotal').val();
					var new_sub = parseFloat(this_sub) + parseFloat(old_sub) - parseFloat(subtract_sub);
				} else {
					var new_sub = parseFloat(this_sub) - parseFloat(subtract_sub);
				}
				$('#subtotal').val(new_sub.toFixed(2));
				if ($('#order_total').val() != '') {
					var old_total = $('#order_total').val();
					var new_total = parseFloat(this_sub) + parseFloat(old_total) - parseFloat(subtract_sub);
				} else {
					var new_total = parseFloat(this_sub) - parseFloat(subtract_sub);
				}
				$('#order_total').val(new_total.toFixed(2));
				$('#old_total-' + row).val(this_sub.toFixed(2));
			}
		});
		$('.qty').live('keyup', function() {
			var row = $(this).attr('title');
			if ($('#cost-' + row).val() != '') {
				var total = $(this).val() * $('#cost-' + row).val();
				$('#total-' + row).val(total.toFixed(2));
			}
		});	
		$('.cost').live('blur', function() {
			var row = $(this).attr('title');
			if ($('#qty-' + row).val() != '') {	
				if ($('#old_total-' + row).val() != '') {
					var subtract_sub = parseFloat($('#old_total-' + row).val());
				} else {
					var subtract_sub = 0;
				}
				var cost = parseFloat($(this).val());
				var qty = parseInt($('#qty-' + row).val());
				var this_sub = cost * qty;
				if ($('#subtotal').val() != '') {
					var old_sub = $('#subtotal').val();
					var new_sub = parseFloat(this_sub) + parseFloat(old_sub) - parseFloat(subtract_sub);
				} else {
					var new_sub = parseFloat(this_sub) - parseFloat(subtract_sub);
				}
				$('#subtotal').val(new_sub.toFixed(2));
				if ($('#order_total').val() != '') {
					var old_total = $('#order_total').val();
					var new_total = parseFloat(this_sub) + parseFloat(old_total) - parseFloat(subtract_sub);
				} else {
					var new_total = parseFloat(this_sub) - parseFloat(subtract_sub);
				}	
				$('#order_total').val(new_total.toFixed(2));
				$('#old_total-' + row).val(this_sub.toFixed(2));
			}
			var new_cost = parseFloat($(this).val());
			$(this).val(new_cost.toFixed(2));
		});	
		$('.cost').live('keyup', function() {
			var row = $(this).attr('title');
			if ($('#qty-' + row).val() != '') {
				var total = $(this).val() * $('#qty-' + row).val();
				$('#total-' + row).val(total.toFixed(2));
			}
		});	
		$('#misc').live('blur', function() {
			var total = parseFloat($('#subtotal').val());
			var misc = parseFloat($('#misc').val());
			if ($('#tax').val() != '') {
				var tax = parseFloat($('#tax').val());
			} else {
				var tax = 0;
			}
			if ($('#freight').val() != '') {
				var freight = parseFloat($('#freight').val());
			} else {
				var freight = 0;
			}
			var new_total = total + misc + tax + freight;
			$('#order_total').val(new_total.toFixed(2));
			$('#misc').val(misc.toFixed(2));
		});
		$('#tax').live('blur', function() {	
			var total = parseFloat($('#subtotal').val());
			var tax = parseFloat($('#tax').val());
			if ($('#misc').val() != '') {
				var misc = parseFloat($('#misc').val());
			} else {
				var misc = 0;
			}
			if ($('#freight').val() != '') {
				var freight = parseFloat($('#freight').val());
			} else {
				var freight = 0;
			}
			var new_total = total + misc + tax + freight;
			$('#order_total').val(new_total.toFixed(2));
			$('#tax').val(tax.toFixed(2));
		});
		$('#freight').live('blur', function() {
			var total = parseFloat($('#subtotal').val());
			var freight = parseFloat($('#freight').val());
			if ($('#tax').val() != '') {
				var tax = parseFloat($('#tax').val());
			} else {
				var tax = 0;
			}
			if ($('#misc').val() != '') {
				var misc = parseFloat($('#misc').val());
			} else {
				var misc = 0;
			}
			var new_total = total + misc + tax + freight;
			$('#order_total').val(new_total.toFixed(2));
			$('#freight').val(freight.toFixed(2));
		});
	});
</script>";
?>
