//
// @(#)$Header:   //VM/ecom/archives/fpstore/htdocs/store/includes/common.js-arc   1.35   Nov 12 2009 10:40:40   flyjames  $
//

var SITE_NAME           = "Fisher-Price";
var gImageRoot          = "/reg/images/";
var gMyAcctImageRoot       = "/account/images/";
var gMyAccButtonRoot      ="/account/images/buttons/";


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_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";

function goto_homepage()
{
  var strHtml = "";
  var homeUrl = "";
  switch (location.hostname) {
    case "dev.shop.fisher-price.com":
    case "devwww.fpp.com":
      homeUrl = "http://devwww.fpp.com/fp.aspx?st=10&e=storelanding";
    break;
    case "stage.shop.fisher-price.com":
    case "fpp.com":
      homeUrl = "http://www.fpp.com/fp.aspx?st=10&e=storelanding";
    break;
    case "www.fisher-price.com":
    case "shop.fisher-price.com":
       homeUrl = "http://www.fisher-price.com/fp.aspx?st=10&e=storelanding";
    break;
    default:
       homeUrl = "http://www.fisher-price.com/fp.aspx?st=10&e=storelanding";
    break;
  }

  var strProtocol = "http://";
  strHtml = strHtml + '<html>';
  strHtml = strHtml + '  <SCRIPT language="Javascript">';
  strHtml = strHtml + '    window.location = "' +  homeUrl + '"';
  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.fisher-price.com/us/privacy.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 RemoveBad(InStr){
    InStr = InStr.replace(/\</g,"");
    InStr = InStr.replace(/\>/g,"");
    InStr = InStr.replace(/\"/g,"");
    InStr = InStr.replace(/\'/g,"");
    InStr = InStr.replace(/\%/g,"");
    InStr = InStr.replace(/\;/g,"");
    InStr = InStr.replace(/\(/g,"");
    InStr = InStr.replace(/\)/g,"");
    InStr = InStr.replace(/\&/g,"");
    InStr = InStr.replace(/\+/g,"");
    return InStr;
}



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    = gMyAccButtonRoot + "login.gif";
var REGISTER_SUBMIT = gMyAccButtonRoot + "submit.gif"
var CUSTOMER_SERVICE_MAILID = "service@fisher-price.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="small">';
   strHtml  = strHtml + '   Privacy/Security Statement: ';
   strHtml  = strHtml +     'Fisher-Price 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 + '<a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');"><span class="small">PRIVACY POLICY</span></a>.</SPAN>';

   document.write(strHtml);
}


//***********************************************************************************************************************//
//                                       THANKS FOR REGISTERING SCREEN                                                   //
//***********************************************************************************************************************//

var THANKS_PAGE_TITLE     =   "Thanks for Registering";
var THANKS_MESSAGE        =   "Thank you for registering!";
//Images
var MYACCOUNT_BUTTON_IMG  = gMyAccButtonRoot + "my_account.gif";
var CONTINUE_SHOPPING_IMG = gMyAccButtonRoot + "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 + '<p class="txtExp">';
   strHtml = strHtml + '   You now have an account on fisher-price.com. Click on the My Account button to ';
   strHtml = strHtml + "   review your account information or make any changes. ";
   strHtml = strHtml + '</p>';
   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 = "<span class=\"text\">Please make any changes and click Submit.</span>";

function Write_add_edit_shipping_graphic(shipping_mode)
{
   var strHtml = "";

   if (shipping_mode == "ADD")
   {
      strHtml = strHtml + '<span class="subheader">Add a Shipping Address</span>';
   }
   else
   {
      strHtml = strHtml + '<span class="subheader">Edit a Shipping Address</span>';
   }

   document.write(strHtml);
}

function Write_shipping_address_info_graphic()
{
   var strHtml = "";
   strHtml = strHtml + 'Shipping Address Information';

   document.write(strHtml);
}


function Write_add_shipping_addr_info()
{
   var strHtml ="";
   strHtml = strHtml + '<SPAN class="txtExp">';
   strHtml = strHtml + '     To add a new shipping address, complete the fields below. ';
   strHtml = strHtml + '     Required information is marked with an asterisk (';
   strHtml = strHtml + '<SPAN class="mandatory">';
   strHtml = strHtml + '*';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + ').';
   strHtml = strHtml + '</SPAN> ';

   document.write(strHtml);
}

//The parameter CHILD_ADDRESS_PRESENT is present in 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" align="right">';
   strHtml  =  strHtml + '  <TABLE> <TR>   ';
   strHtml  =  strHtml + '     <TD width="87%"> <INPUT type="checkbox" class="tdBkgd" name="p_child_address" value="Y" '+ checked + '> ';
   strHtml  =  strHtml + '       <SPAN class="txtInfo">';
   strHtml  =  strHtml + '           Please check if this is a child\'s address. </SPAN> ';
   strHtml  =  strHtml + '     </TD><TD width="13%"> &nbsp; </TD>';
   strHtml  =  strHtml + '   </TR> </TABLE>  ';
   strHtml  =  strHtml + '</TD> </TR>';

   document.write(strHtml);
 }
}

