var GLOBAL_CURRENT_URL=document["location"]["href"];try{var TempDocUrlArray=GLOBAL_CURRENT_URL["split"]("/");var GLOBAL_CURRENT_PAGE=TempDocUrlArray[(TempDocUrlArray["length"]-1)];} catch(err){var GLOBAL_CURRENT_PAGE="";} ;var DEFAULT_MAIL_TIMES_BY_PRICE=parseFloat("1.00");var DEFAULT_SMS_TIMES_BY_PRICE=parseFloat("1.00");var DEFAULT_FAX_TIMES_BY_PRICE=parseFloat("1.00");function GoTo(RequestPage){window["location"]=GetKeywords(RequestPage);} ;function GetKeywords(RequestPage){o_keywords= new ObjAdKeywords();var AdKeywordArr=o_keywords.GetAdKeywords();var rnum01=Math["floor"](Math["random"]()*AdKeywordArr["length"]);var rnum02=Math["floor"](Math["random"]()*AdKeywordArr["length"]);if(RequestPage["indexOf"]("?")>-1){RequestPage+="\x26";} else {RequestPage+="?";} ;RequestPage+="uid="+RandomNumber(4);return RequestPage;} ;function UnloadTasks(){try{var LeavingByAdsense=document["getElementById"]("LeavingByAdsense")["value"];if(parseInt(LeavingByAdsense)>0){var sid=document["getElementById"]("sid")["value"];GetPageV2("http://www.themailmonster.com/u.logout.jsp?sid="+sid);} ;} catch(err){} ;} ;function SetAdsenseFlag(val){document["getElementById"]("LeavingByAdsense")["value"]=val;} ;function GetPage(AjaxRequestPage){var xmlHttp;try{xmlHttp= new XMLHttpRequest();} catch(e){try{xmlHttp= new ActiveXObject("Msxml2.XMLHTTP");} catch(e){try{xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");} catch(e){alert("Your browser does not support AJAX!");return false;} ;} ;} ;xmlHttp["onreadystatechange"]=function (){if(xmlHttp["readyState"]==4){document["getElementById"]("PageContainer")["innerHTML"]=xmlHttp["responseText"];} ;} ;xmlHttp["open"]("GET",AjaxRequestPage,true);xmlHttp["send"](null);} ;function GetPageV2(AjaxRequestPage){var xmlHttp;var dummy;try{xmlHttp= new XMLHttpRequest();} catch(e){try{xmlHttp= new ActiveXObject("Msxml2.XMLHTTP");} catch(e){try{xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");} catch(e){alert("Your browser does not support AJAX!");return false;} ;} ;} ;xmlHttp["onreadystatechange"]=function (){if(xmlHttp["readyState"]==4){dummy=xmlHttp["responseText"];} ;} ;xmlHttp["open"]("GET",AjaxRequestPage,true);xmlHttp["send"](null);} ;function PerformEndOfPageScripts(){try{var AddressHeadingType="Letter";if(GLOBAL_CURRENT_PAGE["indexOf"]("postcard.jsp")>-1){document["getElementById"]("TopMenuItem2")["style"]["backgroundColor"]="757575";document["getElementById"]("InptMessageCharLimit")["value"]=400;AddressHeadingType="Postcard";ChangeMailItemPrice();} else {if(GLOBAL_CURRENT_PAGE["indexOf"]("magazine.jsp")>-1){document["getElementById"]("TopMenuItem3")["style"]["backgroundColor"]="757575";document["getElementById"]("InptMessageCharLimit")["value"]=1000;AddressHeadingType="Magazine";ChangeMailItemPrice();} else {if(GLOBAL_CURRENT_PAGE["indexOf"]("sms.jsp")>-1){document["getElementById"]("TopMenuItem4")["style"]["backgroundColor"]="757575";ChangeSmsItemPrice();} else {if(GLOBAL_CURRENT_PAGE["indexOf"]("productlist.jsp")>-1){document["getElementById"]("TopMenuItem5")["style"]["backgroundColor"]="757575";ChangeFaxItemPrice();} else {if(GLOBAL_CURRENT_PAGE["indexOf"]("blog.jsp")>-1){document["getElementById"]("TopMenuItem6")["style"]["backgroundColor"]="757575";} else {if(GLOBAL_CURRENT_PAGE["indexOf"]("fax.jsp")>-1){document["getElementById"]("TopMenuItem1")["style"]["backgroundColor"]="757575";ChangeFaxItemPrice();} else {document["getElementById"]("TopMenuItem1")["style"]["backgroundColor"]="757575";ChangeMailItemPrice();} ;} ;} ;} ;} ;} ;} catch(err){} ;} ;function ChangeSmsItemPrice(){var NoSmsSent=document["getElementById"]("SmsSentByThisUser")["value"];var UserId=document["getElementById"]("UserId")["value"];var MaxSmsLimit=0;var NotSignedInSmsLimit=1;var SignedInSmsLimit=3;if(UserId!=""){MaxSmsLimit=SignedInSmsLimit;} else {MaxSmsLimit=NotSignedInSmsLimit;} ;var ExceededMaxLetterInfo=".";if(NoSmsSent>=MaxSmsLimit){MailItemPrice=12;if(UserId!=""){ExceededMaxLetterInfo=" because you have exceeded the Daily Free SMS Limit of "+SignedInSmsLimit+".";} else {ExceededMaxLetterInfo=" because you have exceeded the Daily Free SMS Limit of "+NotSignedInSmsLimit+". If you \x3CA STYLE=\x27color:#0000FF\x27 HREF=\x22javascript:GoTo(\x27logon.jsp\x27)\x22\x3E\x3CB\x3ESign In\x3C/B\x3E\x3C/A\x3E this limit will increase to "+SignedInSmsLimit+" Free SMS\x27s per day.";} ;} else {var TotalSmsCount=document["getElementById"]("TotalSmsCount")["value"];var MaxSmsCount=document["getElementById"]("MaxSmsCount")["value"];if(parseInt(TotalSmsCount)>parseInt(MaxSmsCount)){MailItemPrice=12;ExceededMaxLetterInfo=" ] \x3CBR\x3E\x3CBR\x3E[ Maximum number of Free SMS\x27s has been reached for today. We hope to increase this limit of "+MaxSmsCount+", but we need your help. It would be great if you could recommend this site to businesses who may want to advertise here. Doing this will ensure that this service will continue to be Free. Thank you.";} else {MailItemPrice=0;} ;} ;MailItemPrice=parseInt(MailItemPrice)*DEFAULT_SMS_TIMES_BY_PRICE;MailItemPrice=parseInt(MailItemPrice);var PricingInfo="";if(MailItemPrice>0){PricingInfo+="  [ To send a SMS it will  cost $"+FormatPrice(MailItemPrice)+" USD"+ExceededMaxLetterInfo+" ]";document["getElementById"]("SmsMsg")["maxLength"]=160;document["getElementById"]("SmsMaxCharText")["innerHTML"]="(max 160 characters)";} ;SpecialSmsOverrideRules();PricingInfo+="";var HeadingInfo="\x3CB\x3ESend a Text Message "+"\x3C/B\x3E \x3CSPAN class=\x27AddrHeadingInstruct\x27\x3E"+PricingInfo+"\x3C/SPAN\x3E";document["getElementById"]("MailItemPrice")["value"]=MailItemPrice;document["getElementById"]("AddressHeading")["innerHTML"]=HeadingInfo;} ;function ChangeFaxItemPrice(){var FileData=document["getElementById"]("FaxFileId")["value"];var FileDataArr=FileData["split"](";");var UserFileId=FileDataArr[0];var PdfPageCount=FileDataArr[1];var PricePerPage=35;var PricingInfo="";var MailItemPrice=parseInt(PdfPageCount)*PricePerPage;MailItemPrice=parseInt(MailItemPrice)*DEFAULT_FAX_TIMES_BY_PRICE;MailItemPrice=parseInt(MailItemPrice);SpecialFaxOverrideRules();PricingInfo+="  [ To send this Fax it will  cost $"+FormatPrice(MailItemPrice)+" USD"+". ]";var HeadingInfo="\x3CB\x3ESend a Fax "+"\x3C/B\x3E \x3CSPAN class=\x27AddrHeadingInstruct\x27\x3E"+PricingInfo+"\x3C/SPAN\x3E";document["getElementById"]("MailItemPrice")["value"]=MailItemPrice;document["getElementById"]("AddressHeading")["innerHTML"]=HeadingInfo;} ;function ChangeMailItemPrice(){var CountryVal=document["getElementById"]("RecipCountryCode")["value"];var CountryArr=CountryVal["split"](",");var CountryCode=CountryArr[1];var CountryLiteral=CountryArr[2]["replace"](/_/g," ");var NoLettersSent=document["getElementById"]("LettersSentByThisUser")["value"];var MaxLetterLimit=3;var ExceededMaxLetterInfo=".";var AddressHeadingType="Letter";document["getElementById"]("InptMessageCharLimit")["value"]=6000;document["getElementById"]("DeliverCompanyName")["value"]=CountryArr[3];MailItemPrice=CountryArr[4];try{if(document["getElementById"]("PrintInFullColor")["checked"]){MailItemPrice=parseInt(MailItemPrice)+20;} ;} catch(err){} ;ExceededMaxLetterInfo=".";if(GLOBAL_CURRENT_URL["indexOf"]("postcard.jsp")>-1){document["getElementById"]("DeliverCompanyName")["value"]="PM";document["getElementById"]("InptMessageCharLimit")["value"]=380;AddressHeadingType="Postcard";MailItemPrice=parseInt(MailItemPrice)+180;} else {if(GLOBAL_CURRENT_URL["indexOf"]("magazine.jsp")>-1){document["getElementById"]("DeliverCompanyName")["value"]="PM";document["getElementById"]("InptMessageCharLimit")["value"]=500;AddressHeadingType="Personalized Magazine";} else {var BrailleLetterPrice=780;if(document["getElementById"]("LetterInBraille")["checked"]){MailItemPrice=parseInt(MailItemPrice)+BrailleLetterPrice;document["getElementById"]("LetterLogoImageId")["value"]="79001";} ;o_ctnry= new ObjCountriesExtDelivery();if(o_ctnry.CheckCountry(CountryCode)==""){document["getElementById"]("LetterInBraille")["checked"]=false;document["getElementById"]("LetterInBraille")["disabled"]=true;} else {document["getElementById"]("LetterInBraille")["disabled"]=false;} ;try{if(document["getElementById"]("LetterInBraille")["checked"]){document["getElementById"]("PrintInFullColor")["disabled"]=true;document["getElementById"]("UseOwnLogoInd")["disabled"]=true;document["getElementById"]("AttachFileInd")["disabled"]=true;} ;if(document["getElementById"]("UseOwnLogoInd")["checked"]==true||document["getElementById"]("AttachFileInd")["checked"]==true){document["getElementById"]("LetterInBraille")["disabled"]=true;} ;var FileData=document["getElementById"]("LetterAttachDocId")["value"];var FileDataArr=FileData["split"](";");var PricePerPage=35;var PriceOfAttachment=0;var UserFileId=FileDataArr[0];var PdfPageCount=FileDataArr[1];if(PdfPageCount>0){PriceOfAttachment=parseInt(PdfPageCount)*PricePerPage;MailItemPrice=parseInt(MailItemPrice)+parseInt(PriceOfAttachment);} ;} catch(err){} ;} ;} ;MailItemPrice=parseInt(MailItemPrice)*DEFAULT_MAIL_TIMES_BY_PRICE;MailItemPrice=parseInt(MailItemPrice);SpecialMailOverrideRules();var HeadingInfo="";var PricingInfo="";if(GLOBAL_CURRENT_URL["indexOf"]("magazine.jsp")>-1){if(document["getElementById"]("MagazineDeliveryType")["value"]=="email"){MailItemPrice=0;HeadingInfo="\x3CB\x3ESend by Email \x3C/B\x3E\x3CSPAN class=\x27AddrHeadingInstruct\x27\x3E[ The magazine cover will be attached to your email. ]\x3C/B\x3E\x3C/SPAN\x3E";} else {MailItemPrice=parseInt(MailItemPrice)+200;PricingInfo=AddressHeadingType+"s to "+CountryLiteral+" cost $"+FormatPrice(MailItemPrice)+" USD"+ExceededMaxLetterInfo;HeadingInfo="\x3CB\x3ESend by Post (Snail Mail)\x3C/B\x3E \x3CSPAN class=\x27AddrHeadingInstruct\x27\x3E[ "+PricingInfo+" ]\x3C/SPAN\x3E";} ;} else {PricingInfo=AddressHeadingType+"s to "+CountryLiteral;if(MailItemPrice>0){PricingInfo+=" cost $"+FormatPrice(MailItemPrice)+" USD"+ExceededMaxLetterInfo;} else {PricingInfo+=" are FREE.";} ;HeadingInfo="\x3CB\x3ESend a "+AddressHeadingType+"\x3C/B\x3E \x3CSPAN class=\x27AddrHeadingInstruct\x27\x3E[ "+PricingInfo+" ]\x3C/SPAN\x3E";} ;document["getElementById"]("MailItemPrice")["value"]=MailItemPrice;document["getElementById"]("AddressHeading")["innerHTML"]=HeadingInfo;} ;function ExtrOptionsToggle(){if(document["getElementById"]("UseOwnLogoInd")["checked"]||document["getElementById"]("AttachFileInd")["checked"]){document["getElementById"]("LetterExtraOptionsDisplayDiv")["innerHTML"]=document["getElementById"]("LetterOptionsDiv")["innerHTML"];document["getElementById"]("UseOwnLogoInd")["disabled"]=true;document["getElementById"]("AttachFileInd")["disabled"]=true;document["getElementById"]("LetterInBraille")["disabled"]=true;} ;} ;function SpecialMailOverrideRules(){} ;function SpecialSmsOverrideRules(){} ;function SpecialFaxOverrideRules(){} ;function FormatPrice(MailItemPrice){var MailItemPriceDisplay="";var Dollar=MailItemPrice/100;var Cents=MailItemPrice%100;if(Cents>0){var CentsMod=Cents%10;if(CentsMod==0){MailItemPriceDisplay=Dollar+"0"+" ";} else {MailItemPriceDisplay=Dollar;} ;} else {Dollar=Dollar+"";Cents=Cents+"";if(Cents["length"]==1){Cents="0"+Cents;} ;MailItemPriceDisplay=Dollar+"."+Cents;} ;return MailItemPriceDisplay;} ;function LimitText(limitField,limitNum){if(limitField["value"]["length"]>limitNum){limitField["value"]=limitField["value"]["substring"](0,limitNum);alert("There is a "+limitNum+" character limit on this field.");} ;} ;function OpenWindow(myForm){if(navigator["appName"]=="Netscape"){h=screen["height"]*0.80;w=screen["width"]*0.96;} else {h=screen["height"]*0.80;w=screen["width"]*0.96;} ;t=(screen["height"]/2)-(h/2);l=(screen["width"]/2)-(w/2);winprops="scrollbars=yes,menubar=no,locationbar=no,toolbar=no,resizable=yes,dependent=yes,alwaysRaised=yes,hotkeys=no,directories=no,status=yes,"+"height="+h+",width="+w+",top="+t+",left="+l;win=window["open"](myForm,"Popup_Window",winprops);} ;function RedirectOutput(myForm){if(navigator["appName"]=="Netscape"){h=screen["height"]*0.80;w=screen["width"]*0.96;} else {h=screen["height"]*0.80;w=screen["width"]*0.96;} ;t=(screen["height"]/2)-(h/2);l=(screen["width"]/2)-(w/2);winprops="scrollbars=yes,menubar=no,locationbar=no,toolbar=no,resizable=yes,dependent=yes,alwaysRaised=yes,hotkeys=no,directories=no,status=yes,"+"height="+h+",width="+w+",top="+t+",left="+l;win=window["open"]("loading.html","Popup_Window",winprops);myForm["target"]="Popup_Window";} ;function RedirectOutputSmallWindow(myForm){if(navigator["appName"]=="Netscape"){h=screen["height"]*0.10;w=screen["width"]*0.20;} else {h=screen["height"]*0.10;w=screen["width"]*0.20;} ;winprops="scrollbars=yes,menubar=no,locationbar=no,toolbar=no,resizable=yes,dependent=yes,alwaysRaised=yes,hotkeys=no,directories=no,status=yes,"+"height="+h+",width="+w;win=window["open"]("loading.html","Popup_Window",winprops);myForm["target"]="Popup_Window";} ;function Select_Value_Set(SelectName,Value){SelectObject=document["all"][SelectName];for(index=0;index<SelectObject["length"];index++){if(SelectObject[index]["value"]==Value){SelectObject["selectedIndex"]=index;} ;} ;} ;function RandomString(){var chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var string_length=50;var randomstring="";for(var i=0;i<string_length;i++){var rnum=Math["floor"](Math["random"]()*chars["length"]);randomstring+=chars["substring"](rnum,rnum+1);} ;return randomstring;} ;function GetCurrentDate(){var m_names= new Array("01","02","03","04","05","06","07","08","09","10","11","12");var d= new Date();var curr_date=d["getDate"]();var curr_month=d["getMonth"]();var curr_year=d["getFullYear"]();var curr_hour=d["getHours"]();var curr_min=d["getMinutes"]();var curr_sec=d["getSeconds"]();return (curr_year+""+m_names[curr_month]+""+curr_date+""+curr_hour+""+curr_min+""+curr_sec);} ;function RandomNumber(string_length){var chars="0123456789";var randomstring="";for(var i=0;i<string_length;i++){var rnum=Math["floor"](Math["random"]()*chars["length"]);randomstring+=chars["substring"](rnum,rnum+1);} ;return randomstring;} ;function GetCaptchaImage(){var CaptchaImage= new Array();CaptchaImage[0]="AGLULO";CaptchaImage[1]="ALJAOZ";CaptchaImage[2]="ASOOQA";CaptchaImage[3]="EVEISI";CaptchaImage[4]="FIDOIF";CaptchaImage[5]="HAMEUZ";CaptchaImage[6]="IHOOHA";CaptchaImage[7]="IJIALE";CaptchaImage[8]="IJSILU";CaptchaImage[9]="INYOXO";CaptchaImage[10]="JIQAPO";CaptchaImage[11]="OSSUFI";CaptchaImage[12]="PAMIAM";CaptchaImage[13]="REAKUL";CaptchaImage[14]="REUJPA";CaptchaImage[15]="UZAUYA";CaptchaImage[16]="VEQOGI";CaptchaImage[17]="XUHOCO";CaptchaImage[18]="YAESAK";return CaptchaImage[Math["floor"](Math["random"]()*19)];} ;function SmsCheckIfFree(CountryData){var CountryDataArr=CountryData["split"](";");var sms_demo_id=document["getElementById"]("sms_demo_id")["value"];document["getElementById"]("PageContainer")["innerHTML"]="";if(CountryDataArr[1]=="0"){alert("Sms to this country is currently unavailable.");} else {GetPage("getsmsads.jsp?countrycode="+CountryDataArr[0]+"\x26sms_demo_id="+sms_demo_id);} ;} ;function WriteFaxCountry(){document["write"]("\x3Coption value=\x27_;0\x27\x3ESelect Country\x3C/option\x3E");o_ctnry= new ObjFaxCountries();var CountryArr=o_ctnry.GetCountries();var Country="";for(i=0;i<CountryArr["length"];i++){Country=CountryArr[i]["split"](";");document["write"]("\x3Coption value=\x27"+Country[0]+";0"+"\x27\x3E"+Country[2]+"\x3C/option\x3E");} ;} ;function WriteSmsCountry(){document["write"]("\x3Coption value=\x27_;0\x27\x3ESelect Country\x3C/option\x3E");o_ctnry= new ObjSmsCountries();var CountryArr=o_ctnry.GetCountries();var Country="";for(i=0;i<CountryArr["length"];i++){Country=CountryArr[i]["split"](";");document["write"]("\x3Coption value=\x27"+Country[0]+";"+Country[1]+"\x27\x3E"+Country[2]+"\x3C/option\x3E");} ;} ;function WritePrintCountry(){o_ctnry= new ObjPrintCountries();var CountryArr=o_ctnry.GetCountries();var Country="";var SelectedText="selected";for(i=0;i<CountryArr["length"];i++){Country=CountryArr[i]["split"](",");document["write"]("\x3Coption value=\x27"+Country[0]+","+Country[1]+","+Country[2]+","+Country[3]+","+Country[4]+"\x27 "+SelectedText+"\x3E"+Country[2]["replace"](/_/g," ")+"\x3C/option\x3E");SelectedText="";} ;} ;function WritePrintCountryV2(){o_ctnry= new ObjPrintCountries();var CountryArr=o_ctnry.GetCountries();var Country="";var SelectedText="selected";for(i=0;i<CountryArr["length"];i++){Country=CountryArr[i]["split"](",");document["write"]("\x3Coption value=\x27"+Country[1]["toUpperCase"]()+"\x27 "+SelectedText+"\x3E"+Country[2]["replace"](/_/g," ")+"\x3C/option\x3E");SelectedText="";} ;} ;function WriteCreditCardYears(){var Date1= new Date();var FullYear=Date1["getFullYear"]()+"";var PartYearP1=FullYear["substring"](0,2);var PartYearP2=FullYear["substring"](2,4);var SelectedText="selected";for(var i=0;i<10;i++){document["write"]("\x3Coption value=\x27"+PartYearP2+"\x27 "+SelectedText+"\x3E"+PartYearP2+" ("+PartYearP1+PartYearP2+")");PartYearP2=parseInt(PartYearP2)+1;SelectedText="";} ;} ;function FormatData(){var BodyHTML=document["getElementById"]("FlowerOrderReportDiv")["innerHTML"];var BodyHTMLArr=BodyHTML["split"]("\x0A");var FormattedBodyHTML="";var Line="";FormattedBodyHTML="\x3CA HREF=javascript:window.print()\x3EClick here to Print This Page\x3C/A\x3E\x3CHR\x3E";for(i=0;i<BodyHTMLArr["length"];i++){Line=BodyHTMLArr[i];Line=Line["replace"](/<PRE>/g,"");Line=Line["replace"](/<\/PRE>/g,"");Line=Line["replace"](/ORDER NUMBER:/g,"\x3CB\x3EORDER NUMBER:\x3C/B\x3E");Line=Line["replace"](/Name:/g,"\x3CB\x3EName:\x3C/B\x3E");Line=Line["replace"](/Product Details/g,"\x3CB\x3EProduct Details\x3C/B\x3E");Line=Line["replace"](/Recipient \(DELIVERY\) Details/g,"\x3CB\x3ERecipient (DELIVERY) Details\x3C/B\x3E");Line=Line["replace"](/Customer \(YOUR\) Details/g,"\x3CB\x3ECustomer (YOUR) Details\x3C/B\x3E");Line=Line["replace"](/Purchase Details/g,"\x3CB\x3EPurchase Details\x3C/B\x3E");Line=Line["replace"](/Item Code:/g,"\x3CB\x3EItem Code:\x3C/B\x3E");Line=Line["replace"](/Description:/g,"\x3CB\x3EDescription:\x3C/B\x3E");if(Line["indexOf"]("Image Link:")>-1){Line=Line["replace"](/Image Link:/g,"");Line=Line["replace"](/ /g,"");Line=Line["replace"](/\n\r/g,"");Line="\x3CIMG height=150  src="+Line+"\x3E";} ;Line=Line["replace"](/Delivery Date:/g,"\x3CB\x3EDelivery Date:\x3C/B\x3E");Line=Line["replace"](/Card Message:/g,"\x3CB\x3ECard Message:\x3C/B\x3E");Line=Line["replace"](/Spcecial Instructions:/g,"\x3CB\x3ESpcecial Instructions:\x3C/B\x3E");Line=Line["replace"](/Institution:/g,"\x3CB\x3EInstitution:\x3C/B\x3E");Line=Line["replace"](/Address Line 1:/g,"\x3CB\x3EAddress Line 1:\x3C/B\x3E");Line=Line["replace"](/Address Line 2:/g,"\x3CB\x3EAddress Line 2:\x3C/B\x3E");Line=Line["replace"](/Town\/City:/g,"\x3CB\x3ETown/City:\x3C/B\x3E");Line=Line["replace"](/State:/g,"\x3CB\x3EState:\x3C/B\x3E");Line=Line["replace"](/Zip\/Postcode:/g,"\x3CB\x3EZip/Postcode:\x3C/B\x3E");Line=Line["replace"](/Country:/g,"\x3CB\x3ECountry:\x3C/B\x3E");Line=Line["replace"](/Email:/g,"\x3CB\x3EEmail:\x3C/B\x3E");Line=Line["replace"](/Phone:/g,"\x3CB\x3EPhone:\x3C/B\x3E");Line=Line["replace"](/Purchase Details/g,"\x3CB\x3EPurchase Details\x3C/B\x3E");Line=Line["replace"](/Purchase Date:/g,"\x3CB\x3EPurchase Date:\x3C/B\x3E");Line=Line["replace"](/Method:/g,"\x3CB\x3EMethod:\x3C/B\x3E");Line=Line["replace"](/Type:/g,"\x3CB\x3EType:\x3C/B\x3E");Line=Line["replace"](/Order Total:/g,"\x3CB\x3EOrder Total:\x3C/B\x3E");if(Line["length"]>80){LineArr=Line["split"](" ");Line="";LineArrLength=0;for(i2=0;i2<LineArr["length"];i2++){Line+=LineArr[i2]+" ";LineArrLength+=(LineArr[i2]["length"]+1);if(LineArrLength>80){Line+="\x3CBR\x3E";LineArrLength=0;} ;} ;} ;FormattedBodyHTML+="\x3CBR\x3E"+Line;} ;document["getElementById"]("FlowerOrderReportDiv")["innerHTML"]=FormattedBodyHTML;} ;function PostForm(type){if(type=="Preview"||type=="Send"){if(ValidateAllFields()){if(type=="Preview"){if(GLOBAL_CURRENT_PAGE=="postcard.jsp"||GLOBAL_CURRENT_URL["indexOf"]("postcard.jsp")>-1){Postcard(0);} else {Letter(0);} ;} else {document["getElementById"]("BtnSend")["disabled"]=true;if(GLOBAL_CURRENT_PAGE=="postcard.jsp"||GLOBAL_CURRENT_URL["indexOf"]("postcard.jsp")>-1){Postcard(1);} else {Letter(1);} ;} ;} ;} else {if(type=="MagazinePreview"||type=="MagazineSend"){if(document["getElementById"]("MagazineDeliveryType")["value"]=="email"){if(type=="MagazinePreview"){Magazine(0);} else {if(ValidateMagazineFields()){document["getElementById"]("BtnSend")["disabled"]=true;Magazine(1);} ;} ;} else {if(ValidateAllFields()){if(type=="MagazinePreview"){Magazine(0);} else {document["getElementById"]("BtnSend")["disabled"]=true;Magazine(1);} ;} ;} ;} else {if(type=="SmsPreview"||type=="SmsSend"){if(ValidateAllSmsFields()){if(type=="SmsPreview"){Sms(0);} else {document["getElementById"]("BtnSend")["disabled"]=true;Sms(1);} ;} ;} else {if(type=="FaxPreview"||type=="FaxSend"){if(ValidateAllFaxFields()){if(type=="FaxPreview"){Fax(0);} else {document["getElementById"]("BtnSend")["disabled"]=true;Fax(1);} ;} ;} ;} ;} ;} ;} ;
