//
// @(#)$Header:   //VM/ecom/archives/bcstore/htdocs/store/includes/common.js-arc   1.44   Nov 12 2009 10:37:22   flyjames  $
//

var gImageRoot   = "/reg/images/";
var gAccImageRoot = "/account/images/";
var gMyAcctImageRoot   = "/account/images/";
var gButtonImgRoot     = "/account/images/buttons/";
var SITE_NAME    = "Barbie Collector";


var g_my_account_mode      = "MA";
var g_checkout_mode        = "CH";
var g_order_status_mode    = "OS";
var g_catalog_request_mode = "CR";
var g_forgot_password_mode = "FP";
var g_shopping_bag_mode    = "SB";

var g_acct_login_reg_ctxt = "LOGIN_REGISTER";
var g_add_bill_addr_ctxt  = "ADD_BILL_ADDR";
var g_edit_bill_addr_ctxt = "EDIT_BILL_ADDR";
var g_cc_edit_bill_addr_ctxt = "EDIT_CC_BILL_ADDR";
var g_add_ship_addr_ctxt  = "ADD_SHIP_ADDR";
var g_edit_ship_addr_ctxt = "EDIT_SHIP_ADDR";
var g_edit_ship_addr_bk_ctxt = "EDIT_SHIP_ADDR_BOOK";
var g_delete_ship_addr_bk_ctxt = "DEL_SHIP_ADDR_BOOK";

function goto_homepage()
{
  var strHtml = "";
  var strProtocol = "http://";
  strHtml = strHtml + '<html>';
  strHtml = strHtml + '  <SCRIPT language="Javascript">';
  strHtml = strHtml + '    window.location = "' + strProtocol + location.hostname + '"';
  strHtml = strHtml + '  </SCRIPT>';
  strHtml = strHtml + '</html> ';

  document.write(strHtml);
}

function win_popup(p_url,p_width,p_hite)
{
  var l_dir = "";
  var l_url = "";
  if (p_url == 'EMAIL_ADDRESS')
     {l_url = "/html/shared/EmailAddress.html";}
  else if (p_url == 'INTL_SHIP')
     {l_url = "/html/shared/InternationalShipping.html";}
  else if (p_url == 'SAVE_CARD')
     {l_url = "/html/shared/SaveCard.html";}
  else if (p_url == 'WHERE_PIN')
     {l_url = "/checkout/images/wherePIN.gif";}
  else if (p_url == 'PHONE_NUMBER')
     {l_url = "/html/shared/PhoneNumber.html";}
  else if (p_url == 'CC_SECURE_CODE')
     {l_url = "/html/shared/CardSecurity.html";}
  else if (p_url == 'KEYCODE')
     {l_url = "/html/shared/KeyCode.html";}
  else if (p_url == 'AGE_SCREEN')
     {l_url = "/html/shared/age_screener.html";}
  else if (p_url == 'ORDER_LISTING')
     {l_url = "/html/shared/OrderListing.html";}
  else if (p_url == 'ORDER_STATUS')
     {l_url = "/html/shared/OrderStatus.html";}
  else if (p_url == 'TRACKING_INFO')
     {l_url = "/html/shared/TrackingInfo.html";}
  else if (p_url == 'STATUS_INFO')
     {l_url = "/html/shared/StatusInfo.html";}
  else if (p_url == 'PRIVACY')
     {l_url = "http://www.barbiecollector.com/contact/policies.asp";}
  else if (p_url == 'EXPRESS_CHECKOUT')
     {l_url = "/html/shared/ExpressCheckout.html"}
  else if (p_url == 'GIFT_WRAP')
     {l_url = "/html/shared/GiftWrap.html";}
  else if (p_url == 'GIFT_MESSAGE')
     {l_url = "/html/shared/GiftMessage.html";}
  else
     {l_url = p_url;}

  l_popup_url = l_url;
  window.open(l_popup_url, "floatnavbar", "scrollbars=yes,resizable=yes,width="+p_width+",height="+p_hite+",left=10,top=10");
}

function validate_phone_length(fieldname,focusfield,fieldlength)
{
   alert("Hi");
   var str = fieldname.value;
   if (str.length == fieldlength)
   {
      focusfield.focus();
   }
   return true;
}

function Write_catalog_suffix()
{
   var strHtml = "";
   strHtml  = '';
   document.write(strHtml);
}

//**************************************************************************************************************************//
//                                            LOGIN  PAGE                                                                   //
//**************************************************************************************************************************//

var KEYCODE_LABEL_NAME  = "Key code";
var CH_KEYCODE_LABEL_NAME  = "Promotional code";
var KEYCODE_DISCOUNT_NAME  = "Less promo code";
var LOGIN_SUBMIT        = gButtonImgRoot + "login.gif";
var REGISTER_SUBMIT     = gButtonImgRoot + "submit.gif";
var CUSTOMER_SERVICE_MAILID = "customerservice@barbiecollector.com"; 

function Write_forgotten_password()
{

  var strHtml = "";
  strHtml = "Forgot your user name or password?";

  document.write(strHtml);

}

function Write_footer()
{
   var strHtml = "";
   strHtml  = strHtml + '<SPAN class="smallbold">';
   strHtml  = strHtml + '   Privacy Policy: ';
   strHtml  = strHtml + '</SPAN>';
   strHtml  = strHtml + '<SPAN class="text">';
   strHtml  = strHtml +     'Mattel respects your privacy, and is committed to ensuring the security of your personal information'; 
   strHtml  = strHtml +     ' and your shopping experience. For more information, please review our ';
   strHtml  = strHtml + '</SPAN>';
   strHtml  = strHtml + '<SPAN class="subhead"> <a href="Javascript:win_popup(\'PRIVACY\',\'800\',\'800\');">';
   strHtml  = strHtml + '   PRIVACY POLICY.</a> </SPAN>';

   document.write(strHtml);
}

//***********************************************************************************************************************//
//                                       THANKS FOR REGISTERING SCREEN                                                   //
//***********************************************************************************************************************//

var THANKS_PAGE_TITLE     =   "Thanks for Registering";
var THANKS_MESSAGE        =   "Thanks for Joining Us!";
//Images
var MYACCOUNT_BUTTON_IMG  = gButtonImgRoot  + "my_account.gif";
var CONTINUE_SHOPPING_IMG = gButtonImgRoot  + "continue_shopping.gif";
var REGISTER_THANKS_IMG   = gImageRoot + "register_thanks.gif";
var ADD_SHIPPING_ADDR_PAGE_TITLE = "Add shipping address";

function Write_register_thanks_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<TABLE width="100%"> ';
   strHtml = strHtml + '  <TR>';
   strHtml = strHtml + '    <TD class="header" width="65%" align="left">';
   strHtml = strHtml + '      Register for your account ';
   strHtml = strHtml + '    </TD>';
   strHtml = strHtml + '    <TD class="header" width="17%" align="center">';
   strHtml = strHtml + '      <a href="">Registration Help</a>';
   strHtml = strHtml + '    </TD>';
   strHtml = strHtml + '    <TD class="header" width="18%" align="center">';
   strHtml = strHtml + '      <a href="Javascript:goto_homepage();">Store Home</a>';
   strHtml = strHtml + '    </TD>';
   strHtml = strHtml + '  </TR>';
   strHtml = strHtml + '</TABLE>';

   document.write(strHtml);
}