//*************************************************************************************************************************//
//                                     EDIT SHIPPING ADDRESS SCREEN                                                         //
//*************************************************************************************************************************//

var MYACCOUNT_EDIT_SHIP_SUBMIT_TXT = "<span class=\"text\">Please make any changes and click Submit.</span>";

function Write_edit_shipping_addr_info()
{
   var strHtml ="";
   strHtml = strHtml + '<SPAN class="txtExp">';
   strHtml = strHtml + '     Please enter the neccessary 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    = "";
var REGISTRATION_USERNAME_INSTRUCTIONS = "<span class=\"small\"><font color=\"#DE2418\">(We suggest using your e-mail address, since it is easy to remember.)</font></span>";
var REGISTRATION_PASSWORD_INSTRUCTIONS = "";
var MYACCOUNT_REGISTRATION_SUBMIT_TEXT = "<span class=\"text\"> Enter your information and options and click Submit.</span>";
var MYACCOUNT_REGISTRATION_IMG         = gImageRoot + "myaccount_registration.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       = gMyAcctImageRoot + "expresscheckout.gif";

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_express_checkout_graphic()
{
   var strHtml = "";
   strHtml = strHtml + "Express Checkout";

   document.write(strHtml);
}


function Write_birthdate_graphic()
{  
   var strHtml = "";
   strHtml = strHtml + "Update Your Profile";

   document.write(strHtml);
}


function Write_registration_birthdate_graphic()
{  
   var strHtml = "";
   strHtml = strHtml + "Create Your Profile";

   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 = strHtml + 'To save time when checking out, we can store your credit card information here. ';
   strHtml = strHtml + 'Or, you may leave it blank and re-enter the information 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 + 'Log in Information';

   document.write(strHtml);
}



function Write_create_shopping_account_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="header">Create Your Account</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 type="checkbox" class="tdBkgd" name="p_promotional_email_flag" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="txtInfo">';
     strHtml = strHtml + "    Yes, I'd like to receive the latest news about Fisher-Price promotions and events.";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';

   }
   else
   {
     strHtml = strHtml + '<TR> <TD>  <BR><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) Fisher-Price 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 type="checkbox" class="tdBkgd" name="p_do_not_rent_flag" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="txtInfo">';
     strHtml = strHtml + "    Yes, I'd like you to share my contact info with companies similar to yours.";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';
   }
   else
   {
      strHtml = strHtml + '<TR> <TD> <BR><BR> </TD> </TR>';
   }
   document.write(strHtml);
   
}



function Write_myaccount_reg_info()
{
   var strHtml = "";
   strHtml = strHtml + '<p class="txtExp">';
   strHtml = strHtml + 'Creating an account with Fisher-Price will make your shopping experience easy and convenient. ';
   strHtml = strHtml + ' To register, fill in the required fields below (marked with an ';
   strHtml = strHtml + '<SPAN class="mandatory"> *</SPAN>';
   strHtml = strHtml + '). To learn how we use and protect your personal information, please read our ';
   strHtml = strHtml + '<a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');"><span class="txtLnk">PRIVACY POLICY</span></a>.';
   strHtml = strHtml + '</p>';

   document.write(strHtml);
}

