//
// @(#)$Header:   //VM/ecom/archives/mbstore/htdocs/store/includes/common.js-arc   1.14   Nov 12 2009 15:59:20   flyjames  $
//

var gImageRoot   = "/reg/images/";
var gAccImageRoot = "/account/images/";
var gMyAcctImageRoot   = "/account/images/";
var gButtonImgRoot     = "/account/images/buttons/";
var SITE_NAME    = "Hot Wheels";


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 == '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.hotwheelscollectors.com/site/privacypolicy.aspx";}
  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  = "Catalog 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@mattelwheels.com"; 

function Write_footer()
{
   var strHtml = "";

/*
   strHtml  = strHtml + '<table>';
   strHtml  = strHtml + '<tr>';
   strHtml  = strHtml + '<td>';
   strHtml  = strHtml + '&nbsp;&nbsp;&nbsp;';
   strHtml  = strHtml + '</td>';
   strHtml  = strHtml + '<td>';
   strHtml  = strHtml + '<SPAN class="smallbold">';
   strHtml  = strHtml + '   Privacy/Security Statement: ';
   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\',\'400\',\'400\');">';
   strHtml  = strHtml + '   PRIVACY POLICY</a>.</SPAN>';
   strHtml  = strHtml + '</td>';
   strHtml  = strHtml + '</tr>';
   strHtml  = strHtml + '</table>';


   strHtml = strHtml + '<p id="privPol"><span>Privacy/Security Statement:</span> Mattel respects your privacy, ';
   strHtml = strHtml + 'and is committed to ensuring the security of your personal information and your shopping experience.';
   strHtml = strHtml + ' For more information, please review our <a href="javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.</p>'
*/

   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 + '  Click the "My Account" button to review or change your account details, add additional shipping ';
   strHtml = strHtml + '  addresses to your Address Book for faster and easier checkout, and add credit cards to increase ';
   strHtml = strHtml + '  your payment options.  Or click the "Continue Shopping" button to check out the action in the Hot Wheels Shop!';
   strHtml = strHtml + '</SPAN>';
   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 + '     Enter the shipping address below and click "Continue."';
   strHtml = strHtml + '     Fields marked with an asterisk (*) are required.';
   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 + '  Use this page to edit a shipping address. Fields marked with an asterisk ('
   strHtml = strHtml + '<SPAN class="mandatory">*</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + ') are required. ';
   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 = "We suggest using your e-mail address for this. ";
var REGISTRATION_PASSWORD_INSTRUCTIONS = "Your password must be at least six characters long.";
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 + 'Credit Card Information ';

   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 buy.';

   document.write(strHtml);
}

function Write_billing_address_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Billing Information';

   document.write(strHtml);
}


function Write_contact_prefereces_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Contact Information';

   document.write(strHtml);
}


function Write_login_setting_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Sign In Settings';

   document.write(strHtml);
}


function Write_create_shopping_account_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Create Your Account';

   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 + "    I'd like to receive the latest Hot Wheels Collector&trade; news and special shop promotions via e-mail.";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<tr>';
     strHtml = strHtml + '<td>';
     strHtml = strHtml + '<input type="hidden" name="p_promotional_email_flag" value="Y" />';
     strHtml = strHtml + '</td>';
     strHtml = strHtml + '<td>';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '</td>';
     strHtml = strHtml + '</tr>';
   }

   document.write(strHtml);
}