function Write_register_thanks_mesg()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   You now have a Shopping account on barbiecollector.com. Click on the "My Account" button on the ';
   strHtml = strHtml + 'Shop <a href="http://www.barbiecollector.com/shop/index.aspx">homepage</a> to review your Shop account ';
   strHtml = strHtml + 'information or make any changes. When you\'re done shopping, ';
   strHtml = strHtml + 'please click Log out so that the next person who uses your computer does not have access to your account.';
   strHtml = strHtml + '</SPAN>';
   document.write(strHtml);
}




//***********************************************************************************************************************//
//                                     UNDER AGE SORRY SCREEN                                                            //
//***********************************************************************************************************************//

function Write_underage_sorry_graphic()
{
   var strHtml = "";
   strHtml = strHtml + "We're Sorry...";

   document.write(strHtml);
}


function Write_underage_mesg()
{
   var strHtml ="";

   document.write(strHtml);
}


 

//*************************************************************************************************************************//
//                                     ADD SHIPPING ADDRESS SCREEN                                                         //
//*************************************************************************************************************************//

var MYACCOUNT_ADD_SHIP_SUBMIT_TXT = "";

function Write_add_edit_shipping_graphic(shipping_mode)
{
   var strHtml = "";

   if (shipping_mode == "ADD")
   {
      strHtml = strHtml + '<span class="nameheader">Add a Shipping Address</span>';
   }
   else
   {
      strHtml = strHtml + '<span class="nameheader">Edit a Shipping Address</span>';
   }

   document.write(strHtml);
}

function Write_shipping_address_info_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<span class="nameheader">Shipping Address Information</span>';

   document.write(strHtml);
}





function Write_add_shipping_addr_info()
{
   var strHtml ="";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '     To add a new shipping address, complete the fields below. ';
   strHtml = strHtml + '     Required fields are marked with an asterisk (';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="mandatory">';
   strHtml = strHtml + '*';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + ').';
   strHtml = strHtml + '</SPAN> ';

   document.write(strHtml);
}

//This parameter CHILD_ADDRESS_PRESENT is present in the parameters.js file so that it is easily configurable.

function Write_child_address_checkbox(checked)
{
 if (CHILD_ADDRESS_PRESENT)
   {
   var strHtml = "";
   strHtml  =  strHtml + '<TR> <TD colspan="4">';
   strHtml  =  strHtml + '  <TABLE> <TR>   ';
   strHtml  =  strHtml + '   <TD> <INPUT type="checkbox" name="p_child_address" value="Y" '+ checked + '> </TD> ';
   strHtml  =  strHtml + '   <TD> <SPAN class="text">';
   strHtml  =  strHtml + '           Please check if this is a childs address. Lorem ipsum dolor sit amit, consectur </SPAN> ';
   strHtml  =  strHtml + '     <SPAN class="subhead"> <a href=""> for more information </a> </SPAN> ';
   strHtml  =  strHtml + '   </TD> </TR> </TABLE>  ';
   strHtml  =  strHtml + '<TD> </TR>';

   document.write(strHtml);
 }
}

//*************************************************************************************************************************//
//                                     EDIT SHIPPING ADDRESS SCREEN                                                         //
//*************************************************************************************************************************//


var MYACCOUNT_EDIT_SHIP_SUBMIT_TXT = "";

function Write_edit_shipping_addr_info()
{
   var strHtml ="";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '     Please enter the necessary changes to this address in the field below. ';
   strHtml = strHtml + '</SPAN> ';

   document.write(strHtml);
}


//*********************************************************************************************************************************//
//                                   MYACCOUNT REGISTRATION DATA ENTRY SCREEN                                                      //
//*********************************************************************************************************************************//

var MYACCOUNT_REGISTRATION_PAGE_TTILE  = "Registration Data Entry";
var MYACCOUNT_CHILD_BIRTHDATE_LABEL    = "Your Birth Date";
var REGISTRATION_USERNAME_INSTRUCTIONS = "Suggest using your email address so it's easy for you to remember. ";
var REGISTRATION_PASSWORD_INSTRUCTIONS = "Your password must be 6 to 40 characters long and can only include letters and numbers. User name and password cannot be the same.";
var MYACCOUNT_REGISTRATION_SUBMIT_TEXT = "Enter your information and click Submit.";
var MYACCOUNT_REGISTRATION_IMG         = gImageRoot + "myaccount_registration.gif";
var MYACCOUNT_SHOP_LOGIN_INFO_IMG      = gMyAcctImageRoot + "myaccount_shop_login.gif";
var MYACCOUNT_CONTACT_PREFS_IMG        = gMyAcctImageRoot + "myaccount_contact_prefs.gif";
var MYACCOUNT_CHECKOUT_PREFS_IMG       = gMyAcctImageRoot + "myaccount_checkout_prefs.gif";
var MYACCOUNT_BILLING_ADDR_IMG         = gMyAcctImageRoot + "myaccount_billing_addr.gif";
var MYACCOUNT_REGISTRATION_SUBMIT_IMG  = gImageRoot + "registration_submit.gif";
var EXPRESS_CHECKOUT_GRAPHIC_IMG       = gAccImageRoot + "expresscheckout.gif";

function Write_express_checkout_graphic()
{
   var strHtml = "";
   strHtml = strHtml + "Express Checkout";

   document.write(strHtml);
}

function Write_credit_card_images()
{
   var strHtml = "";
   strHtml = strHtml + '<img src="' + gMyAcctImageRoot + 'cc_visa.gif">&nbsp;';
   strHtml = strHtml + '<img src="' + gMyAcctImageRoot + 'cc_mc.gif">';
   strHtml = strHtml + '<img src="' + gMyAcctImageRoot + 'cc_disc.gif">&nbsp;';
   strHtml = strHtml + '<img src="' + gMyAcctImageRoot + 'cc_amex.gif">';

   document.write(strHtml);
}


function Write_birthdate_graphic()
{  
   var strHtml = "";
   strHtml = strHtml + "Your birth date";

   document.write(strHtml);
}


function Write_registration_birthdate_graphic()
{  
   var strHtml = "";
   strHtml = strHtml + "Your birth date";

   document.write(strHtml);
}


function Write_checkout_preferences_graphic()
{   var strHtml = "";
   strHtml = strHtml + 'Checkout Preferences ';

   document.write(strHtml);
}

function Write_checkout_preferences_copy()
{ 
   var strHtml = "";

   strHtml = 'You can store your credit card information here or leave it blank and enter it each time you shop.';

   document.write(strHtml);
}

function Write_billing_address_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Billing Address';

   document.write(strHtml);
}


function Write_contact_prefereces_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Contact Preferences';

   document.write(strHtml);
}


function Write_login_setting_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Login Settings';

   document.write(strHtml);
}


function Write_create_shopping_account_graphic()
{
   var strHtml = "";
   strHtml = strHtml + ' <SPAN class="header"> ';
   strHtml = strHtml + '   Create Your Shopping Account ';
   strHtml = strHtml + ' </SPAN> ';

   document.write(strHtml);
}


function Write_promotional_email(checked)
{

   var strHtml = "";
   if (PROMOTIONAL_EMAIL_CHECK)
   {
     strHtml = strHtml + '<TR>';
     strHtml = strHtml + '<TD align="left" valign="top">';
     strHtml = strHtml + '<INPUT class="tdBkgd" type="checkbox" name="p_promotional_email_flag" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="text">';
     strHtml = strHtml + "    Yes, I'd like to receive the latest news about promotions and events";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<TR> <TD> &nbsp; <BR> </TD> </TR>';
   }

   document.write(strHtml);
}

