//' Web software by DavidRegier.com
DB.Cart.autoReceipt=["Auto-Generated Copy","When you submit this form an auto-generated copy will be immediately sent to your e-mail address. This copy is provided for your records and in most cases you should receive this copy within a minute or two of submission. Note that for your protection, your credit-card number (if any) will be removed in the auto-generated copy."];DB.Cart.ccTelMsg=["Credit Card via Telephone","Submit this order, then phone us directly at "+DB.Contact.PhoneTollFree+" Toll Free or "+DB.Contact.PhoneDirect+" direct. These phone numbers will also be provided in your auto-generated e-mail receipt. <br><br><b>NOTE</b>: Phoning in your credit-card info can result in delays if we are closed when you call. Therefore, if you are in a hurry, we recommend that you provide your credit-card info now with this order (select option #1 instead)."];DB.Cart.checkMsg=["Paying via Check","Submit this order. We will hold your order and process it upon receipt of your check. We accept personal checks, bank checks, traveler's checks & money orders. Personal checks will be held until cleared by our bank. Payment instructions including mailing address will be provided in your auto-generated e-mail receipt. <br><br><b>NOTE</b>: Paying by check can result in delays. Therefore, if you are in a hurry, we recommend that you provide your credit-card info now with this order (select option #1 instead)."];DB.Cart.ccvnMsg=["CCVN: Credit Card Verification Number","CCVN (Credit Card Verification Number) is an anti-fraud security feature to help verify that you are in possession of your credit card.<dl style='margin:6px 0px 0px 0px;'><dt>American Express</dt><dd style='margin:0px 0px 0px 20px;'>It's the 4-digit number on front of card.</dd><dt>Visa, MasterCard & Discover</dt><dd style='margin:0px 0px 0px 20px;'>The three-digit CCVN number is printed on the signature panel on the back of the card immediately after the card's account number.</dd></dl><div style='margin:6px 0px 0px 0px;'><img src='images/ccvn.gif' border='0' width='379' height='82' hspace='0' vspace='0' galleryimg='no' title='' style='float:left; margin:0px 0px 6px 0px;'></div>"];function recordHiddenInfo(Form){try{var gmtOffSetHi=10;var Now=new Date();var gmtOffSetClient=Now.getTimezoneOffset()/60;var timeDiff=gmtOffSetHi-gmtOffSetClient;var plural=(Math.abs(timeDiff)==1)?"":"s"
var theSign=(timeDiff>=0)?"+ ":"- ";var forTime="Hawaii "+theSign+Math.abs(timeDiff)+" hour"+plural;Form.Sent.value=Now.toLocaleString()+" (client's time)";Form.Time_Difference.value=forTime;Form.TMW_Contact_Info.value="<a href='http://www.tropicalmauiweddings.com/' title='Go to our Homepage'>TropicalMauiWeddings.com</a>\n"+DB.Contact.Owner+" - Owners\n"+DB.Contact.Address+"\n"+DB.Contact.CityStZip+"\n"+DB.Contact.PhoneTollFree+" Toll Free\n"+DB.Contact.PhoneDirect+" On Maui\nSkype ID: "+DB.Contact.SkypeID+"\n";Form.Referrer.value=GetCookie("tmwReferrer");}
catch(Err){var err="<b style='color:red;'>ERROR</b>: JavaScript exception thrown at function recordHiddenInfo\nPlease provide this info to David Regier:\n";for(member in Err)err+=member+": "+Err[member]+"\n";for(i in navigator){if(typeof navigator[i]!="object")err+=i+": "+navigator[i]+"\n";}
Form.Exception.value+=err;if(local)alert(err);return true;}}
function recordData(key,value){if(eval("typeof key")=='string'){key=key.replaceLiteral("&","and");key=key.replaceLiteral("=","is");}
if(eval("typeof value")=="string"){value=value.replaceLiteral("&","and");value=value.replaceLiteral("=","is");}
var newCookie="";var oldCookie=GetCookie("tmwCookie");var target=key+'=';var newKeyValPair=target+value;if(oldCookie!=null){var startPos=oldCookie.indexOf(target);var endPos=oldCookie.indexOf("&",startPos);if(endPos==-1)endPos=oldCookie.length;if(startPos!=-1){var slice1=oldCookie.substring(0,startPos);var slice2=oldCookie.substring(endPos,oldCookie.length);newCookie=slice1+newKeyValPair+slice2;}
else newCookie+=oldCookie+'&'+newKeyValPair;SetCookie("tmwCookie",newCookie,expDate365,"/",cookieDomain);}
else SetCookie("tmwCookie",newKeyValPair,expDate365,"/",cookieDomain);}
function clearCC(Form){Form.Credit_Card_Address.value="";Form.Credit_Card_City.value="";Form.Credit_Card_State.value="";Form.Credit_Card_Zip.value="";Form.Name_On_Credit_Card.value="";Form.Type_of_Credit_Card[0].checked=false;Form.Type_of_Credit_Card[1].checked=false;Form.Type_of_Credit_Card[2].checked=false;Form.Credit_Card_Number.value="";Form.Credit_Card_Verification_Number.value="";Form.Credit_Card_Exp_Date.value="";}
function clearField(Field){if(Field.value==Field.defaultValue)Field.value="";}
function checkField(Field){if(Field.value=="")Field.value=Field.defaultValue;}
function morphForm(elem,display){document.getElementById(elem).className=(display)?"on":"off";}
function verifyEmail(Form,Email,buttonVal){function stop(){Email.focus();setButton(Form.submit_button,"enable",buttonVal);return false;}
Email.value=Email.value.trim();Email.value=Email.value.replaceLiteral(" ","");var emailRE=/^[\w\.-]+[^\.-]@[\w\.-]+\.[a-zA-Z]{2,}$/;EmailArr=Email.value.split(",");for(i in EmailArr){if( !emailRE.test(EmailArr[i])){alert("Sorry but \""+EmailArr[i]+"\" is an invalid e-mail address.\n\nHere's some examples of valid e-mail addresses:\n1. joe@hotmail.com\n2. sally_smith@aol.com\n3. jim.clark@co.la.ca.us\n4. ron-kent254@yahoo.com\n\nTIP: Valid e-mails contain 1 \"@\" character & end with .com, .net, .us, .ca, etc. etc.");return stop();}}
if(confirm("IMPORTANT: Please double check your e-mail address for accuracy\n\n  1) Click OK if \""+Email.value+"\" is correct & this form will be submitted; OR\n  2) Click Cancel if you need to correct it\n\nIt's important because if you make a typo in your e-mail address we may be unable to contact you."))return true;else{Email.focus();setButton(Form.submit_button,"enable",buttonVal);return false;}}
function writeYearOptions(){var Today=new Date(),thisYear=Today.getFullYear(),htm="";for(var i=thisYear;i<thisYear+4;i++){var yrShort=i-2000;if(yrShort<10)yrShort="0"+yrShort;htm+="<option value='"+yrShort+"'>"+i+"</option>";}
document.write(htm);}