use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<!-- SHIPPING METHODS CODE STARTS HERE-->\n<div id=\"DivShippingMethods\"></div>\n<script>\nfunction refreshDivShippingMethods()\n{\n	var qs = \'order_id=$C->{Order}{ID}&mode=$C->{ShippingMethodsMode}\';\n	\n	var forms = document.forms;\n	for (var i = 0; i < forms.length; i++)\n	{\n		var form = forms[i];\n		for (var j = 0; j < form.elements.length; j++)\n		{\n			var elm = form.elements[j];\n			if (elm.name.indexOf(\'user_\') == 0 || elm.name.indexOf(\'shipping_\') == 0)\n			{\n				if (elm.type == \"select-one\")\n					qs += \'&\' + elm.name + \'=\' + escape(elm.options[elm.selectedIndex].value);\n				else if (elm.type == \"text\")\n					qs += \'&\' + elm.name + \'=\' + escape(elm.value);\n			}\n		}\n	}\n	\n	ajax_loadContent(\'DivShippingMethods\', \'$C->{SYS}{URI}/order/process_shipping_methods_ajax.html?\' + qs);\n}\nrefreshDivShippingMethods();\n</script>\n<!-- SHIPPING METHODS CODE ENDS HERE-->\n");}