function Write_mail_preference(checked, show)
{

   var strHtml = "";
   var strType = "";
   var strCatalogText = "";
   var strValue = "";

   if (show) {
       strType = 'checkbox';
       strCatalogText = '      Yes, I would like to receive (or continue to receive) copies of your catalogs.';
       strValue = 'Y';
   } else {
       strType = 'hidden';
       strCatalogText = '                                                                                     ';
       if (checked == "") {
          strValue = 'N';
       } else {
          strValue = 'Y';
       };
   };

   if (MAIL_PREFERNCE_CHECK)
   {
     strHtml = strHtml + '<TR>';
     strHtml = strHtml + '<TD align="left" valign="top">';
     strHtml = strHtml + '<INPUT type="' + strType + '" class="tdBkgd" name="p_mail_preference_code" value="'
                                                                                                    + strValue + '"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="txtInfo">';
     strHtml = strHtml +        strCatalogText;
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<TR> <TD>  <BR><BR> </TD> </TR>';
   }

   document.write(strHtml);
  
}

function Write_share_my_info(checked) {

  var strHtml = "";
  if (DO_NOT_RENT_CHECK)
  {
    strHtml = strHtml + '<input type="checkbox" class="tdBkgd" name="p_rent_pref" value="Y" onClick="Javascript:change_pref(\'RENT\');"';
    strHtml = strHtml + ' ' + checked + '>';
    strHtml = strHtml + '<span class="txtInfo">Share my information</span>';

  }
  else
  {
    strHtml = '&nbsp;';
  }

  document.write(strHtml);

}

function Write_do_not_rent(checked)
{

   var strHtml = "";
   if (DO_NOT_RENT_CHECK)
   {
     strHtml = strHtml + '<TR>';
     strHtml = strHtml + '<TD align="left" valign="top">';
     strHtml = strHtml + '<INPUT class="tdBkgd" type="checkbox" name="p_do_not_rent_flag" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="text">';
     strHtml = strHtml + "    Yes, I'd like to share my contact information with companies similar to yours";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<TR> <TD> &nbsp; <BR> </TD> </TR>';
   }

   document.write(strHtml);
}




function Write_myaccount_reg_info()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   To register, fill in the required fields below (marked with an ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="mandatory"> * </SPAN>';
   strHtml = strHtml + '<SPAN class="text"> ).  To learn how we use and protect your personal information, please read our ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="subhead">';
   strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY.</a>';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_child_birthday_info()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '  Please provide your birth date to allow us to get to know our collectors better. '; 
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_mktg_child_data_labels()
{
   var strHtml = "";
  
   document.write(strHtml);
}

function Write_express_checkout_info()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   For fast and easy "one click" ordering try Express Checkout! ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="subhead">';
   strHtml = strHtml + '   <a href="Javascript:win_popup(\'EXPRESS_CHECKOUT\',\'400\',\'400\');"> Tell me more about this. </a>';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_express_checkout_signup() 
{
    var strHtml = "";
   strHtml = strHtml + "Yes! I'd like to enjoy Express Checkout!";

   document.write(strHtml);
}


function Write_birthdate_link_text()
{
  var strHtml = "";

  document.write(strHtml);
}

function Write_birthdate_info()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '  Please provide your birth date to allow us to get to know our collectors better. '; 
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}



//********************************************************************************************************************************//
//                                              MyAccount SCREEN  - MYACCOUNT                                                     //
//********************************************************************************************************************************//

function Write_summary_text()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   This is your shop account information. To make any changes, click the "Edit" buttons. ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<br><br>';
   strHtml = strHtml + '<SPAN class="smallbold">';
   strHtml = strHtml + '   Attention BarbieCollector.com Registered Members: ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   Please note that this information only applies to your ';
   strHtml = strHtml + '   Shop account.';
   strHtml = strHtml + '  To make changes to your account on Barbiecollector.com that allows you access to the Barbie Bulletin Board, '; 
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="subhead">';
   strHtml = strHtml + '<a href="http://www.barbiecollector.com/club/?t=b">click here</a>';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '  to log in, then click on your name in the top left of the navigation bar to go to the My Account page. ';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_myaccount_summary_graphic()
{
   var strHtml = "";
   strHtml = strHtml + "<h4>My Shop Account</h4>";

   document.write(strHtml);
}


function Write_login_summary_graphic()
{
   var strHtml = ""; 
   strHtml = strHtml + "Shop Login Information";

   document.write(strHtml);
}

function Write_billing_summary_graphic()
{
   var strHtml = ""; 
   strHtml = strHtml + 'Billing Address';

   document.write(strHtml);
}

function Write_shipping_summary_graphic()
{   
   var strHtml = "";
   strHtml = strHtml + 'Shipping Addresses';

   document.write(strHtml);
}

function Write_checkout_summary_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Checkout Preferences'; 

   document.write(strHtml);
}

function Write_contact_preferences_summary_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Contact Preferences';

   document.write(strHtml);
}

function Write_recent_orders_summary_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Recent Orders';

   document.write(strHtml);
}



//*******************************************************************************************************************************//
//                                              EDIT BILLING ADDRESS - MYACCOUNT                                                 //
//*******************************************************************************************************************************//


var MYACCOUNT_EDIT_BILLING_PAGE_TITLE = "MyAccount | Edit Billing Address";
var MYACCOUNT_EDIT_BILLING_SUBMIT_TXT = "Please make any changes and click Submit. ";

var MYACCOUNT_EDIT_BILLING_SUBMIT_IMG = gButtonImgRoot + "submit.gif";
var MYACCOUNT_EDIT_BILLING_CANCEL_IMG = gButtonImgRoot + "cancel.gif";

function Write_edit_billing_address_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Edit Billing Address';

   document.write(strHtml);
}


function Write_myaccount_edit_billing_info()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   Use this page to change your billing address. ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<BR>';
   strHtml = strHtml + '<SPAN class="smallbold">';
   strHtml = strHtml + '   Please note:';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '   Only one billing address per account. Required information is marked with an asterisk (';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="mandatory">';
   strHtml = strHtml + '*';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + ').';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

//**********************************************************************************************************************************//
//                                             ADD NEW CREDIT CARD - MYACCOUNT                                                      //
//**********************************************************************************************************************************//

var MYACCOUNT_NEW_CARD_PAGE_TITLE  =  "MyAccount | Add New Credit Card";
var MYACCOUNT_ADD_CARD_SUBMIT_TXT = "Please enter your information and click Submit. ";

function Write_add_edit_card_graphic(card_mode)
{
   var strHtml = "";
   if (card_mode == 'EDIT')
   {
       strHtml = strHtml + '<SPAN class="subheader">Edit Credit Card Information</SPAN>';
   }
   else
   {
       strHtml = strHtml + '<SPAN class="subheader">Add a New Card</SPAN>';
   }

   document.write(strHtml);
}


function Write_add_new_credit_card_info()
{
  var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   To add a new credit card, complete all the fields below. You can change or delete ';
  strHtml = strHtml + '   card information at any time from the Checkout & Payment Preferences section of your account. ';
  strHtml = strHtml + '   To learn more about how we use and protect credit card information, please review our ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</SPAN>';
  
  document.write(strHtml);
}