function Write_child_birthday_info()
{
  var strHtml = "";
  strHtml = strHtml + '<span class="text">';
  strHtml = strHtml + 'By providing this information, I will learn more about Fisher-Price products that are ';
  strHtml = strHtml + 'age-appropriate for my child through catalogs, e-mails and special offers. ';
  strHtml = strHtml + '   Here are the birth dates of the child(ren) I typically shop for.'; 
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);
}

function Write_mktg_child_data_labels()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="normal">';
   strHtml = strHtml + '<TR colspan="5">';
   strHtml = strHtml + '<TD align="center" valign="bottom"><SPAN class="boldlabels">Child</SPAN></TD>';
   strHtml = strHtml + '<TD align="center" valign="bottom"><SPAN class="boldlabels">Birth Date<BR />(or due date)</SPAN></TD>';
   strHtml = strHtml + '<TD align="center" valign="bottom"><SPAN class="boldlabels">Relationship<BR />to Child</SPAN></TD>';
   strHtml = strHtml + '</TR></SPAN>';
  
   document.write(strHtml);
}

function Write_express_checkout_info()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="txtInfo">';
   strHtml = strHtml + '  <img src="/images/spacer.gif" width="10" border="0">For "one click" ordering, use Express Checkout. <BR>';
   strHtml = strHtml + '  <img src="/images/spacer.gif" width="10" border="0"><a class="popUpLnk" href="Javascript:win_popup(\'EXPRESS_CHECKOUT\',\'400\',\'200\');">Tell me more about this</a>. ';
   strHtml = strHtml + '</SPAN>';

   document.write(strHtml);
}

function Write_express_checkout_signup() 
{
    var strHtml = "";
   strHtml = strHtml + '<span class="txtInfo">Yes! Sign me up for Express Checkout.</span>';

   document.write(strHtml);
}

function Write_birthdate_link_text()
{
  var strHtml = "";
  strHtml = strHtml + 'To receive customized e-mails...';

  document.write(strHtml);
}

function Write_birthdate_info()
{
  var strHtml = "";
  strHtml = strHtml + '<p class="txtPadInfo">';
  strHtml = strHtml + "Please add/update children's information below so we can customize ";
  strHtml = strHtml + 'the product news and special offers we send to you.';
  strHtml = strHtml + '</p>';

   document.write(strHtml);
}


//******************************************************************************************************************************//
//                                           MyAccount SUMMARY SCREEN  - MYACCOUNT
//******************************************************************************************************************************//

function Write_summary_text()
{
   var strHtml = "";
   strHtml = strHtml + '<SPAN class="txtExp">';
   strHtml = strHtml + 'This is your account information. To update any of the information, click the Edit buttons. ';
   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 + 'Log-in Settings';

   document.write(strHtml);
}

function Write_billing_summary_graphic()
{
   var strHtml = ""; 
   strHtml = strHtml + 'Billing Address'; 

   document.write(strHtml);
}

function Write_club_login_graphic()
{
   var strHtml = "";

   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 + 'Payment 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 = "<span class=\"text\">Please make any changes and click Submit.</span>";

var MYACCOUNT_EDIT_BILLING_SUBMIT_IMG = gImageRoot + "edit_billing_address_submit.gif";
var MYACCOUNT_EDIT_BILLING_CANCEL_IMG = gImageRoot + "edit_billing_address_cancel.gif";

function Write_edit_billing_address_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<span class="subheader">Edit Billing Address</span>';

   document.write(strHtml);
}


function Write_myaccount_edit_billing_info()
{
   var strHtml = "";
   strHtml = strHtml + '<p class="txtExp">';
   strHtml = strHtml + '   Use this page to change your billing address. ';
   strHtml = strHtml + '<BR>';
   strHtml = strHtml + '   <b>Please note:</b>';
   strHtml = strHtml + '   Only one billing address per account. Required information is marked with an asterisk (';
   strHtml = strHtml + '<SPAN class="mandatory">';
   strHtml = strHtml + '*';
   strHtml = strHtml + '</SPAN>';
    strHtml = strHtml + '<SPAN>';
   strHtml = strHtml + ').';
   strHtml = strHtml + '</SPAN>';
   strHtml = strHtml + '</p>';

   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 = "<span class=\"text\">Please enter your information and click Submit.</span>";

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 + '<p class="txtExp">';
  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 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 + '   <a class="hdrLink" href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</p>';
 
  document.write(strHtml);
}

