   function cb() {  missinginfo = "";  thisform = document.forms['costestform'];      if (thisform.zipcode.value == "") {    missinginfo += "\n     Zip Code";   }      if (thisform.guests.value == "") {    missinginfo += "\n     Number of Guests";   }      myOption = -1;   for (i=thisform.wedtype.length-1; i > -1; i--) {    if (thisform.wedtype[i].checked) {     myOption = i;      i = -1;    }   }   if (myOption == -1) {    missinginfo += "\n     Wedding Type";   }      myOption = -1;   for (i=thisform.itemid.length-1; i > -1; i--) {    if (thisform.itemid[i].checked) {     myOption = i;      i = -1;    }   }   if (myOption == -1) {    missinginfo += "\n     Wedding Items";   }      if (missinginfo != "") {    missinginfo = "The following information is required:\n" +    missinginfo + "\n \n Re-enter your information and try again!";    alert(missinginfo);    return false;   } else {    document.forms['costestform'].submit();   }    }  
document.writeln('  <div align="center">    <form action="index.cfm?action=costest.cesubmit&view=blank" method="post" name="costestform" id="costestform">  <input name="cestyle" type="hidden" value="nostyle" />  <input name="cetype" type="hidden" value="js" />    <table border="0" cellspacing="0" cellpadding="3" width="475"><tr><td colspan="2" align="left" valign="top">  <h1 id="costest-header-h1">Wedding Cost Estimator</h1>      <p><table>   <tr>    <td valign="middle"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="costofwedding">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td>    <td valign="middle"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww%2Ecostofwedding%2Ecom%2Findex%2Ecfm%3Faction%3Dcostest%2Eindex%26view%3Dblank%26shq%3D0%26cestyle%3Dnostyle%26cetype%3Djs&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px;" allowTransparency="true"></iframe></td>   </tr>  </table></p>      Its better than a wedding budget calculator.  Tell us a few things about your wedding, then select the items you plan to purchase and we will provide you a wedding cost estimate.     Lets get started...  <p></p>    </td></tr><tr>  <td colspan="2" align="left" valign="top" id="costest-text">  <strong>General Information:</strong>  <p></p>   <table width="100%">    <tr>     <td width="38%" align="left" valign="middle">Enter your US zip code:*</td>     <td align="left" valign="top"><input name="zipcode" type="text" size="5" maxlength="5" /></td>    </tr>   </table>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">  Enter number of guests:* (Select One)  <p></p>   <table width="50%">    <tr>     <td width="16%" align="right" valign="top"><input type="radio" name="guests" value="1"></td>     <td width="30%" align="left" valign="top"><50</td>     <td align="right" valign="top"><input type="radio" name="guests" value="2"></td>     <td align="left" valign="top">50-99</td>    </tr>    <tr>     <td align="right" valign="top"><input type="radio" name="guests" value="3"></td>     <td align="left" valign="top">100-149</td>     <td align="right" valign="top"><input type="radio" name="guests" value="4"></td>     <td align="left" valign="top">150-199</td>    </tr>    <tr>     <td align="right" valign="top"><input type="radio" name="guests" value="5"></td>     <td align="left" valign="top">200-300</td>     <td align="right" valign="top"><input type="radio" name="guests" value="6"></td>     <td align="left" valign="top">300+</td>    </tr>   </table>   <p></p>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">  What type of wedding do you plan to have?* (Select One)  <p></p>   <table width="75%">    <tr>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="1"></td>     <td align="left" valign="top">Casual</td>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="2"></td>     <td align="left" valign="top">Extravagant</td>    </tr>    <tr>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="3"></td>     <td align="left" valign="top">Formal</td>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="4"></td>     <td align="left" valign="top">Green or eco friendly</td>    </tr>    <tr>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="5"></td>     <td align="left" valign="top">Theme</td>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="6"></td>     <td align="left" valign="top">Traditional</td>    </tr>    <tr>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="7"></td>     <td align="left" valign="top">Unique</td>     <td width="10%" align="right" valign="top"><input type="radio" name="wedtype" value="8"></td>     <td align="left" valign="top">Other</td>    </tr>   </table>   <p></p>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">  * = Required  <p></p>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">  Do any of these options apply to your wedding?<br/>  (Check all that apply)  <p></p>  </td></tr>    <tr><td colspan="2" align="left" valign="top" id="costest-text">   <table width="100%">    <tr>     <td width="10%" align="right" valign="top"><input name="protalent" type="checkbox" value="1" /></td>     <td>We plan to hire well experienced professionals<br/> (ie. Photographer, Planner/Consultant, DJ)</td>    </tr>   </table>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">   <table width="100%">    <tr>     <td width="10%" align="right" valign="top"><input name="designer" type="checkbox" value="1" /></td>     <td>We plan to purchase designer labels, unique or custom products (ie. Dress, Rings, Accessories)</td>    </tr>   </table>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">   <table width="100%">    <tr>     <td width="10%" align="right" valign="top"><input name="popevent" type="checkbox" value="1" /></td>     <td>We plan to have our wedding at a popular location</td>    </tr>   </table>   <p></p>  </td></tr>  <tr><td colspan="2" align="left" valign="top" id="costest-text">  <strong>Now select the items money will be spent on for your wedding:</strong>  </td></tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Attire & Accessories</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="1" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Bride Accessories - Includes Tiara, Combs, Hair Pins, Garter, Shoes, etc. but not Jewelry.</td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="2" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Groom Accessories - Includes Cuff links, Cummerbund, Tie, Pocket Square, Shoes, etc. but not Jewelry.</td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="3" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Suit (purchased) </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="4" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Suit (rented) </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="5" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Tuxedo (purchased) </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="6" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Tuxedo (rented) </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="8" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Veil </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="9" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Dress </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="10" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Dress Preservation </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Beauty, Health & Spa</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="12" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Diet, Weight Loss, Gym </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="13" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Facial </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="14" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Hair Removal </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="15" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Hair Service </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="17" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Makeup Service </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="18" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Manicure & Pedicure </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="19" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Massage </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="20" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Teeth Whitening </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Entertainment</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="27" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Dance Lessons </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="28" /></td>   <td align="left" valign="top" id="costest-text" width="90%">DJ </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="29" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Live Band </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="30" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Musician/s, Soloist, or Ensemble </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Flowers & Decorations</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="31" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Boutonnieres, Corsages </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="32" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Bridal Bouquet </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="33" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Bridesmaid Bouquets </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="34" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Ceremony Decorations </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="35" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Ceremony Flower Arrangements </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="36" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Flower Girl Flowers </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="37" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Flower Petals </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="38" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Decorations </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="40" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Flower Arrangements </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="41" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Table Centerpieces </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Gifts & Favors</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="42" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Gift/s for Attendants </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="43" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Gift/s for Parents </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="44" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Gift/s for the Bride </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="45" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Gift/s for the Groom </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="47" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Favors </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Invitations</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="58" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Ceremony Programs </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="60" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Guest Book </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="61" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Invitations & Reply Cards </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="63" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Menus </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="64" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Save the Date Cards </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="65" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Table or Place Cards </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="66" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Thank You Cards </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Jewelry</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="69" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Earrings </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="70" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Engagement Ring </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="71" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Necklace </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="103" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Other Jewelry - Includes Anklet, Bracelet, watch, etc</td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="74" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Band - Bride </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="75" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Band - Groom </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Photography & Video</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="81" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Photographer </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="82" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Videographer </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Planner/Consultant</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="83" /></td>   <td align="left" valign="top" id="costest-text" width="90%">A La Carte Services </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="85" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Day of Coordinator </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="86" /></td>   <td align="left" valign="top" id="costest-text" width="90%">For Getting Started </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="87" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Full Service </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="88" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Month of Direction </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Transportation</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="89" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Limo Rental </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="90" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Other Travel (Antique Car, Horse & Carriage, Etc.) </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="91" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Travel for Guests </td>  </tr>      <tr>  <td colspan="2" height="20" align="left" valign="middle" id="costest-header"><strong><em>Venue & Catering</em></strong></td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="92" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Ceremony Accessories - Includes Aisle Runner, Ring Pillow or Box, Unity Candle, etc. but not flowers or decorations.</td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="93" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Ceremony Location </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="102" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Ceremony Officiator - Includes Justice of the Peace, Officiant, Ordained Friend, Family Member Pastor, Minister, Rabbi, or Priest.</td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="94" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Hotel Room for After Reception </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="95" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Accessories - Includes Toasting Flutes, Wedding Cake Topper and Serving Set, etc. but not flowers or decorations.</td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="96" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Bar Service </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="97" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Food Service </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="98" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Location </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="99" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Reception Rentals (Tent, Table, Chairs, Etc.) </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="80" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Rehearsal Dinner </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="100" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Tips </td>  </tr>    <tr>   <td align="right" valign="top" width="10%" height="22"><input name="itemid" type="checkbox" value="101" /></td>   <td align="left" valign="top" id="costest-text" width="90%">Wedding Cake </td>  </tr>    <tr><td align="left" valign="top" colspan="2" height="1" id="costest-header">&nbsp;</td></tr>  <tr><td align="center" valign="middle" colspan="2" height="50">      <input type="button" name="costest-submitbuttom" id="costest-submitbuttom"  value="Get Cost" onClick="cb()">  </td></tr>  </table></form></div>  ');