//**********************************************************************************************************************************//
//                                            EDIT  NEW CREDIT CARD - MYACCOUNT                                                      //
//**********************************************************************************************************************************//

var MYACCOUNT_EDIT_CARD_PAGE_TITLE  =  "MyAccount | Edit Credit Card";
var MYACCOUNT_EDIT_CARD_SUBMIT_TXT = "Please make any changes and click Submit. ";

function Write_edit_credit_card_info()
{
  var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Enter any changes to your credit card below. ';
  strHtml = strHtml + '   To learn more about how we use and protect credit card information, please review our ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</SPAN>';
 
  document.write(strHtml);
}



//**********************************************************************************************************************************//
//                                             EDIT LOGIN INFORMATION - MYACCOUNT                                                   //
//**********************************************************************************************************************************//

var MYACCOUNT_EDIT_LOGIN_PAGE_TITLE  = "MyAccount | Edit Log-in Information";

var EDIT_LOGIN_SUBMIT_TXT            = "Please make any changes and click Submit. ";

var EDIT_LOGIN_PASSWORD_INSTRUCTIONS = "Password must be at least 6 characters long.";

var EDIT_LOGIN_USERNAME_INSTRUCTIONS = " We suggest using your email address to make this easier for you to remember.";

function Write_edit_login_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Edit Shop Login Information';

  document.write(strHtml);
}

function Write_edit_login()
{
   var strHtml = "";
   strHtml = strHtml + "<span class=\"hdrLargeBold\">Login Settings</span>";

  document.write(strHtml);
}

function Write_edit_login_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   To change your username or password, enter a new one below. <BR> ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="smallbold">';
  strHtml = strHtml + '   Please note:';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   This will not change the password for your Barbiecollector.com account that allows you ';
  strHtml = strHtml + '   access to The Barbie Bulletin Board. To change your BarbieCollector.com password, ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="smallbold">';
  strHtml = strHtml + '   <a href ="http://www.barbiecollector.com/club/?t=b"> click here </a>'; 
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   to login, then click on your name in the top left of the navigation bar to ';
  strHtml = strHtml + '   go to the My Account page. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}


//**********************************************************************************************************************************//
//                                      EDIT CONTACT PREFERENCES - MYACCOUNT                                                        //
//**********************************************************************************************************************************//

var MYACCOUNT_EDIT_PREFERNCE_PAGE_TITLE  = "MyAccount | Edit Contact Preferences";
var EDIT_PREFERENCES_SUBMIT_TXT          = "Please make any changes and click Continue. ";

function Write_edit_contact_preferences_graphic()
{
   var strHtml = "";
  strHtml = strHtml + '<span class="subheader">Edit My Contact Preferences</span>';

  document.write(strHtml);

}


function Write_edit_preferences_info()
{
    var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + "   Let us know how you'd like us to contact you, For more information, please read our ";
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//**********************************************************************************************************************************//
//                                      CHECKOUT PREFERENCES - MYACCOUNT                                                            //
//**********************************************************************************************************************************//

var CHECKOUT_PREFERENCES_PAGE_TITLE  =  "MyAccount | Checkout Preferences";
var CHECKOUT_PREFERENCES_SUBMIT_TXT  =  "Please make any changes and click Continue. ";

function Write_checkout_preferences_info()
{
    var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Use this page to add, edit or delete credit card information,  ';
  strHtml = strHtml + '   change your default credit card, or sign up for Express Checkout. To learn  ';
  strHtml = strHtml + '   more about how we use and protect credit card information, Please review our ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}


function Write_express_checkout_info1()
{
    var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '    For fast and and easy "one click" ordering try Express Checkout!'; 
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'EXPRESS_CHECKOUT\',\'400\',\'400\');"> Tell me more about this. </a>';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}


//********************************************************************************************************************************//
//                                             SHIPPING ADDRESS - MYACCOUNT                                                       //
//********************************************************************************************************************************//

var MYACCOUNT_SHIPPING_ADDRESS_PAGE_TITLE   =   "MyAccount | Shipping Address";
var MYACCOUNT_SHIPPING_SUBMIT_TXT           =   "Please make any changes and click Continue. ";

function Write_shipping_addresses_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<span class="nameheader">Edit a Shipping Address</span>';

   document.write(strHtml);

}

function Write_shipping_address_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Use this page to add, edit or delete addresses from your list of addresses. ';
  strHtml = strHtml + '   You can also change your default shipping address. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}


//********************************************************************************************************************************//
//                                           DELETE SHIPPING ADDRESS  -  MYACCOUNT                                                //
//********************************************************************************************************************************//

var MYACCOUNT_DELETE_SHIP_ADDRESS_PAGE_TITLE  = "MyAccount | Delete Shipping Address";

function Write_delete_shipping_address_graphic()
{
  var strHtml = "";
  strHtml = strHtml + 'Delete a Shipping Address';

  document.write(strHtml);

}


function Write_delete_ship_address_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   You are choosing to delete the following address: ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//********************************************************************************************************************************//
//                                           DELETE CREDIT CARD -  MYACCOUNT                                                      //
//********************************************************************************************************************************//

var MYACCOUNT_DELETE_CARD_PAGE_TITLE         = "MyAccount | Delete Card ";

function Write_delete_credit_card_graphic()
{
   var strHtml = "";
  strHtml = strHtml + 'Delete a Credit Card';

  document.write(strHtml);

}


function Write_delete_card_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   You are choosing to delete the following credit card: ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}



//********************************************************************************************************************************//
//                                         ADD BILLING ADDRESS - CHECKOUT                                                         //
//********************************************************************************************************************************//

var CHECKOUT_BILLING_ADDRESS_PAGE_TITLE = "Checkout | Billing Address";

var CHECKOUT_BILLING_ADDRESS_SUBMIT_TXT = "<span class=\"text\">Enter your information and click Continue.</span>";

function Write_checkout_billing_address_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Please enter your Billing Address and Contact Preferences to continue. ';
  strHtml = strHtml + '   Required information is marked with an asterisk (';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="mandatory">';
  strHtml = strHtml + '*';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + ').';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_checkout_promotional_email_label(checked)
{

   var strHtml = "";
   if (PROMOTIONAL_EMAIL_CHECK)
   {
     strHtml = strHtml + '<TR> <TD>  <BR><BR> </TD> </TR>';
   }
   else
   {
     strHtml = strHtml + '<TR> <TD>  <BR><BR> </TD> </TR>';
   }

   document.write(strHtml);
}


function Write_checkout_promotional_email(checked)
{
   var strHtml = "";
   if (PROMOTIONAL_EMAIL_CHECK)
   {
     strHtml = strHtml + '<TR>';
     strHtml = strHtml + '<TD align="left" valign="top">';
     strHtml = strHtml + '<INPUT class="tdBkgd" type="checkbox" name="p_promotional_email_flag" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="text">';
     strHtml = strHtml + "    Yes, I'd like to receive the latest news about promotions and events";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<TR> <TD> &nbsp; <BR> </TD> </TR>';
   }

   document.write(strHtml);
}


function Write_checkout_birthdate_info()
{
      var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  Please provide your birth date to allow us to get to know our collectors better. '; 
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href=""></a> ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}