//**********************************************************************************************************************************//
//                                            EDIT  NEW CREDIT CARD - MYACCOUNT                                                      //
//**********************************************************************************************************************************//

var MYACCOUNT_EDIT_CARD_PAGE_TITLE  =  "MyAccount | Edit Credit Card";
var MYACCOUNT_EDIT_CARD_SUBMIT_TXT = "<span class=\"text\">Please make any changes and click Submit.</span>";

function Write_edit_credit_card_info()
{
  var strHtml = "";
  strHtml = strHtml + '<p class="txtExp">';
  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 class="subhead">';
  strHtml = strHtml + '   <a href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');"> PRIVACY POLICY </a>.';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + '</p>';
 
  document.write(strHtml);
}


//**********************************************************************************************************************************//
//                                             EDIT LOGIN INFORMATION - MYACCOUNT                                                   //
//**********************************************************************************************************************************//

var MYACCOUNT_EDIT_LOGIN_PAGE_TITLE  = "MyAccount | Edit Log-in Information";

var EDIT_LOGIN_SUBMIT_TXT            = "<span class=\"text\">Please make any changes and click Submit. </span>";

var EDIT_LOGIN_USERNAME_INSTRUCTIONS = "We suggest using your e-mail address.";

var EDIT_LOGIN_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.";

function Write_edit_login_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<span class="subheader">Edit Log-in Settings</span>';

  document.write(strHtml);
}

function Write_edit_login()
{
   var strHtml = "";
   strHtml = strHtml + '<span class="hdrLargeBold">Log-in Settings</span>';

  document.write(strHtml);
}


function Write_edit_login_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="txtExp">';
  strHtml = strHtml + '   To change your user name or password, enter a new one below. <BR> ';
  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          = "<span class=\"text\">Please edit your preferences and click Continue.</span>";

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="txtExp">';
  strHtml = strHtml + "   Please let us know how you'd like us to contact you. For more information, please read our ";
  strHtml = strHtml + '   <a class="hdrLink" 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  =  "<span class=\"text\">Please make any changes and click Continue.</span>";

