$50
You Save 50%
Actual Value: $100.00
Offer must be redeemed by 6 months from date of purchase.
').html(content)); } if(content.length == 0) { $('#gift-error').fadeOut(); } else { $('#gift-error').fadeIn(); } $.fancybox.resize(); } function submitForm() { var $form = $('#' + form_id); if(!$form[0]) { alert('Can\'t find product form'); } var $rec_name_hid = getHiddenEl($rec_name); var $send_name_hid = getHiddenEl($send_name); var $msg_hid = getHiddenEl($msg); $form.append($rec_name_hid) .append($send_name_hid) .append($msg_hid); var $delivery_type; if($('#gift-email-option').attr('checked')) { $delivery_type = getHiddenEl($('#gift-email-option')); $form.append(getHiddenEl($rec_email)); } else { $delivery_type = getHiddenEl($('#gift-print-option')); } $form.append($delivery_type); $form.trigger('submit'); } function getHiddenEl($el) { var val = $.trim($el.val()); var name = $el.attr('name'); var $return = $(''); $return.attr({'name': name, 'value': val}); return $return; } var $rec_name = loadDefaults('recipient_name'); var $send_name = loadDefaults('sender_name'); var $msg = loadDefaults('recipient_message'); var $rec_email = loadDefaults('recipient_email'); fb_options.width = 420; fb_options.height = 515; fb_options.autoDimensions = false; fb_options.scrolling = 'visible'; $('#dod_gift_popup_help a').fancybox(fb_options); fb_options.onStart = function(){ $('#gift-form input, #gift-form textarea').each(function(){ if($(this).attr('id') == 'recipient_email') { $(this).hide(); return; } $(this).removeAttr('disabled'); }); }; fb_options.onClosed = function(){ $('#gift-form input, #gift-form textarea').each(function(){ var $in = $(this); $in.attr('disabled', 'disabled'); if($in.attr('type') == 'radio') { $in.attr('checked', false); } else { loadDefaults($in.attr('id')); } }); if(document.getElementById('gift-error')) { $('#gift-error').html('').hide(); } }; fb_options.width = 350; fb_options.height = 500; fb_options.autoDimensions = true; $('#dod_gift_popup_link a').fancybox(fb_options); $('#gift-email-option').click(function(){ if(this.checked){ $rec_email.removeAttr('disabled').fadeIn(); $.fancybox.resize(); } }); $('#gift-print-option').click(function(){ if(this.checked){ $rec_email.attr('disabled', 'disabled').fadeOut(); $.fancybox.resize(); } }); $('#gift-cancel').click(function(){ $.fancybox.close(); }); $('#gift-get-started').click(function(){ $('#dod_gift_popup_link a').trigger('click'); }); $('#gift-add').click(function(){ if(isValid()) { $.fancybox.close(); submitForm(); } else { addError(); } }); $msg.keyup(function(e){ var maxReached = maxLengthReached(maxlength, $(this)); if(maxReached && msgError === false) { msgError = errors.length; errors.push('Message length of 300 exceeded.'); e.preventDefault(); addError(); return false; } else if(!maxReached && msgError !== false && msgError >= 0){ errors.splice(msgError, 1); msgError = false; addError(); } }).blur(function(e){ if(maxLengthReached(maxlength, $(this)) && msgError === false) { msgError = errors.length; errors.push('Message length of 300 exceeded.'); addError(); } }); function maxLengthReached(max, $el) { var remaining = max - $el.val().length; if (remainingSource: http://halfoffdepot.com/orlando/catalog/product/view/id/8342/
when does daylight savings start when does daylight savings start earthquake in texas earthquake in texas official time news 9 tuscaloosa
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.