//************************************************************************************************************************************//
//                                             SHIPPING ADDRESS - CHECKOUT                                                            //
//************************************************************************************************************************************//

var CHECKOUT_SHIPPING_ADDRESS_PAGE_TITLE  = "Checkout | Shipping Address";

var CHECKOUT_SHIPPING_ADDRESS_SUBMIT_TXT  = "<span class=\"text\">Select your address and click Continue.</span>";

function Write_checkout_shipping_address_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   To add a new shipping address, complete the fields below. Required information is marked with an asterisk (';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="mandatory">';
  strHtml = strHtml + '*';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + ').';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_shipping_information()
{
  var strHtml = "";

  strHtml = strHtml + 'At this time, we only ship to Canada, the United States and ';
  strHtml = strHtml + 'its territories. (Canadian Customs requires ';
  strHtml = strHtml + 'Canadian recipients to pay customs and ';
  strHtml = strHtml + 'duties on each shipment). ';
  strHtml = strHtml + '<BR><BR> ';
  strHtml = strHtml + 'We do ship to APO/FPO addresses (via standard shipping only). ';
  strHtml = strHtml + 'We do not ship to P.O. Boxes. ';
  strHtml = strHtml + '<BR><BR> ';
  strHtml = strHtml + 'For more detailed information on shipping ';
  strHtml = strHtml + '<SPAN class="subhead"> ';
  strHtml = strHtml + '<a href="javascript:win_popup(\'/html/shared/ShippingInfo.html\',\'400\',\'200\',\'180\',\'150\');">click here</a>.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//************************************************************************************************************************************//
//                                            SHIPPING OPTIONS PAGE - CHECKOUT                                                        //
//************************************************************************************************************************************//


var CHECKOUT_SHIPPING_ADDRESS_OPTIONS_PAGE_TITLE = "Checkout | Shipping Address Options";

var CHECKOUT_SHIPPING_ADDRESS_OPTIONS_SUBMIT_TXT = "<span class=\"text\">Select your preference and click Continue.</span>";

function Write_shipping_address_options_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  Where would you like to ship your items?<br><br>Please be advised that our company name appears on package mailing labels and all correspondence. Additionally, the product description may be printed on the shipping carton of larger items.  Please consider these factors when selecting your shipping destination. Upon receipt of your order, please check the package contents for accuracy.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//***********************************************************************************************************************************//
//                                           SELECT MULTIPLE SHIPPING ADDRESSES - CHECKOUT                                           //
//***********************************************************************************************************************************//

var MULTIPLE_SHIPPING_ADDRESS_PAGE_TITLE = "Checkout | Multiple Shipping Addresses ";

var MULTIPLE_SHIPPING_ADDRESS_SUBMIT_TXT = "<span class=\"text\">Select the shipping address for each item and click Continue.</span>";

function Write_multiple_shipping_address_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   To ship items to more than one address, please specify each address next to each item.';
  strHtml = strHtml + '    To ship to an address other than your billing address, click "Add an Address" ';
  strHtml = strHtml + '    Please note that there is an additional shipping charge for shipping to multiple addresses.  ';  
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'/html/shared/MultShip.html\',\'400\',\'200\');">Click here</a> ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   for more information. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//**********************************************************************************************************************************//
//                                          SELECT SHIPPING OPTIONS  -  CHECKOUT
//**********************************************************************************************************************************//

var SELECT_SHIPPING_OPTIONS_PAGE_TITLE = "Checkout | Select Shipping Options";

var SELECT_SHIPPING_OPTIONS_SUBMIT_TXT = "<span class=\"text\">Select your options and click Continue.</span>";

//function Write_shipping_options_info(aDate) // for testing seasonal shipping messages (with currdate line below)
function Write_shipping_options_info()
{
	var d = new Date();
	// convert date to YYYYMMDD format
	var dy = d.getFullYear();
	var dm = ((d.getMonth()+1) < 10)?'0'+(d.getMonth()+1):d.getMonth()+1;
	var dd = (d.getDate() < 10)?'0'+d.getDate():d.getDate();
	var currdate = dy + '' + dm + '' + dd; // force to string
//	var currdate = aDate; // for testing seasonal shipping messages

	var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Please select your shipping options, then click Continue. ';
  strHtml = strHtml + '   To calculate delivery time, ';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a class="hdrLink" href="Javascript:win_popup(\'/pls/bc/shipping_days\',\'450\',\'325\');">click here</a>';
  strHtml = strHtml + '</SPAN>.<br><br>';
  strHtml = strHtml + '   For best Standard delivery results, please provide a shipping address that can receive packages from UPS';
  strHtml = strHtml + '   as well as the US Postal Service. All shipments to a PO Box will be delivered by the US Postal Service.</SPAN><br><br>';

	strHtml = strHtml + '<div class="holShip">';

// messaging for April 2009 system outage //
	// start with latest date and work backwards
//	if (currdate >= 20090420) {
//		null;
//  }
//  else if (currdate >= 20090415) {
//    strHtml = strHtml + '<p>PLEASE NOTE: Due to system maintenance, detailed delivery information may be unavailable.</p>';
//		strHtml = strHtml + '<p><b>Estimated</b> delivery time is:<br>';
//		strHtml = strHtml + 'Standard Shipping - 7-13 business days<br>';
//		strHtml = strHtml + '3-business day shipping - 7 business days<br>';
//		strHtml = strHtml + '2-business day shipping - 6 business days<br>';
//		strHtml = strHtml + 'Canadian standard shipping - 10-14 business days<br>';
//		strHtml = strHtml + 'Canadian Expedited shipping - 7 business days</p>';
//  }

// messaging for season //
	if (currdate <= 20091221) {
		strHtml = strHtml + '<p><span>Remember these important shipping dates to ensure your Barbie Collector delivery is on time:</span></p>';
	}

	// start with latest date and work backwards
	strHtml = strHtml + '<ul>';

	if (currdate >= 20091226) {
		null;
  }
  else if (currdate >= 20091222) {
    strHtml = strHtml + '<li>All orders placed today will arrive after Christmas.</li>';
  }
  else if (currdate >= 20091221) {
    strHtml = strHtml + '<li>Christmas &#8211; <b>Today is the last day to order in-stock items in time for Christmas. Two-business-day delivery is required for all shipments to all US locations.</b> Three-business-day service is no longer guaranteed to arrive before Christmas. Neither of these ship methods is available for P.O. Boxes. <a href="javascript:win_popup(\'/pls/bc/shipping_days\',450,325);">Calculate your estimated delivery time</a>.</li>';
    strHtml = strHtml + '<li>APO/FPO and Canadian orders can no longer be shipped in time for Christmas delivery.</li>';
  }
  else if (currdate >= 20091217) {
    strHtml = strHtml + '<li>Christmas &#8211; Rush shipping is now recommended to ensure Christmas delivery to all US locations. <a href="javascript:win_popup(\'/pls/bc/shipping_days\',450,325);">Calculate your estimated delivery time</a>.</li>';
    strHtml = strHtml + '<li>For all US locations, the last day to place an order using rush shipping in time for Christmas delivery is 12/21/2009.</li>';
    strHtml = strHtml + '<li>Three-business-day service is no longer guaranteed in three business days, but orders shipped by this method will arrive on or before 12/24/2009.  This ship method is not available to P.O. Boxes.</li>';
    strHtml = strHtml + '<li>APO/FPO and Canadian orders can no longer be shipped in time for Christmas delivery.</li>';
  }
  else if (currdate >= 20091216) {
    strHtml = strHtml + '<li>Christmas &#8211; For shipments to all US locations and US Territories, <b>except</b> Illinois, Indiana, Iowa, Michigan, Minnesota, and Wisconsin, rush shipping is now recommended to ensure delivery in time for Christmas. <a href="javascript:win_popup(\'/pls/bc/shipping_days\',450,325);">Calculate your estimated delivery time</a>.</li>';
    strHtml = strHtml + '<li>For all US locations, the last day to place an order using rush shipping in time for Christmas delivery is 12/21/2009.</li>';
    strHtml = strHtml + '<li>Three-business-day service is no longer guaranteed in three business days, but orders shipped by this method will arrive on or before 12/24/2009. This shipping method is not available to P.O. Boxes.</li>';
    strHtml = strHtml + '<li>APO/FPO and Canadian orders can no longer be shipped in time for Christmas delivery.</li>';
  }
  else if (currdate >= 20091215) {
    strHtml = strHtml + '<li>Christmas &#8211; For shipments to all US locations and US Territories, <b>except</b> Illinois, Indiana, Iowa, Kansas, Kentucky, Michigan, Minnesota, Missouri, Nebraska, North Dakota, Ohio, South Dakota, Tennessee, West Virginia, and Wisconsin, rush shipping is now recommended to ensure delivery in time for Christmas. <a href="javascript:win_popup(\'/pls/bc/shipping_days\',450,325);">Calculate your estimated delivery time</a>.</li>';
    strHtml = strHtml + '<li>For all US locations, the last day to place an order using rush shipping in time for Christmas delivery is 12/21/2009.</li>';
    strHtml = strHtml + '<li>Three-business-day service is no longer guaranteed in three business days, but orders shipped by this method will arrive on or before 12/24/2009. This shipping method is not available to P.O. Boxes.</li>';
    strHtml = strHtml + '<li>APO/FPO and Canadian orders can no longer be shipped in time for Christmas delivery.</li>';
  }
  else if (currdate >= 20091211) {
    strHtml = strHtml + '<li>Christmas &#8211; For shipments to Alaska, California, Hawaii, Nevada, Oregon, and Washington, rush shipping is now recommended to guarantee delivery in time for Christmas. <a href="javascript:win_popup(\'/pls/bc/shipping_days\',450,325);">Calculate your estimated delivery time</a>.</li>';
    strHtml = strHtml + '<li>For all other US locations, the last day to place an order using rush shipping in time for Christmas delivery is 12/21/2009.</li>';
    strHtml = strHtml + '<li>APO/FPO and Canadian orders can no longer be shipped in time for Christmas delivery.</li>';
  }
  else if (currdate >= 20091208) {
    strHtml = strHtml + '<li>Hanukkah &#8211; Orders placed today will arrive after Hanukkah.</li>';
    strHtml = strHtml + '<li>Christmas &#8211; The last day to place an order using standard shipping in time for Christmas delivery is 12/10/2009; by rush, it&#8217;s 12/21/2009.</li>';
    strHtml = strHtml + '<li>APO/FPO and Canadian orders can no longer be shipped in time for Christmas delivery.</li>';
  }
	else if (currdate >= 20091128) {
    strHtml = strHtml + '<li>Hanukkah &#8211; Rush shipping is now recommended to all US locations to ensure delivery by 12/11/2009.</li>';
    strHtml = strHtml + '<li>Christmas &#8211; The last day to place an order using standard shipping in time for Christmas delivery is 12/10/2009; by rush, it&#8217;s 12/21/2009.</li>';
    strHtml = strHtml + '<li>APO/FPO shipments &#8211; The last day to place an order in time for Christmas delivery is 12/01/2009.</li>';
    strHtml = strHtml + '<li>Canadian shipments &#8211; The last day to place an order using standard shipping in time for Christmas delivery is 12/03/2009; by rush it&#8217;s 12/07/2009. <span>Quoted delivery time is to Customs. Additional time may be required for packages to clear Customs.</span></li>';
  }
	else if (currdate >= 20091116) {
    strHtml = strHtml + '<li>Hanukkah &#8211; The last day to place an order using standard shipping in time for Hanukkah delivery is 11/27/2009; by rush, it&#8217;s 12/07/2009.</li>';
    strHtml = strHtml + '<li>Christmas &#8211; The last day to place an order using standard shipping in time for Christmas delivery is 12/10/2009; by rush, it&#8217;s 12/21/2009.</li>';
    strHtml = strHtml + '<li>APO/FPO shipments &#8211; The last day to place an order in time for Christmas delivery is 12/01/2009.</li>';
    strHtml = strHtml + '<li>Canadian shipments &#8211; The last day to place an order using standard shipping in time for Christmas delivery is 12/03/2009; by rush it&#8217;s 12/07/2009. <span>Quoted delivery time is to Customs. Additional time may be required for packages to clear Customs.</span></li>';
  }

	strHtml = strHtml + '</ul>';

	if (currdate <= 20091221) {
    strHtml = strHtml + '<p><span>Note:</span> Shipping dates are for in-stock items only.</p>';
		strHtml = strHtml + '<p><span>Shipping to a business address?</span> Please consider whether the business will be open to accept delivery on the last day of the estimated days to deliver as shown in the <a href="javascript:win_popup(\'/pls/bc/shipping_days\',450,325);">shipping calculator</a>.</p>';
	}

	strHtml = strHtml + '</div>';

  document.write(strHtml);

}

function Write_shipping_cost_estimates_info()
{
    var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Our goal is to ship your order as quickly as possible-subject to availability, ';
  strHtml = strHtml + '   receipt of payment, and credit authorization. Delivery calculation starts on the first business ';
  strHtml = strHtml + '   day after the order is placed.  (Business days are Monday through Friday, not including holidays.) ';
  strHtml = strHtml + '   Fees are based on your order total, excluding taxes. ';
  strHtml = strHtml + '   If an item is back-ordered, it will be shipped as soon as it becomes available.';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'/html/shared/ShippingInfo.html\',\'400\',\'200\');"> click here </a>';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   for more information regarding our shipping rates. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//**********************************************************************************************************************************//
//                                          GIFT OPTIONS  -  CHECKOUT                                                               //
//**********************************************************************************************************************************//

var GIFT_OPTIONS_PAGE_TITLE = "Checkout | Gift Options";
    
var GIFT_OPTIONS_SUBMIT_TXT = "Select your options and click Continue. ";

function Write_gift_options_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   We can make your gift giving easy! We\'ll send one receipt and one message per shipping address. ';
  strHtml = strHtml + '   and let you select which items you wish to gift wrap. For more information about gift options, ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'GIFT_WRAP\',\'400\',\'200\');"> click here </a> ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_gift_receipt_info()   
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + "   We'll send one receipt per address. (Exchanges and returns are much easier when you select this option.)";
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_gm_message()
{
  var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '<b>Gift Message</b>--no charge.';
  strHtml = strHtml + '<BR>';
  strHtml = strHtml + '<a href="Javascript:win_popup(\'GIFT_MESSAGE\',\'450\',\'275\');"><span class="text">See example</span></a>';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_gift_cert_message()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + "   Note: When ordering a gift certificate, it is not necessary to create an additional gift ";
  strHtml = strHtml + "   message for the recipient. A gift message is already included with the gift certificate. ";
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_no_gift_cert_message()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  There is no need to type a new gift message here; you were already asked to create one when ';
  strHtml = strHtml + '  you added a gift certificate to your order.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//************************************************************************************************************************************//
//                                           PAYMENT OPTIONS - CHECKOUT                                                               //
//************************************************************************************************************************************//

var SELECT_PAYMENT_PAGE_TITLE = "Checkout | Select Payment Options";

var SELECT_PAYMENT_SUBMIT_TXT = "Make your selections and click Continue. ";
function Write_select_payment_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Enter any promo codes or gift certificate information you may have below. ';
  strHtml = strHtml + '   Then select a credit card for payment. To learn how we use and protect your credit card information,';
  strHtml = strHtml + '   Please review our ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');"> PRIVACY POLICY </a> ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_promo_code_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   <b>Do you have a promo code</b> from an e-mail or catalog you received? If so, please enter it below. ';
  strHtml = strHtml + '   <a class="subhead" href="javascript:win_popup(\'/html/shared/KeyCode.html\',\'400\',\'200\');">What\'s this?</a>';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_gift_certificate_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  <b>Do you have a Gift Certificate?</b> If so, please enter the number and amount below. For more information on gift certificates, ';
  strHtml = strHtml + '   <a href="javascript:win_popup(\'/html/shared/GiftCert.html\',\'400\',\'200\');"><span class="text">click here</span></a>.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_gift_card_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  <b>Do you have a Gift Card?</b> If so, please enter the number and PIN below. For more information on gift cards, ';
  strHtml = strHtml + '   <a href="javascript:win_popup(\'/html/shared/GiftCert.html\',\'400\',\'200\');"><span class="text">click here</span></a>.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//*************************************************************************************************************************************//
//                                                 ORDER SUMMARY - CHECKOUT
//*************************************************************************************************************************************//

var ORDER_SUMMARY_PAGE_TITLE = "Checkout | Order Summary";

var ORDER_SUMMARY_SUBMIT_TXT = '<span class="red">Please double-check your order for accuracy. Orders cannot be modified or canceled after you click the Place Order button.</span>';

function Write_order_summary_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Make sure your order is correct before proceeding. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function Write_email_conf_info() 
{
  var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + 'Check this box to receive an email confirmation of ';
  strHtml = strHtml + 'your order at the address shown below. You may edit ';
  strHtml = strHtml + 'the address if you wish.';
  strHtml = strHtml + '</SPAN>';
 
  document.write(strHtml); 

}

function Write_days_to_delivery(msg) 
{
  var strHtml = "";

  if (msg != "") {
    strHtml = strHtml + '<SPAN class="text">';
    strHtml = strHtml + '  <font color="red">Your in-stock items should arrive in approximately ' + msg + ' business days.</font>';
    strHtml = strHtml + '</SPAN>';
  }

  document.write(strHtml);
}

//************************************************************************************************************************************//
//                                              REGISTRATION - CHECKOUT                                                               //
//************************************************************************************************************************************//

var CHECKOUT_REGISTRATION_PAGE_TITLE = 	"Checkout Register";

var CHECKOUT_REGISTRATION_SUBMIT_TXT =  "Enter your login information and checkout options, then click Register";

function checkout_registration_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Select a username and password for your account. Then consider using our Express Checkout option, ';
  strHtml = strHtml + '   so the next time you shop with us, you will not have to re-enter this information.';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function registration_express_checkout_info()
{
   var strHtml = ""; 
  strHtml = strHtml + '<SPAN class="text">'; 
  strHtml = strHtml + '   Lorem ipsum dolor sit amet, consectetuer  adipiscing elit, sed diam ';
  strHtml = strHtml + '   nonummy nibh euismod tincidunt ut';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//*************************************************************************************************************************************//
//                                            CHECKOUT CONFIRMATION - CHECKOUT                                                         //
//*************************************************************************************************************************************//

var CHECKOUT_CONFIRM_PAGE_TITLE = "Checkout Confirmation";

function please_join_us_info()
{
   var strHtml = "";
  strHtml = strHtml + '<p class="textPad">';
  strHtml = strHtml + '   Make your next shopping experience at Barbiecollector.com even faster and easier ';
  strHtml = strHtml + '   by allowing us to store your information. ';
  strHtml = strHtml + '<ul>';
  strHtml = strHtml + '<li>Store your billing information for quicker checkout.';
  strHtml = strHtml + '<li>Add multiple shipping addresses to your account for easier gift-giving. ';
  strHtml = strHtml + '<li>Get exclusive news regarding the latest online promotions from Barbie Collector! ';
  strHtml = strHtml + '</ul>';
  strHtml = strHtml + '</p>';


  document.write(strHtml);

}

function what_is_next_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="textPad">';
  strHtml = strHtml + ' Feel free to continue shopping, or explore barbiecollector.com for further information, fun activities and more!';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

function webtrends_bag (cartStage,pc,tx_t,pn,tx_u,tx_s)
{
  var strHtml = "";

  strHtml = strHtml + '<meta name="WT.si_n" content="ShoppingCart">';
  strHtml = strHtml + '<meta name="WT.si_p" content="' + cartStage + '">';

  if (cartStage == 'CartComplete') {
    strHtml = strHtml + '<meta name="WT.pc" content="' + pc + '">';
    strHtml = strHtml + '<meta name="WT.tx_t" content="' + tx_t + '">';
    strHtml = strHtml + '<meta name="WT.pn" content="' + pn + '">';
    strHtml = strHtml + '<meta name="WT.tx_u" content="' + tx_u + '">';
    strHtml = strHtml + '<meta name="WT.tx_s" content="' + tx_s + '">';
  }

  document.write(strHtml);

}

function Write_club_message(p_member_number)
{
  var strHtml = "";

  strHtml = strHtml + '<table cellpadding="0" cellspacing="0">';
  strHtml = strHtml + '<tr>';
  strHtml = strHtml + '<td class="textPad" align="left">';
  strHtml = strHtml + '  <b>Congratulations! You are member number ' + p_member_number + ' in the Barbie<sup>SM</sup> Fan Club. ';
  strHtml = strHtml + '  Click <a href="http://www.barbiecollector.com/club/bfc/">here</a> to visit the Barbie<sup>SM</sup> Fan Club section ';
  strHtml = strHtml + '  of BarbieCollector.com where you\'ll find Fan Club only content. </b>';
  strHtml = strHtml + '  <br><br>';
// uncomment 2 lines below after 3/18
//  strHtml = strHtml + '  <b>Please Note</b>: Your first club reward will be active only after your membership card has shipped. ';
//  strHtml = strHtml + '  The membership card will ship within 3-5 business days after you place your order. If you have requested e-mail ';
//  strHtml = strHtml + '  order confirmations, you will receive an e-mail when it ships. The reward should become active within 24 hours ';
//  strHtml = strHtml + '  of the date of the e-mail. <br><br>';
// comment 2 lines below afte 3/18
  strHtml = strHtml + '  <b>Please Note</b>: Your first club reward will be active within 3-5 days after purchase confirmation. ';
  strHtml = strHtml + '  Your membership kit is scheduled to mail 3/18/09. If you have requested e-mail ';
  strHtml = strHtml + '  order confirmations, you will receive an e-mail when it ships.<br><br>';
// above will go away after 3/18
  strHtml = strHtml + '  Rewards will automatically appear in your shopping bag the next time you make a qualifying purchase in the ';
  strHtml = strHtml + '  BC.com Shop within the specific time period for each reward. Qualifying purchases are purchases in excess ';
  strHtml = strHtml + '  of the reward amount, except excluded items (Including, but not limited to, BFC<sup>&#153;</sup> membership ';
  strHtml = strHtml + '  fees, Gift Certificates, Gift-wrapping, any applicable sales tax and shipping ';
  strHtml = strHtml + '  and processing). The reward is non-transferable and may only be used with online orders. Shop rewards ';
  strHtml = strHtml + '  associated with multiple club memberships cannot be combined.<br><br>';
  strHtml = strHtml + '  <b>Your Club rewards will be as follows</b>:<br>';
  strHtml = strHtml + '  <b>1st reward</b>: $20 merchandise credit reward, applied upon membership card shipment and valid through 3/31/09<br>';
  strHtml = strHtml + '  <b>2nd reward</b>: $30 merchandise credit reward, applied starting 4/1/09 (<i>or upon membership card shipment if not previously a BFC<sup>&#153;</sup> member</i>) valid through 6/30/09<br>';
  strHtml = strHtml + '  <b>3rd reward</b>: $20 merchandise credit reward, applied starting 7/1/09 (<i>or upon membership card shipment if not previously a BFC<sup>&#153;</sup> member</i>) valid through 9/30/09<br>';
  strHtml = strHtml + '  <b>4th reward</b>: $20 merchandise credit reward, applied starting 10/1/09 (<i>or upon membership card shipment if not previously a BFC<sup>&#153;</sup> member</i>) valid through 12/31/09';
  strHtml = strHtml + '</td>';
  strHtml = strHtml + '</tr>';
  strHtml = strHtml + '</table>';

  document.write(strHtml);

}

//*************************************************************************************************************************************//
//                                            ORDER STATUS LOGIN PAGE
//
//*************************************************************************************************************************************//

var ORDER_STATUS_LOGIN_TITLE = "Order Status Log in";
var ORDER_STATUS_LOGIN_CLICK_MESG = "";
var ORDER_STATUS_SUBMIT_MSG = "";
var ORDER_STATUS_ORDERS_TITLE = "Order Status";


function Write_order_status_login_title()
{
   var strHtml = "";
   strHtml = strHtml + "Order Status";

   document.write(strHtml);
}


function Write_order_status_explain_text()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="faqtext">';
   strHtml = strHtml + "If you've created an account with us, please log in below to check on your order. ";
   strHtml = strHtml + "If you have not created a registered account with us, you can still check your order status ";
   strHtml = strHtml + "using your billing information.  Required information is marked with an asterisk (*).";
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_order_status_login_graphic()
{
  var strHtml = "";
  strHtml = strHtml + '<TR>';
  strHtml = strHtml + '<TD class="hdrLargeBold">Registered Users Log in: </TD>';
  strHtml = strHtml + '</TR>';

  document.write(strHtml);
}

function Write_not_registered_section_graphic()
{
   var strHtml = "";
  strHtml = strHtml + '<TR>';
  strHtml = strHtml + '<TD class="hdrLargeBold">Not Registered?</TD>';
  strHtml = strHtml + '</TR>';

  document.write(strHtml);
}

function Write_order_status_error()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="errors">';
   strHtml = strHtml + 'We were unable to locate any orders for your account. <BR>'; 
   strHtml = strHtml + 'Please wait 30 minutes from the time you submitted your online order to view the status. ';
   strHtml = strHtml + 'If it has been 30 minutes or more, ';
   strHtml = strHtml + 'please return to the Order Status screen and verify the information you entered or call Customer Service ';
   strHtml = strHtml + '1-800-491-7514 7 a.m. to 10 p.m. CST, seven days a week, or email us at ';
   strHtml = strHtml + '<a href="mailto:customerservice@barbiecollector.com">customerservice@barbiecollector.com</a>. ';
   strHtml = strHtml + '</SPAN>';

  document.write(strHtml);
}

function Write_order_status_orders_text()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="faqtext">';
   strHtml = strHtml + 'You can use the information below to review and track your recent orders. ';
   strHtml = strHtml + 'Click on an individual order number to see detailed information. ';
   strHtml = strHtml + 'Please wait 30 minutes from the time you submitted your online order to view the status. ';
   strHtml = strHtml + 'If it has been 30 minutes or more, ';
   strHtml = strHtml + 'please return to the Order Status screen and verify the information you entered or call Customer Service ';
   strHtml = strHtml + '1-800-491-7514<br> 7 a.m. to 10 p.m. CST, seven days a week, or email us at ';
   strHtml = strHtml + '<a class="textlink" href="mailto:customerservice@barbiecollector.com">customerservice@barbiecollector.com</a>. ';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);

}

function Write_order_status_footer()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="faqtext">';
   strHtml = strHtml + 'Our goal is to ship your order as quickly as possible subject to availability, receipt of payment, ';
   strHtml = strHtml + 'and credit authorization. Once an order is submitted through the barbiecollector.com store, ';
   strHtml = strHtml + 'it goes immediately into the system and cannot be changed. ';
   strHtml = strHtml + 'All orders, however, may be returned unless otherwise stated. <br><br>';
   strHtml = strHtml + 'For more information on Tracking Status, click ';
   strHtml = strHtml + '<a class="textlink" href="Javascript:win_popup(\'ORDER_LISTING\',\'400\',\'400\');">here</a>.';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);

}


