(function(a){jOrderStatus=function(){var c='<div id="order_status_dialog" class="ui-widget" style="display: none;"><div class="ui-state-highlight ui-corner-all"><div id="xxx" style="float: inherit; margin-left: 25px;"></div><table style="padding: 10px;"><tr><td align="left" width="250">Enter Order #:<input type="text" id="cart_id" size="10"><br /><br />Enter last name in shipping address: <br /><input type="text" id="last_name" size="25"><br /><br />Or ZIP Code:<input type="text" id="zip_code" size="10"></td><td><img src="/_img/clear.gif" width="25" height="1" alt="" /></td><td align="center" valign="top"><table style="border: 2px solid #fff; padding: 5px;"><tr><td align="left"><div id="_os_message"></div></td></tr></table></td></tr></table></div></div>';var b='<strong>PLEASE ENTER:</strong><br /><ol style="margin-left: 20px;"><li>Order Number</li><li>Last Name in the shipping address</li><div align="center"><strong>OR</strong><br />The shipping address Zip Code.</div></ol><br /><br />Then click the <strong>&quot;Check Status&quot;</strong>button.';if(!a("#order_status_dialog").length){a("body").append(c);a("#order_status_dialog").dialog({autoOpen:false})}a("#order_status_dialog").dialog("option",{modal:false,title:"Order Status",width:600,buttons:{"Check Status":function(){var d={cart_id:a("#cart_id").val(),last_name:a("#last_name").val(),zip_code:a("#zip_code").val()};if(!d.cart_id||!(d.last_name||d.zip_code)){a("#_os_message").html("Please provide an order number and either the zipcode or last name from the order's shipping address.");return}a("body").css("cursor","wait");a.ajax({url:"/ecom/order_status_json.pl",type:"POST",data:({args:a.toJSON(d)}),dataType:"json",success:function(e){a("body").css("cursor","auto");a("#_os_message").html(e.Result)},error:function(e){a("body").css("cursor","auto");a("#_os_message").html("Could not process your request")}})},Close:function(){a("#order_status_dialog").dialog("close")}}});a("#cart_id").val("");a("#last_name").val("");a("#zip_code").val("");a("#_os_message").html(b);a("#order_status_dialog").dialog("open")}})(jQuery);