function Write_mail_preference(checked)
{

   var strHtml = "";
   if (MAIL_PREFERNCE_CHECK)
   {
     strHtml = strHtml + '<TR>';
     strHtml = strHtml + '<TD align="left" valign="top">';
     strHtml = strHtml + '<INPUT class="tdBkgd" type="checkbox" name="p_mail_preference_code" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="text">';
     strHtml = strHtml + "    Yes, I would like to receive (or continue to receive) copies of your catalogs.";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<tr> <td> <input type="hidden" name="p_mail_preference_code" value="Y" /><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, Mattel may share my e-mail address with its carefully selected promotional partners.";
     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 + '  Sign me up for "one click" ordering with Express Checkout!'; 
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'EXPRESS_CHECKOUT\',\'400\',\'400\');">Tell me more</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 HotWheelsShop.com account information. To make any changes, click the "Edit" or "Add/Edit" buttons. ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<br><br>';
   strHtml = strHtml + '<SPAN class="smallbold">';
   strHtml = strHtml + '   Attention Red Line Club&trade; Members: ';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + '  Please note that this information applies <i>only</i>&nbsp; to your Hot Wheels Shop&trade; account. ';
   strHtml = strHtml + '  To make changes to your RLC&trade; account, <a href="http://www.hotwheelscollectors.com">sign in to the RLC&trade;</a>, ';
   strHtml = strHtml + '  and go to the "My Account" page. '; 
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_myaccount_summary_graphic()
{
   var strHtml = "";
   strHtml = strHtml + "My Account";

   document.write(strHtml);
}


function Write_login_summary_graphic()
{
   var strHtml = ""; 
   strHtml = strHtml + "Sign In Settings";

   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 Information';

   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 + '   We\'ll use this data to pre-fill checkout forms for faster shopping. ';
   strHtml = strHtml + '   Fields marked with an asterisk (';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="mandatory">';
   strHtml = strHtml + '*';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '<SPAN class="text">';
   strHtml = strHtml + ') are required.';
   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 Credit 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 card, complete the fields 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 and Security Policies</a>.';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   All fields are required. ';
  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 + '   To edit this card, complete the fields 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 and Security Policies</a>.';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  All fields are required. ';
  strHtml = strHtml + '</SPAN>';
 
  document.write(strHtml);
}



//**********************************************************************************************************************************//
//                                             EDIT LOGIN INFORMATION - MYACCOUNT                                                   //
//**********************************************************************************************************************************//

var MYACCOUNT_EDIT_LOGIN_PAGE_TITLE  = "MyAccount | Edit Sign In Information";

var EDIT_LOGIN_SUBMIT_TXT            = "Please make any changes and click Submit. ";

var EDIT_LOGIN_PASSWORD_INSTRUCTIONS = "Your password must be at least six characters long.";

var EDIT_LOGIN_USERNAME_INSTRUCTIONS = " We suggest using your e-mail address.";

function Write_edit_login_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Edit Sign In Information';

  document.write(strHtml);
}

function Write_edit_login()
{
   var strHtml = "";
   strHtml = strHtml + "<span class=\"hdrLargeBold\">Sign In Settings</span>";

  document.write(strHtml);
}

function Write_edit_login_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   To change your user name 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 Red Line Club<sup>&#153;</sup> account. ';
  strHtml = strHtml + '   To change your Red Line Club<sup>&#153;</sup> password, ';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="smallbold">';
  strHtml = strHtml + '   <a href="http://www.hotwheelscollectors.com">sign in to the Club</a> '; 
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   and 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 Information";
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 Information</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 to change your Express Checkout preference. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}


function Write_express_checkout_info1()
{
    var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '  Sign me up for "one click" ordering with 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">Shipping Addresses</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 shipping addresses, ';
  strHtml = strHtml + '   or to 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 name and address exactly as they appear on your credit card statement, and select your contact preferences. Fields marked with an asterisk (*) are required.';
  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 + "    I'd like to receive the latest Hot Wheels Collector&trade; news and special shop promotions via e-mail.";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
     strHtml = strHtml + '<tr>';
     strHtml = strHtml + '<td>';
     strHtml = strHtml + '<input type="hidden" name="p_promotional_email_flag" value="Y" />';
     strHtml = strHtml + '</td>';
     strHtml = strHtml + '<td>';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
     strHtml = strHtml + '</td>';
     strHtml = strHtml + '</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 + '   Enter your shipping address below and click "Continue." Fields marked with an asterisk (*) are required.';
  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 also 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 + '  Please select one of the following options:';
  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 + '   Tell us where each item in your Shopping Cart should be sent. If a specific shipping address doesn\'t appear in the drop-down list, click "Add an Address."';
  strHtml = strHtml + '   ';  
  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 year month day integer (ex: 20051225).
	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 + '  Select your shipping options and click "Continue." Note: Only one shipping method per order. Click <a href="javascript:win_popup(\'/html/shared/ShippingInfo.html\',\'450\',\'325\');">here</a> for more information on shipping options.<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.';
/*
  strHtml = strHtml + '   To calculate delivery time, ';
  strHtml = strHtml + '<SPAN class="subhead">';
  strHtml = strHtml + '   click <a class="hdrLink" href="Javascript:win_popup(\'/pls/hw/hw_shipping_days\',450,325);">here</a>';
  strHtml = strHtml + '</SPAN> ';
*/
  strHtml = strHtml + '</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 Hot Wheels 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/hw/hw_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/hw/hw_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/hw/hw_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/hw/hw_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/hw/hw_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/hw/hw_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. 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);

}