function Write_order_status_page_info()
{
   var strHtml = "";

   document.write(strHtml);

}

function Write_points_graphic() {
   document.write('Barbie<sup>SM</sup> Fan Club Rewards Summary');
}

function Write_points_headline() {
   document.write('BFC<sup>&#153;</sup> Rewards - Transaction History');
}

function Write_points_copy() {
  var strHtml = "";
  strHtml = strHtml + 'How did we calculate your Current Point Balance? ';
  strHtml = strHtml + '</span>';
  strHtml = strHtml + '<a href="account.display_points">Click here</a>';
  strHtml = strHtml + '<span class="text">';
  strHtml = strHtml + ' for more info.';
  strHtml = strHtml + '</span>';

  document.write(strHtml);

}

function Write_points_info() {
  var strHtml = "";
  strHtml = strHtml + '<span class="text">';
  strHtml = strHtml + 'Check out your BFC<sup>&#153;</sup> Rewards history for the current year at a glance with these helpful summaries. Remember: the points you earn have been rounded to the nearest dollar for each purchase.';
  strHtml = strHtml + '</span>';

  document.write(strHtml);

}

function Write_no_shipping_methods() {

  var strHtml = "";

  strHtml = strHtml + 'One or more items on your order has shipping restrictions.  ';
  strHtml = strHtml + 'Refer to the list below or see individual product pages for shipping restrictions.  ';
  strHtml = strHtml + 'Please select a <a class="hdrLink" href="/pls/bc/checkout_interface.main?p_action=gotoShipping">different ship-to address</a> or remove ';
  strHtml = strHtml + 'the restricted items from your <a class="hdrLink" href="http://' + location.hostname + '/pls/bc/shopping_bag.main">shopping cart</a>.<br/><br/>';

  document.write(strHtml);

}//end Write_no_shipping_methods

function Write_international_billing()
{

}
