<Form name = "formAddDropOrder" action = "dropshipping.html? Type = 2 "method =" post ">
<Table width = "760" cellspacing = "0" cellpadding = "0" border = "0">
<Tbody> <tr>
<Td height = "30"> <B> Please enter the SKU code and quantity of products: </B> </td>
</Tr>
<Tr>
<Td height = "30"> <div id = "divAddProductPanel"> SKU: <input type = "text" size = "20" class = "inputSKUs"/> Quantity: <input type = "text" value = "1" size = "10" class = "inputQuantities"/>
<A class = "ifttop" href = "#" onclick = "addProductPanel (); "> </a> </div> <span id =" MyFile "/> <input type = "hidden" name = "array_skus" id = "array_skus" value = ""/> <input type = "hidden" id = "array_quantities" name = "array_quantities" value = ""/> </td>
</Tr>
<Tr>
<Td height = "30" align = "right"> </td>
</Tr>
</Tbody> </table>
</Form>
<Script type = "text/javascript">
<! --
Function addProductPanel (){
Var divCount = $ ("# divAddProductPanel div"). length;
$ ("# DivAddProductPanel"). append ("<div id = \" divNum"
+ DivCount + "\"> <label> SKU: </label> <input type = \ "text \" size = \ "20 \" class = \ "inputSKUs \"/>"
+ "<Label> Quantity: </label> <input type = \ "text \" size = \ "10 \" class = \ "inputQuantities \" value = \ "1 \""
+ "Style = \" background-color: rgb (255,255,255); \ "/>"
+ "<Label style = \" cursor: pointer; \ "onclick = 'removeproductpanel (\" divNum "+ divCount + "\") '> </label> </div> ");
}
Function removeProductPanel (addProductPanelId ){
// Debugger;
$ ("#" + AddProductPanelId). remove ();
}
Function goAutoPay (){
OpenWindow ("http://www.focalprice.com/myhome/autopay.aspx? N= "+ $ (" # AAutoPay "). attr (" onum "));
}
Function addDropOrder (){
Var skus = "";
Var skuArray = new Array ();
SkuArray = $ (". inputSKUs ");
For (var I = 0; I <skuArray. length; I ++ ){
If ($ (skuArray). Val (). length = 0 ){
Alert ("The SKU is required .");
Return 0;
}
Else {
If (skus! = ""){
Skus + = ",";
}
Skus + = $ (skuArray). Val ();
}
}
$ ("# Array_skus"). val (skus );
// Alert ($ ("# array_skus"). val ());
Var quantities = "";
Var quantityArray = new Array ();
QuantityArray = $ (". inputQuantities ");
For (var I = 0; I <quantityArray. length; I ++ ){
If ($ (quantityArray). Val (). length = 0 ){
Alert ("The Quantity is incorrect .");
Return 0;
}
Else {
If (quantities! = ""){
Quantities + = ",";
}
Quantities + = $ (quantityArray). Val ();
}
}
$ ("# Array_quantities"). val (quantities );
// Alert ($ ("# array_quantities"). val ());
FormAddDropOrder. submit ();
}
-->
</Script>