//************************************************************************************************************************************//
//                                           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 promotional codes you may have below. Then enter your credit card information and click "Continue."';
  strHtml = strHtml + '   To learn how we use and protect your 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_promo_code_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   <b>Do you have a promo code</b> from an e-mail you received? If so, please enter it here and click "Update". ';
  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 = 'To complete your order, click the "Place Order" button <i>only once</i>.';

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 e-mail confirmation of your order at the address shown, or enter a new address.';
  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">Expect delivery in ' + 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 Submit";

function checkout_registration_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   Select a username and password for your account, choose your email and Express Checkout options, ';
  strHtml = strHtml + '   and you\'re done! We\'ll store your billing and shipping information, so you won\'t have to re-enter ';
  strHtml = strHtml + '   it for your next purchase.';
  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 with us even faster and easier ';
  strHtml = strHtml + '   by creating an account with us. ';
  strHtml = strHtml + '<ul>';
  strHtml = strHtml + '<li>Store your billing information for quicker checkout.';
  strHtml = strHtml + '<li>Add multiple shipping addresses to your address book for easier gift-giving. ';
  strHtml = strHtml + '<li>Get exclusive news regarding the latest online promotions! ';
  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 browsing the shop, or check out the rest of <a href="http://www.hotwheelscollectors.com/default.aspx">HotWheelsCollector.com</a> for news, collecting information, 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);

}

//*************************************************************************************************************************************//
//                                            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="text">';
   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-858-0102 7 a.m. to 10 p.m. CST, Monday-Friday, or e-mail us at ';
   strHtml = strHtml + '<a href="mailto:customerservice@mattelwheels.com">customerservice@mattelwheels.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-858-0102<br> 7 a.m. to 10 p.m. CST, Monday-Friday, or e-mail us at ';
   strHtml = strHtml + '<a class="textlink" href="mailto:customerservice@mattelwheels.com">customerservice@mattelwheels.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 hotwheelsshop.com, ';
   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_forgotten_password()
{

  var strHtml = "";
  strHtml = "Forgot your user name or password?";

  document.write(strHtml);

}

// Functions to display points in Account page for RLC Club Members
function Write_points_graphic() {
   document.write('The Red Line Collectors Club Rewards Summary');
}

function Write_points_headline() {
   document.write('RLC<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 + ' for more info.';

  document.write(strHtml);

}

function Write_points_info() {
  var strHtml = "";
  strHtml = strHtml + '<span class="text">';
  strHtml = strHtml + 'Check out your RLC<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);
}

// end of functions to display points in Account page for RLC Club Members

function Write_international_billing()
{
  var strHtml = "";
  strHtml = "<FONT color=\"#FF0000\">";
  strHtml = strHtml + "  <SPAN class=\"smallbold\">Important: </SPAN>";
  strHtml = strHtml + "  <SPAN class=\"small\"><a href=\"Javascript:win_popup('INTL_SHIP','400','150'); \">";
  strHtml = strHtml + "  Read about International billing and shipping limitations</a>.</SPAN>";
  strHtml = strHtml + "</FONT>";

  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/hw/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/hw/shopping_bag.main">shopping cart</a>.<br/><br/>';

  document.write(strHtml);

}//end Write_no_shipping_methods
