function Runtime_AttributeAndOptionList_Load_Product(t,e){return AJAX_Call(e,"runtime","Runtime_AttributeAndOptionList_Load_Product","Product_Code="+encodeURIComponent(t))}function Runtime_AttributeList_Load_ProductVariant_Possible(t,e,n,i,_,r,d,a,o,u,s,c){return AJAX_Call(c,"runtime","Runtime_AttributeList_Load_ProductVariant_Possible","Product_Code="+encodeURIComponent(t)+"&Dependency_Resolution="+encodeURIComponent(e)+"&Last_Selected_Attribute_ID="+encodeURIComponent(n)+"&Last_Selected_AttributeTemplateAttribute_ID="+encodeURIComponent(i)+"&Last_Selected_Option_ID="+encodeURIComponent(_)+"&Selected_Attribute_IDs="+EncodeArray(r)+"&Selected_AttributeTemplateAttribute_IDs="+EncodeArray(d)+"&Selected_Option_IDs="+EncodeArray(a)+"&Selected_Attribute_Types="+EncodeArray(o)+"&Unselected_Attribute_IDs="+EncodeArray(u)+"&Unselected_AttributeTemplateAttribute_IDs="+EncodeArray(s))}function Runtime_AttributeList_Load_ProductVariant_Possible_PredictDiscounts(t,e,n,i,_,r,d,a,o,u,s,c){var l=new Object;return l.product_code=t,l.dependency_resolution=e,l.predictdiscounts=0,l.last_selected_attr_id=n,l.last_selected_attmpat_id=i,l.last_selected_option_id=_,l.selected_term_id=0,l.selected_attr_ids=r,l.selected_attmpat_ids=d,l.selected_option_ids=a,l.selected_attr_types=o,l.unselected_attr_ids=u,l.unselected_attmpat_ids=s,v96_Runtime_AttributeList_Load_ProductVariant_Possible_PredictDiscounts(l,c)}function v96_Runtime_AttributeList_Load_ProductVariant_Possible_PredictDiscounts(t,e){return AJAX_Call(e,"runtime","Runtime_AttributeList_Load_ProductVariant_Possible","Product_Code="+encodeURIComponent(t.product_code)+"&Dependency_Resolution="+encodeURIComponent(t.dependency_resolution)+"&Predict_Discounts="+(t.predictdiscounts?"1":"0")+"&Calculate_Sale_Price="+(t.calculate_sale_price?"1":"0")+"&Last_Selected_Attribute_ID="+encodeURIComponent(t.last_selected_attr_id)+"&Last_Selected_AttributeTemplateAttribute_ID="+encodeURIComponent(t.last_selected_attmpat_id)+"&Last_Selected_Option_ID="+encodeURIComponent(t.last_selected_option_id)+"&Selected_Term_ID="+encodeURIComponent(t.selected_term_id)+"&Selected_Attribute_IDs="+EncodeArray(t.selected_attr_ids)+"&Selected_AttributeTemplateAttribute_IDs="+EncodeArray(t.selected_attmpat_ids)+"&Selected_Option_IDs="+EncodeArray(t.selected_option_ids)+"&Selected_Attribute_Types="+EncodeArray(t.selected_attr_types)+"&Unselected_Attribute_IDs="+EncodeArray(t.unselected_attr_ids)+"&Unselected_AttributeTemplateAttribute_IDs="+EncodeArray(t.unselected_attmpat_ids))}function Runtime_ProductVariant_Load_Attributes(t,e,n,i,_){return AJAX_Call(_,"runtime","Runtime_ProductVariant_Load_Attributes","Product_Code="+encodeURIComponent(t)+"&Attribute_IDs="+EncodeArray(e)+"&AttributeTemplateAttribute_IDs="+EncodeArray(n)+"&Option_IDs="+EncodeArray(i))}function Runtime_ProductImageList_Load_Product_Variant(t,e,n,i){return AJAX_Call(i,"runtime","Runtime_ProductImageList_Load_Product_Variant","Product_Code="+encodeURIComponent(t)+"&Variant_ID="+encodeURIComponent(e)+"&Image_Sizes="+EncodeArray(n))}function Runtime_BasketItem_Update(t,e,n,i){return AJAX_Call_JSON(n,"runtime","Runtime_BasketItem_Update",{Line_ID:t,Quantity:e.quantity,Subscription_Term_ID:e.subterm_id,Attributes:e.attributes},i)}function Runtime_BasketGroup_Update(t,e,n,i){return AJAX_Call_JSON(n,"runtime","Runtime_BasketItem_Update",{Group_ID:t,Quantity:e.quantity,Subscription_Term_ID:e.subterm_id,Attributes:e.attributes},i)}function Runtime_BasketItem_Delete(t,e,n){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItem_Delete",{Line_ID:t},n)}function Runtime_BasketGroup_Delete(t,e,n){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItem_Delete",{Group_ID:t},n)}function Runtime_ShippingMethodList_Load(t,e){return AJAX_Call_JSON(t,"runtime","Runtime_ShippingMethodList_Load",null,e)}function Runtime_PaymentMethodList_Load(t,e){return AJAX_Call_JSON(t,"runtime","Runtime_PaymentMethodList_Load",null,e)}function Runtime_CalculateCharges(t,e,n,i){return AJAX_Call_JSON(n,"runtime","Runtime_CalculateCharges",{ShippingMethod:t,PaymentMethod:e},i)}function Runtime_ValidateAddress(t,e,n){return AJAX_Call_JSON(e,"runtime","Runtime_ValidateAddress",{Company:t.comp,Address1:t.addr1,Address2:t.addr2,City:t.city,State:t.state,Zip:t.zip,Country:t.country,Residential:t.resdntl},n)}function Runtime_InitiateCheckout(t,e){return AJAX_Call_JSON(t,"runtime","Runtime_InitiateCheckout",null,e)}function Runtime_UpdateShipping(t,e,n){return AJAX_Call_JSON(e,"runtime","Runtime_UpdateShipping",{FirstName:t.fname,LastName:t.lname,Email:t.email,Phone:t.phone,Fax:t.fax,Company:t.comp,Address1:t.addr1,Address2:t.addr2,City:t.city,State:t.state,Zip:t.zip,Country:t.country,Residential:t.resdntl,Update_Customer:t.update_customer},n)}function Runtime_UpdateBilling(t,e,n){return AJAX_Call_JSON(e,"runtime","Runtime_UpdateBilling",{FirstName:t.fname,LastName:t.lname,Email:t.email,Phone:t.phone,Fax:t.fax,Company:t.comp,Address1:t.addr1,Address2:t.addr2,City:t.city,State:t.state,Zip:t.zip,Country:t.country,Residential:t.resdntl,Update_Customer:t.update_customer},n)}