document.write('

General Information
Name  *
Email  *

 Requires iTunes 6.0+
'); ajax_loader_small = new Image(); ajax_loader_small.src = 'https://www.premiumcast.com/images/ajax-loader-small.gif'; var dot_count_862d38c3ffa2 = 0; var dot_interval_862d38c3ffa2 = ''; var show_terms_862d38c3ffa2 = 0; var capture_data_862d38c3ffa2 = 1; // this is 0 if we are just showing buttons var do_validation_862d38c3ffa2 = 1; var current_price_token_862d38c3ffa2 = ''; var secs_elapsed_862d38c3ffa2 = 0; var price_at_checkout_862d38c3ffa2 = 0.00; var starting_price_862d38c3ffa2 = 0.00; var original_price_862d38c3ffa2 = 0.00; var current_price_862d38c3ffa2 = 0.00; var coupon_price_862d38c3ffa2 = 0.00; var increase_per_sec_862d38c3ffa2 = 0; var max_price_862d38c3ffa2 = 0.00; var charged_price_subtotal_862d38c3ffa2 = 0.00; var handling_fee_862d38c3ffa2 = 0.00; var recurring_handling_fee_862d38c3ffa2 = 0.00; var shipping_fee_862d38c3ffa2 = 0; var tax_percent_862d38c3ffa2 = 0; var taxable_price_862d38c3ffa2 = 0; var tax_862d38c3ffa2 = 0; var valid_coupon_862d38c3ffa2 = 0; var recurring_price_at_checkout_862d38c3ffa2 = 0.00; var recurring_original_price_862d38c3ffa2 = 0.00; var recurring_current_price_862d38c3ffa2 = 0.00; var recurring_coupon_price_862d38c3ffa2 = 0.00; var recurring_price_subtotal_862d38c3ffa2 = 0; var recurring_taxable_price_862d38c3ffa2 = 0; var recurring_shipping_fee_862d38c3ffa2 = 0; var recurring_tax_862d38c3ffa2 = 0; var recurring_price_862d38c3ffa2 = 0.00; var add_tax_to_recurring_862d38c3ffa2 = 0; var apply_quantity_to_recurring_862d38c3ffa2 = 0; var u_country_862d38c3ffa2 = ''; var u_state_862d38c3ffa2 = ''; var u_zip_862d38c3ffa2 = ''; var u_quantity_862d38c3ffa2 = 1; var u_recurring_quantity_862d38c3ffa2 = 1; var is_upsell_862d38c3ffa2 = 0; timezone_date_862d38c3ffa2 = new Date(); document.form_862d38c3ffa2.u_timezone_js_offset.value = timezone_date_862d38c3ffa2.getTimezoneOffset(); // we want these to show/hide last so that we don't shrink the form prematurely causing a scroll bar for the iframe process_combined_membership_checkboxes_862d38c3ffa2 (document.form_862d38c3ffa2.u_accepted_membership_1,'1'); process_combined_membership_checkboxes_862d38c3ffa2 (document.form_862d38c3ffa2.u_accepted_membership_2,'2'); process_combined_membership_checkboxes_862d38c3ffa2 (document.form_862d38c3ffa2.u_accepted_membership_3,'3'); function auto_increment_price_862d38c3ffa2() { if (current_price_token_862d38c3ffa2) { secs_elapsed_862d38c3ffa2++; clearInterval(current_price_token_862d38c3ffa2); } var new_price = parseFloat(starting_price_862d38c3ffa2) + (parseFloat(increase_per_sec_862d38c3ffa2) * parseFloat(secs_elapsed_862d38c3ffa2)); if (parseFloat(new_price) < parseFloat(max_price_862d38c3ffa2)) { current_price_862d38c3ffa2 = new_price; current_price_token_862d38c3ffa2 = setInterval('auto_increment_price_862d38c3ffa2()',1000); } else { current_price_862d38c3ffa2 = max_price_862d38c3ffa2; } calculate_price_862d38c3ffa2(); } function set_variables_862d38c3ffa2 () { // set these fields here in case they are not on the form, and also to make code easier to read // they may not be on the form if type == one_time and we want to show the price and no shipping u_country_862d38c3ffa2 = (document.form_862d38c3ffa2.u_country) ? document.form_862d38c3ffa2.u_country.value : ''; u_state_862d38c3ffa2 = (document.form_862d38c3ffa2.u_state) ? document.form_862d38c3ffa2.u_state.value : ''; u_zip_862d38c3ffa2 = (document.form_862d38c3ffa2.u_zip) ? document.form_862d38c3ffa2.u_zip.value : ''; u_quantity_862d38c3ffa2 = (document.form_862d38c3ffa2.u_quantity) ? document.form_862d38c3ffa2.u_quantity.value : 1; u_recurring_quantity_862d38c3ffa2 = (apply_quantity_to_recurring_862d38c3ffa2) ? u_quantity_862d38c3ffa2 : 1; } function calculate_price_862d38c3ffa2 () { set_variables_862d38c3ffa2(); // if we have a valid coupon, then override the incremented price. But incrementing should continue in the backgroud if (parseInt(valid_coupon_862d38c3ffa2) > 0) { current_price_862d38c3ffa2 = coupon_price_862d38c3ffa2; recurring_current_price_862d38c3ffa2 = recurring_coupon_price_862d38c3ffa2; } else if (!(parseFloat(increase_per_sec_862d38c3ffa2) > 0)) { // if we aren't incrementing and you remove the coupon, we need to reset to original pricing current_price_862d38c3ffa2 = original_price_862d38c3ffa2; recurring_current_price_862d38c3ffa2 = recurring_original_price_862d38c3ffa2; } price_subtotal_862d38c3ffa2 = parseFloat(current_price_862d38c3ffa2) * parseFloat(u_quantity_862d38c3ffa2); recurring_subtotal_862d38c3ffa2 = parseFloat(recurring_current_price_862d38c3ffa2) * parseFloat(u_recurring_quantity_862d38c3ffa2); if (get_id('tax_percent_'+u_state_862d38c3ffa2+'_'+u_country_862d38c3ffa2+'_862d38c3ffa2')) { tax_percent_862d38c3ffa2 = get_id('tax_percent_'+u_state_862d38c3ffa2+'_'+u_country_862d38c3ffa2+'_862d38c3ffa2').value; tax_862d38c3ffa2 = parseFloat(price_subtotal_862d38c3ffa2) * parseFloat(tax_percent_862d38c3ffa2) / 100; recurring_tax_862d38c3ffa2 = parseFloat(recurring_subtotal_862d38c3ffa2) * parseFloat(tax_percent_862d38c3ffa2) / 100; } else { tax_862d38c3ffa2 = 0; recurring_tax_862d38c3ffa2 = 0; } if (get_id('subtotal_at_checkout_862d38c3ffa2')) // make sure it exists in case it is refreshing itself from iframe get_id('subtotal_at_checkout_862d38c3ffa2').innerHTML = curr(price_subtotal_862d38c3ffa2); if (get_id('shipping_at_checkout_862d38c3ffa2')) // make sure it exists in case it is refreshing itself from iframe get_id('shipping_at_checkout_862d38c3ffa2').innerHTML = curr(shipping_fee_862d38c3ffa2); if (get_id('tax_at_checkout_862d38c3ffa2')) // make sure it exists in case it is refreshing itself from iframe get_id('tax_at_checkout_862d38c3ffa2').innerHTML = curr(tax_862d38c3ffa2); price_at_checkout_862d38c3ffa2 = parseFloat(price_subtotal_862d38c3ffa2) + parseFloat(shipping_fee_862d38c3ffa2) + parseFloat(curr(tax_862d38c3ffa2)); price_at_checkout_862d38c3ffa2 = (parseFloat(increase_per_sec_862d38c3ffa2) > 0 && parseFloat(current_price_862d38c3ffa2) < parseFloat(max_price_862d38c3ffa2)) && !parseInt(valid_coupon_862d38c3ffa2) ? price_at_checkout_862d38c3ffa2 : curr(price_at_checkout_862d38c3ffa2); // if we are still incrementing per second, don't format the currency if (get_id('price_at_checkout_862d38c3ffa2')) // make sure it exists in case it is refreshing itself from iframe get_id('price_at_checkout_862d38c3ffa2').innerHTML = price_at_checkout_862d38c3ffa2; if (get_id('price_at_checkout_bottom_862d38c3ffa2')) // make sure it exists get_id('price_at_checkout_bottom_862d38c3ffa2').innerHTML = price_at_checkout_862d38c3ffa2; recurring_price_862d38c3ffa2 = (add_tax_to_recurring_862d38c3ffa2) ? parseFloat(recurring_subtotal_862d38c3ffa2) + parseFloat(recurring_shipping_fee_862d38c3ffa2) + parseFloat(curr(recurring_tax_862d38c3ffa2)) : parseFloat(recurring_subtotal_862d38c3ffa2) + parseFloat(recurring_shipping_fee_862d38c3ffa2); if (get_id('recurring_price_862d38c3ffa2')) // make sure it exists in case it is refreshing itself from iframe get_id('recurring_price_862d38c3ffa2').innerHTML = curr(recurring_price_862d38c3ffa2); } function get_kunaki_shipping_862d38c3ffa2() { set_variables_862d38c3ffa2(); if (!((u_country_862d38c3ffa2 == 'UNITED STATES' || u_country_862d38c3ffa2 == 'CANADA') && (u_state_862d38c3ffa2 == '' || u_state_862d38c3ffa2 == 'N/A')) && u_zip_862d38c3ffa2.length >= 4 && u_country_862d38c3ffa2 != '') { document.form_862d38c3ffa2.req.value = 'kunaki_shipping'; document.form_862d38c3ffa2.validate_mode.value = '' document.form_862d38c3ffa2.target = 'utility_862d38c3ffa2'; document.form_862d38c3ffa2.submit(); } else { get_id('kunaki_shipping_862d38c3ffa2').innerHTML = get_id('kunaki_shipping_reset_862d38c3ffa2').innerHTML; calculate_price_862d38c3ffa2(); } } function cb_kunaki_shipping_862d38c3ffa2 () { form_validation_status = window.frames["utility_862d38c3ffa2"].get_id('form_validation_status').innerHTML; if (form_validation_status == '1') { get_id('kunaki_shipping_862d38c3ffa2').innerHTML = window.frames["utility_862d38c3ffa2"].get_id('shipping_choices').innerHTML; get_id('error_862d38c3ffa2').innerHTML = ''; } else { get_id('error_862d38c3ffa2').innerHTML = window.frames["utility_862d38c3ffa2"].get_id('error_message').innerHTML; document.location.hash = 'error_anchor_862d38c3ffa2'; get_id('kunaki_shipping_862d38c3ffa2').innerHTML = get_id('kunaki_shipping_reset_862d38c3ffa2').innerHTML; } calculate_price_862d38c3ffa2(); } function validate_coupon_862d38c3ffa2() { document.form_862d38c3ffa2.req.value = 'validate'; document.form_862d38c3ffa2.validate_mode.value = 'coupon_only'; document.form_862d38c3ffa2.target = 'utility_862d38c3ffa2'; document.form_862d38c3ffa2.submit(); } function cb_validate_coupon_862d38c3ffa2 () { form_validation_status = window.frames["utility_862d38c3ffa2"].get_id('form_validation_status').innerHTML; valid_coupon_temp_862d38c3ffa2 = window.frames["utility_862d38c3ffa2"].get_id('valid_coupon').innerHTML; valid_coupon_862d38c3ffa2 = parseInt(valid_coupon_temp_862d38c3ffa2); if (form_validation_status == '1' && valid_coupon_862d38c3ffa2 == '1') { get_id('coupon_valid_862d38c3ffa2').innerHTML = 'Valid'; get_id('error_862d38c3ffa2').innerHTML = ''; if (get_id('coupon_error_862d38c3ffa2')) get_id('coupon_error_862d38c3ffa2').innerHTML = ''; } else { get_id('coupon_valid_862d38c3ffa2').innerHTML = ''; if (get_id('coupon_error_862d38c3ffa2')) get_id('coupon_error_862d38c3ffa2').innerHTML = window.frames["utility_862d38c3ffa2"].get_id('error_message').innerHTML; get_id('error_862d38c3ffa2').innerHTML = window.frames["utility_862d38c3ffa2"].get_id('error_message').innerHTML; //document.location.hash = 'error_anchor_862d38c3ffa2'; } if (get_id('pricing_box_862d38c3ffa2')) { get_id('pricing_box_862d38c3ffa2').innerHTML = window.frames["utility_862d38c3ffa2"].get_id('pricing_box').innerHTML; } coupon_price_862d38c3ffa2 = window.frames["utility_862d38c3ffa2"].get_id('coupon_price').innerHTML; recurring_coupon_price_862d38c3ffa2 = window.frames["utility_862d38c3ffa2"].get_id('recurring_coupon_price').innerHTML; calculate_price_862d38c3ffa2(); } function try_form_submit_862d38c3ffa2(tag) { document.form_862d38c3ffa2.mode.value = tag; // if we're capturing data, then we try to validate first. cb_do_form_result will submit form if successful if (capture_data_862d38c3ffa2 && do_validation_862d38c3ffa2) { document.form_862d38c3ffa2.target = 'utility_862d38c3ffa2'; document.form_862d38c3ffa2.req.value = 'validate'; document.form_862d38c3ffa2.validate_mode.value = 'full_form'; document.form_862d38c3ffa2.submit(); } else { // if do_validation_862d38c3ffa2 then we'll validate the terms in php if (!do_validation_862d38c3ffa2 && document.form_862d38c3ffa2.show_terms && document.form_862d38c3ffa2.terms.checked == false) { alert('You must agree to the Terms and Conditions before proceeding'); document.form_862d38c3ffa2.terms.focus(); } else { do_form_submit_862d38c3ffa2(); } } return false; } function do_phone_task_862d38c3ffa2(mode) { get_id('verify_phone_outer').style.display = 'none'; get_id('verify_phone_inner').style.display = 'none'; if (mode == 'change_number') { document.form_862d38c3ffa2.validate_phone_mode.value = 'phone'; document.form_862d38c3ffa2.u_phone.select(); } else { if (mode == 'submit_pin') { document.form_862d38c3ffa2.validate_phone_mode.value = 'pin'; } else if (mode == 'text_me') { document.form_862d38c3ffa2.validate_phone_mode.value = 'txt'; get_id('error_862d38c3ffa2').innerHTML = ' Processing...'; } else if (mode == 'call_again') { document.form_862d38c3ffa2.validate_phone_mode.value = 'phone'; } try_form_submit_862d38c3ffa2('paid'); } } function check_pin_862d38c3ffa2(the_field) { if (document.all) { // hack for horrible IE8 bug that doesn't show the text in the text box w/o refreshing div! get_id('verify_phone_outer').style.display = 'none'; get_id('verify_phone_inner').style.display = 'none'; get_id('verify_phone_outer').style.display = 'block'; get_id('verify_phone_inner').style.display = 'block'; get_id('phone_pin_862d38c3ffa2').focus(); } if (the_field.value.length >= 4) { do_phone_task_862d38c3ffa2('submit_pin'); } } function cb_do_form_result_862d38c3ffa2 () { form_validation_status = window.frames["utility_862d38c3ffa2"].get_id('form_validation_status').innerHTML; form_validation_task = window.frames["utility_862d38c3ffa2"].get_id('form_validation_task').innerHTML; if (form_validation_status == '1') { get_id('error_862d38c3ffa2').innerHTML = ''; document.form_862d38c3ffa2.req.value = 'form'; do_form_submit_862d38c3ffa2(); } else { if (form_validation_task == 'validate_phone') { get_id('error_862d38c3ffa2').innerHTML = ''; activate_verify_phone_862d38c3ffa2(); } else { get_id('error_862d38c3ffa2').innerHTML = ' ' + window.frames["utility_862d38c3ffa2"].get_id('error_message').innerHTML; document.location.hash = 'error_anchor_862d38c3ffa2'; } } return false; } function activate_verify_phone_862d38c3ffa2 () { get_id('phone_error_862d38c3ffa2').innerHTML = window.frames["utility_862d38c3ffa2"].get_id('error_message').innerHTML; if (document.all) { get_id('verify_phone_inner').style.marginLeft = '0px'; } get_id('verify_phone_outer').style.display = 'block'; get_id('verify_phone_inner').style.display = 'block'; scroll(0,0); document.body.style.overflow='hidden'; document.form_862d38c3ffa2.phone_pin.value = ''; document.form_862d38c3ffa2.phone_pin.focus(); } function do_form_submit_862d38c3ffa2 () { mode = document.form_862d38c3ffa2.mode.value; if (mode == 'standard') { get_id('standard_div_862d38c3ffa2').style.display = 'block'; document.form_862d38c3ffa2.target = 'standard_862d38c3ffa2'; document.form_862d38c3ffa2.submit(); thank_you_for_subscribing_862d38c3ffa2(mode); } else if (mode == 'zune' || mode == 'itunes') { document.form_862d38c3ffa2.target = 'itunes_862d38c3ffa2'; document.form_862d38c3ffa2.submit(); get_id('loading_'+mode+'_862d38c3ffa2').innerHTML = ' Loading'; add_dot_862d38c3ffa2(mode); } else { // IMPORTANT!!! IE and Firefox will treat
as a popup if it is submitted by another window or iframe // this could probably be solved by using ajax instead of iframes, but haven't tried it // for future...if (capture_data_862d38c3ffa2 || no_validation_required_862d38c3ffa2) if (capture_data_862d38c3ffa2 && do_validation_862d38c3ffa2) { document.form_862d38c3ffa2.target = '_top'; } else { // open a new window if we are directly submitting form on thank you page for button subscription document.form_862d38c3ffa2.target = '_blank'; } document.form_862d38c3ffa2.submit(); if (is_upsell_862d38c3ffa2) { get_id('loading_'+mode+'_862d38c3ffa2').innerHTML = ' Processing'; add_dot_862d38c3ffa2(mode); } else { get_id('loading_'+mode+'_862d38c3ffa2').innerHTML = ' Processing'; add_dot_862d38c3ffa2(mode); //thank_you_for_subscribing_862d38c3ffa2(mode); } } return false; } function do_cc_form_submit_862d38c3ffa2 () { document.form_862d38c3ffa2.target = 'utility_862d38c3ffa2'; document.form_862d38c3ffa2.req.value = 'place_order'; document.form_862d38c3ffa2.submit(); return false; } function cb_do_cc_form_submit_862d38c3ffa2 () { form_validation_status = window.frames["utility_862d38c3ffa2"].get_id('form_validation_status').innerHTML; form_validation_task = window.frames["utility_862d38c3ffa2"].get_id('form_validation_task').innerHTML; if (form_validation_status == '1') { // we should have already redirected from other script // we redirect in the iframe because I couldn't figure out how to get it to unencode & in the URL here } else { if (form_validation_task == 'validate_phone') { get_id('error_862d38c3ffa2').innerHTML = ''; activate_verify_phone_862d38c3ffa2(); } else { get_id('error_862d38c3ffa2').innerHTML = ' ' + window.frames["utility_862d38c3ffa2"].get_id('error_message').innerHTML; document.location.hash = 'error_anchor_862d38c3ffa2'; } } return false; } function populate_cc_fields_862d38c3ffa2 () { if (document.form_862d38c3ffa2.u_firstname) document.form_862d38c3ffa2.u_cc_firstname.value = document.form_862d38c3ffa2.u_firstname.value; if (document.form_862d38c3ffa2.u_lastname) document.form_862d38c3ffa2.u_cc_lastname.value = document.form_862d38c3ffa2.u_lastname.value; if (document.form_862d38c3ffa2.u_address) document.form_862d38c3ffa2.u_cc_address.value = document.form_862d38c3ffa2.u_address.value; if (document.form_862d38c3ffa2.u_city) document.form_862d38c3ffa2.u_cc_city.value = document.form_862d38c3ffa2.u_city.value; if (document.form_862d38c3ffa2.u_state) document.form_862d38c3ffa2.u_cc_state.value = document.form_862d38c3ffa2.u_state.value; if (document.form_862d38c3ffa2.u_zip) document.form_862d38c3ffa2.u_cc_zip.value = document.form_862d38c3ffa2.u_zip.value; if (document.form_862d38c3ffa2.u_country) document.form_862d38c3ffa2.u_cc_country.value = document.form_862d38c3ffa2.u_country.value; if (document.form_862d38c3ffa2.u_phone) document.form_862d38c3ffa2.u_cc_phone.value = document.form_862d38c3ffa2.u_phone.value; } function add_dot_862d38c3ffa2 (mode) { if (dot_interval_862d38c3ffa2) { clearInterval(dot_interval_862d38c3ffa2); } if (dot_count_862d38c3ffa2 >= 30) { dot_count_862d38c3ffa2 = 0; thank_you_for_subscribing_862d38c3ffa2(mode); } else { get_id('loading_'+mode+'_862d38c3ffa2').innerHTML = get_id('loading_'+mode+'_862d38c3ffa2').innerHTML + '.'; dot_count_862d38c3ffa2++; dot_interval_862d38c3ffa2 = setInterval('add_dot_862d38c3ffa2(\''+mode+'\')',500); } } function thank_you_for_subscribing_862d38c3ffa2 (mode) { get_id('loading_'+mode+'_862d38c3ffa2').innerHTML = get_id('thank_you_'+mode+'_862d38c3ffa2').value; blank_out_fields_862d38c3ffa2 (); } function blank_out_fields_862d38c3ffa2 () { if (capture_data_862d38c3ffa2 == '1') { document.form_862d38c3ffa2.reset(); if (get_id('coupon_error_862d38c3ffa2')) get_id('coupon_error_862d38c3ffa2').innerHTML = ''; if (get_id('coupon_valid_862d38c3ffa2')) get_id('coupon_valid_862d38c3ffa2').innerHTML = ''; } } function process_combined_membership_checkboxes_862d38c3ffa2 (thefield,num) { if (get_id('secondary_'+num+'_862d38c3ffa2')) { if (thefield && thefield.checked == false) { if (get_id('u_accepted_membership_upper_'+num+'_862d38c3ffa2')) get_id('u_accepted_membership_upper_'+num+'_862d38c3ffa2').checked = false; if (get_id('u_accepted_membership_'+num+'_862d38c3ffa2')) get_id('u_accepted_membership_'+num+'_862d38c3ffa2').checked = false; if (get_id('secondary_'+num+'_gray_862d38c3ffa2')) get_id('secondary_'+num+'_gray_862d38c3ffa2').style.color = 'gray'; } else { if (get_id('u_accepted_membership_upper_'+num+'_862d38c3ffa2')) get_id('u_accepted_membership_upper_'+num+'_862d38c3ffa2').checked = true; if (get_id('u_accepted_membership_'+num+'_862d38c3ffa2')) get_id('u_accepted_membership_'+num+'_862d38c3ffa2').checked = true; if (get_id('secondary_'+num+'_gray_862d38c3ffa2')) get_id('secondary_'+num+'_gray_862d38c3ffa2').style.color = ''; } } } function get_id(id) { if (document.getElementById) return document.getElementById(id); else return document.all[id]; } function valid_email (email) { var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (filter.test(email)) return true; else return false; } function blank_out_username_and_password (thefield) { if (thefield.value == 'At Least 6 Chars') { thefield.value = ''; //thefield.style.color = ''; } } function curr(amount) { var i = parseFloat(amount); if(isNaN(i)) { i = 0.00; } var minus = ''; if(i < 0) { minus = '-'; } i = Math.abs(i); i = parseInt((i + .005) * 100); i = i / 100; s = new String(i); if(s.indexOf('.') < 0) { s += '.00'; } if(s.indexOf('.') == (s.length - 2)) { s += '0'; } s = minus + s; return s; } // return the value of the radio button that is checked // return an empty string if none are checked, or // there are no radio buttons function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; }