function Write_checkout_preferences_info()
{
    var strHtml = "";
  strHtml = strHtml + '<p class="txtExp">';
  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 + '   <a class="hdrLink" href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</p>';

  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           =   "<span class=\"text\">Please make any changes and click Continue.</span>";

function Write_shipping_addresses_graphic()
{
   var strHtml = "";
   strHtml = strHtml + '<span class="subheader">Shipping Addresses</span>';

   document.write(strHtml);

}


function Write_shipping_address_info()
{
   var strHtml = "";
  strHtml = strHtml + '<p class="txtExp">' ;
  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 + '</p>';

  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="txtExp">';
  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="txtExp">';
  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 + '<P class="txtExp">';
  strHtml = strHtml + '   Please enter your billing address and contact preferences to continue. ';
  strHtml = strHtml + '   Required information is marked with an asterisk (';
  strHtml = strHtml + '<SPAN class="mandatory">';
  strHtml = strHtml + '*';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + ').';
  strHtml = strHtml + '</P>';

  document.write(strHtml);

}

function Write_checkout_promotional_email_label(checked)
{

   var strHtml = "";
   if (PROMOTIONAL_EMAIL_CHECK)
   {
     strHtml = strHtml + '<TR colspan="2">';
     strHtml = strHtml + '<TD colspan="2"><BR />';
     strHtml = strHtml + '  <SPAN class="nameheader">';
     strHtml = strHtml + "Parents and grandparents: get special offers and be the ";
     strHtml = strHtml + "first to find out about new products!";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '<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 type="checkbox" class="tdBkgd" name="p_promotional_email_flag" value="Y"' + checked +'>';
     strHtml = strHtml + '</TD>';
     strHtml = strHtml + '<TD>';
     strHtml = strHtml + '  <SPAN class="txtInfo">';
     strHtml = strHtml + "    Yes, sign me up to receive the Fisher-Price e-mail newsletter ";
     strHtml = strHtml + "with age-appropriate toy suggestions, playtime tips and news ";
     strHtml = strHtml + "of new products, sweepstakes, special offers and more!";
     strHtml = strHtml + '  </SPAN>';
     strHtml = strHtml + '</TD></TR>';

   }
   else
   {
     strHtml = strHtml + '<TR> <TD>  <BR><BR> </TD> </TR>';
   }

   document.write(strHtml);
}

function Write_checkout_birthdate_info()
{
      var strHtml = "";
  strHtml = strHtml + '<p class="bold">';
  strHtml = strHtml + "Please provide children's information below so we can customize ";
  strHtml = strHtml + "the product news and special offers we send to you.";
  strHtml = strHtml + "</p>";

  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 an address or enter a new one, then click Continue.</span>";

function Write_checkout_shipping_address_info()
{
  var strHtml = "";
  strHtml = strHtml + '<P class="txtExp">';
  strHtml = strHtml + 'Please enter the shipping address below. Required information is marked with an asterisk (';
  strHtml = strHtml + '<SPAN class="mandatory">';
  strHtml = strHtml + '*';
  strHtml = strHtml + '</SPAN>';
  strHtml = strHtml + ').';
  strHtml = strHtml + '</P>';

  document.write(strHtml);

}

function Write_shipping_information()
{
  var strHtml = "";

  strHtml = strHtml + '<p class="txtPadInfo">At this time, we only ship to Canada and 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 + '<BR><BR> ';
  strHtml = strHtml + 'For more detailed information on shipping ';
  strHtml = strHtml + '<a class="hdrLink" href="javascript:win_popup(\'/html/shared/ShippingInfo.html\',\'400\',\'200\',\'180\',\'150\');">click here</a>.';
  strHtml = strHtml + '</p>';

  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\">Choose one of the options above, then click Continue.</span>";

function Write_shipping_address_options_info()
{
   var strHtml = "";
  strHtml = strHtml + '<P class="txtExp">';
  strHtml = strHtml + 'Where would you like us 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 + '</P>';

  document.write(strHtml);

}

//***********************************************************************************************************************************//
//                                           SELECT MULTIPLE SHIPPING ADDRESSES - CHECKOUT                                           //
//***********************************************************************************************************************************//

var MULTIPLE_SHIPPING_ADDRESS_PAGE_TITLE = "Checkout | Select 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 + '<P class="txtExp">';
  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 + '   <a class="hdrLink" href="Javascript:win_popup(\'/html/shared/ShippingInfo.html\',\'400\',\'200\');">Click here</a> ';
  strHtml = strHtml + '   for more information.</p> ';
  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 shipping options, then 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 + '<P class="txtExp">';
  strHtml = strHtml + '   Please select your shipping options, then click Continue. ';
  strHtml = strHtml + '   To calculate delivery time, ';
  strHtml = strHtml + '   <a class="hdrLink" href="Javascript:win_popup(\'/pls/fp/shipping_days\',450,325);">click here</a>.<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.</p><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 Fisher-Price 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/fp/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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; Orders placed today will not arrive in time for Christmas.</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/fp/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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; Orders placed today will not arrive in time for Christmas.</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/fp/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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; Orders placed today will not arrive in time for Christmas.</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/fp/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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; Orders placed today will not arrive in time for Christmas.</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/fp/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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; Orders placed today will not arrive in time for Christmas.</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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; Orders placed today will not arrive in time for Christmas.</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>';
    strHtml = strHtml + '<li>Power Wheels &#8211; The last day to place an order in time for Christmas delivery is 12/07/2009. Orders placed today will not arrive in time for Hanukkah.</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 + '<li>Power Wheels &#8211; The last day to place an order in time for Hanukkah delivery is 11/20/2009. For Christmas delivery, it&#8217;s 12/07/08.</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/fp/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 + '   <a class="hdrLink" href="Javascript:win_popup(\'/pls/fp/shipping_days\',450,325);"><span class="text">Click here</span></a>';
  strHtml = strHtml + '   for more information regarding our shipping and processing rates. ';
  strHtml = strHtml + '</SPAN>';

  document.write(strHtml);

}

//**********************************************************************************************************************************//
//                                          GIFT OPTIONS  -  CHECKOUT                                                               //
//**********************************************************************************************************************************//

var GIFT_OPTIONS_PAGE_TITLE = "Checkout | Gift Options";
   
var GIFT_OPTIONS_SUBMIT_TXT = "<span class=\"text\">Select your gift options and click Continue.</span>";

function Write_gift_options_info()
{
   var strHtml = "";
  strHtml = strHtml + '<P class="txtExp">';
  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 wrap, ';
  strHtml = strHtml + '   <a class="hdrLink" href="Javascript:win_popup(\'GIFT_WRAP\',\'450\',\'150\');"> click here</a>. ';
  strHtml = strHtml + '</P>';

  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 class="hdrLink" href="Javascript:win_popup(\'GIFT_MESSAGE\',\'450\',\'275\');">See example</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 ";

var SELECT_PAYMENT_SUBMIT_TXT = "<span class=\"text\">Please make your payment selections, then click Continue.</span>";

function Write_select_payment_info()
{
  var strHtml = "";
  strHtml = strHtml + '<P class="txtExp">';
  strHtml = strHtml + '   Enter any promotional codes or gift certificate information you may have below. ';
  strHtml = strHtml + '   Then select a credit card for payment.<br>'; 
  strHtml = strHtml + '   To learn how we use and protect your credit card information,';
  strHtml = strHtml + '   please review our ';
  strHtml = strHtml + '   <a class="hdrLink" href="Javascript:win_popup(\'PRIVACY\',\'400\',\'400\');">PRIVACY POLICY</a>.';
  strHtml = strHtml + '</P>';

  document.write(strHtml);

}

function Write_promo_code_info()
{
   var strHtml = "";
  strHtml = strHtml + '<SPAN class="text">';
  strHtml = strHtml + '   <b>Do you have a promotional code</b> from an e-mail or catalog you received? If so, please enter it below. ';
  strHtml = strHtml + '   <a class="popUpLnk" 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. To view redemption restrictions, please';
  strHtml = strHtml + '   <a href="javascript:win_popup(\'/html/shared/GiftCert.html\',\'450\',\'300\');"><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. To view redemption restrictions, please';
  strHtml = strHtml + '   <a href="javascript:win_popup(\'/html/shared/GiftCert.html\',\'450\',\'300\');"><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>';
var PROMO_CONFIRM_PAGE_TITLE = "Checkout | Sweeps Entry Thanks";
 
function Write_order_summary_info() 
{ 
   var strHtml = ""; 
  strHtml = strHtml + '<SPAN class="txtExp">'; 
  strHtml = strHtml + '   Please 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 ';
  strHtml = strHtml + 'your order at the e-mail 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 =  "<span class=\"text\">Enter your log in information and checkout options, then click Register.</span>"; 

 
function checkout_registration_info() 
{ 
   var strHtml = ""; 
  strHtml = strHtml + '<SPAN class="txtExp">'; 
  strHtml = strHtml + '   Select a user name 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">Make your next shopping experience at fisher-price.com even faster and ';
  strHtml = strHtml + 'easier 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 Fisher-Price! ';
  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 fisher-price.com for further information, fun activities, and more!';
  strHtml = strHtml + '</SPAN>';

  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-747-8697 7 a.m. to 10 p.m. CST, seven days a week, or e-mail us at ';
   strHtml = strHtml + '<a class="txtLnk" href="mailto:customerservice@fisher-price.com">customerservice@fisher-price.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-747-8697 7 a.m. to 10 p.m. CST, seven days a week, or e-mail us at ';
   strHtml = strHtml + '<a class="textlink" href="mailto:customerservice@fisher-price.com">customerservice@fisher-price.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 fisher-price.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);

}

// this function currently resides in both common.js and webtrends_parameters.js.  Checkout requires it to be in common.js; it is unknown why it's also in webtrends_parameters.js.
function webtrends_bag(cartStage,pc,tx_t,pn,tx_u,tx_s,tx_i,tx_id,tx_it)
{
  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 + '">';
    strHtml = strHtml + '<meta name="WT.tx_i" content="' + tx_i + '">';
    strHtml = strHtml + '<meta name="WT.tx_id" content="' + tx_id + '">';
    strHtml = strHtml + '<meta name="WT.tx_it" content="' + tx_it + '">';
  }

  document.write(strHtml);

}//end webtrends_bag

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/fp/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/fp/shopping_bag.main">shopping cart</a>.<br/><br/>';

  document.write(strHtml);

}//end Write_no_shipping_methods

