Fleurop._DeliveryAddress=function(){this.ShowAddressIncompleteWarning=function(h,g){c(h,g)};this.OpenDeliveryRegionsPopUp=function(g){e(g)};this.GetAutoCompleteAdditionalData=function(){return a()};this.OpenAddressbookListPopup=function(){d()};this.ClearTheContact=function(){b()};this.GetPostalCityLookupValue=function(){return f()};function c(k,h){var i=document.getElementById(h);var j=/\b([0-9]{1,7})\b/g;if(k&&k.length>0){var g=k.match(j);if(!g){i.style.cssText="display: table-row;"}else{i.style.cssText="display: none;"}}}function e(k){var i=document.getElementById("ihCountryID");var g=i.value;if(cityCodeSeparated=="False"){var m=document.getElementById(AddressManager_CityID);var n=m.value;if(k!=null&&k!=undefined){n=$("input[id$='"+k+"']").val()}var l=document.getElementById("ihProductID").value;var h=document.getElementById("ihLanguage").value;var o=n.lastIndexOf("-");if(o>=0){n=n.substring(0,o)}openPopupWindow("DeliveryRegionsPopUp.aspx?country="+escape(g)+"&citystart="+escape(n)+"&mode=1&productID="+l+"&lang="+h,600,400,", menubar=no, top=0, left=0, status=no, location=no, toolbar=no, scrollbars=no, resizable=no")}else{var l=document.getElementById("ihProductID").value;var h=document.getElementById("ihLanguage").value;var j=document.getElementById(AddressManager_PostcodeID).value;var n=document.getElementById(AddressManager_CityID).value;openPopupWindow("DeliveryRegionsPopUp.aspx?country="+escape(g)+"&citystart="+escape(n)+"&zipcode="+escape(j)+"&mode=0&lang="+h,600,400,", menubar=no, top=0, left=0, status=no, location=no, toolbar=no, scrollbars=no, resizable=no")}}function a(){var g;ihProductID=document.getElementById("ihProductID");ihLanguage=document.getElementById("ihLanguage");g=ihProductID.value+"&"+ihLanguage.value;ihCountry=document.getElementById("ihContactCountryID");if(ihCountry){g=g+"&"+ihCountry.value}return g}function d(){var g=0;if(cityCodeSeparated=="True"){g=1}openPopupWindow("/Popups/AddressbookListPopup.aspx?country="+deliveryProductCountry+"&clid="+webSessionClientID+"&mode="+g,600,400,", menubar=no, top=0, left=0, status=no, location=no, toolbar=no, scrollbars=no, resizable=no")}function b(){var o=document.getElementById(ddlShip_to_genderID);if(o!=null&&o.options.length>0){o.options[0].selected=true;o.onchange()}var r=document.getElementById(ddlLocationTypesClientID);if(r!=null&&r.options.length>0){r.options[0].selected=true}var k=document.getElementById(nextFieldIDAfterGender);if(k!=null){k.value=""}var m=document.getElementById(letbNameClientID);if(m!=null){m.value=""}var l=document.getElementById(letbCareOfClientID);if(l!=null){l.value=""}var s=document.getElementById(letbCompanyClientID);if(s!=null){s.value=""}var j=document.getElementById(AddressManager_StreetID);if(j!=null){j.value=""}var h=document.getElementById(letbEmailClientID);if(h!=null){h.value=""}var g=document.getElementById(letbPhoneClientID);if(g!=null){g.value=""}var q=document.getElementById(letbPhoneAlternateClientID);if(q!=null){q.value=""}if(cityCodeSeparated=="True"){var i=document.getElementById(AddressManager_PostcodeID);if(i!=null){i.value=""}var n=document.getElementById(AddressManager_CityID);if(n!=null){n.value=""}}else{var p=document.getElementById(AddressManager_CityID);if(p!=null){p.value=""}}}function f(){var g=document.getElementById(AddressManager_CityID);if(g!=null){return g.value}else{return""}}};
