var ra = new Array(); // PayPal rate array
var i,j;
for (i=0; i<7; i++) { ra[i] = new Array(); for (j=0; j<7; j++) { ra[i][j] = new Array(); } }
// --------------------------------------------------------------------------------
// PayPal Fee Rates (Last Updated: June 14, 2006)
// --------------------------------------------------------------------------------
ra[0][0][0] = 0.029; // USA -> USA Standard Rate
ra[0][0][1] = 0.025; // USA -> USA Merchant Rate 1
ra[0][0][2] = 0.022; // USA -> USA Merchant Rate 2
ra[0][0][3] = 0.019; // USA -> USA Merchant Rate 3
ra[0][0][4] = 0;     // USA -> USA Merchant Rate 4
ra[0][1][0] = 0.039; // USA -> Canada Standard Rate
ra[0][1][1] = 0.035; // USA -> Canada Merchant Rate 1
ra[0][1][2] = 0.032; // USA -> Canada Merchant Rate 2
ra[0][1][3] = 0.029; // USA -> Canada Merchant Rate 3
ra[0][1][4] = 0;     // USA -> Canada Merchant Rate 4
ra[0][2][0] = 0.039; // USA -> Europe Standard Rate
ra[0][2][1] = 0.034; // USA -> Europe Merchant Rate 1
ra[0][2][2] = 0.032; // USA -> Europe Merchant Rate 2
ra[0][2][3] = 0.029; // USA -> Europe Merchant Rate 3
ra[0][2][4] = 0.024; // USA -> Europe Merchant Rate 4
ra[0][3][0] = 0.039; // USA -> UK Standard Rate
ra[0][3][1] = 0.034; // USA -> UK Merchant Rate 1
ra[0][3][2] = 0.029; // USA -> UK Merchant Rate 2
ra[0][3][3] = 0.024; // USA -> UK Merchant Rate 3
ra[0][3][4] = 0.019; // USA -> UK Merchant Rate 4
ra[0][4][0] = 0.034; // USA -> Australia Standard Rate
ra[0][4][1] = 0.03;  // USA -> Australia Merchant Rate 1
ra[0][4][2] = 0.025; // USA -> Australia Merchant Rate 2
ra[0][4][3] = 0.021; // USA -> Australia Merchant Rate 3
ra[0][4][4] = 0;     // USA -> Australia Merchant Rate 4
ra[0][5][0] = 0.039; // USA -> Japan Standard Rate
ra[0][5][1] = 0.034; // USA -> Japan Merchant Rate 1
ra[0][5][2] = 0.032; // USA -> Japan Merchant Rate 2
ra[0][5][3] = 0.029; // USA -> Japan Merchant Rate 3
ra[0][5][4] = 0;     // USA -> Japan Merchant Rate 4
ra[0][6][0] = 0.039; // USA -> Other Standard Rate
ra[0][6][1] = 0.034; // USA -> Other Merchant Rate 1
ra[0][6][2] = 0.032; // USA -> Other Merchant Rate 2
ra[0][6][3] = 0.029; // USA -> Other Merchant Rate 3
ra[0][6][4] = 0;     // USA -> Other Merchant Rate 4
ra[1][0][0] = 0.039; // Canada -> USA Standard Rate
ra[1][0][1] = 0.035; // Canada -> USA Merchant Rate 1
ra[1][0][2] = 0.032; // Canada -> USA Merchant Rate 2
ra[1][0][3] = 0.029; // Canada -> USA Merchant Rate 3
ra[1][0][4] = 0;     // Canada -> USA Merchant Rate 4
ra[1][1][0] = 0.029; // Canada -> Canada Standard Rate
ra[1][1][1] = 0.025; // Canada -> Canada Merchant Rate 1
ra[1][1][2] = 0.022; // Canada -> Canada Merchant Rate 2
ra[1][1][3] = 0.019; // Canada -> Canada Merchant Rate 3
ra[1][1][4] = 0;     // Canada -> Canada Merchant Rate 4
ra[1][2][0] = 0.039; // Canada -> Europe Standard Rate
ra[1][2][1] = 0.034; // Canada -> Europe Merchant Rate 1
ra[1][2][2] = 0.032; // Canada -> Europe Merchant Rate 2
ra[1][2][3] = 0.029; // Canada -> Europe Merchant Rate 3
ra[1][2][4] = 0.024; // Canada -> Europe Merchant Rate 4
ra[1][3][0] = 0.039; // Canada -> UK Standard Rate
ra[1][3][1] = 0.034; // Canada -> UK Merchant Rate 1
ra[1][3][2] = 0.029; // Canada -> UK Merchant Rate 2
ra[1][3][3] = 0.024; // Canada -> UK Merchant Rate 3
ra[1][3][4] = 0.019; // Canada -> UK Merchant Rate 4
ra[1][4][0] = 0.034; // Canada -> Australia Standard Rate
ra[1][4][1] = 0.03;  // Canada -> Australia Merchant Rate 1
ra[1][4][2] = 0.025; // Canada -> Australia Merchant Rate 2
ra[1][4][3] = 0.021; // Canada -> Australia Merchant Rate 3
ra[1][4][4] = 0;     // Canada -> Australia Merchant Rate 4
ra[1][5][0] = 0.039; // Canada -> Japan Standard Rate
ra[1][5][1] = 0.034; // Canada -> Japan Merchant Rate 1
ra[1][5][2] = 0.032; // Canada -> Japan Merchant Rate 2
ra[1][5][3] = 0.029; // Canada -> Japan Merchant Rate 3
ra[1][5][4] = 0;     // Canada -> Japan Merchant Rate 4
ra[1][6][0] = 0.039; // Canada -> Other Standard Rate
ra[1][6][1] = 0.034; // Canada -> Other Merchant Rate 1
ra[1][6][2] = 0.032; // Canada -> Other Merchant Rate 2
ra[1][6][3] = 0.029; // Canada -> Other Merchant Rate 3
ra[1][6][4] = 0;     // Canada -> Other Merchant Rate 4
ra[2][0][0] = 0.039; // Europe -> USA Standard Rate
ra[2][0][1] = 0.035; // Europe -> USA Merchant Rate 1
ra[2][0][2] = 0.032; // Europe -> USA Merchant Rate 2
ra[2][0][3] = 0.029; // Europe -> USA Merchant Rate 3
ra[2][0][4] = 0;     // Europe -> USA Merchant Rate 4
ra[2][1][0] = 0.039; // Europe -> Canada Standard Rate
ra[2][1][1] = 0.035; // Europe -> Canada Merchant Rate 1
ra[2][1][2] = 0.032; // Europe -> Canada Merchant Rate 2
ra[2][1][3] = 0.029; // Europe -> Canada Merchant Rate 3
ra[2][1][4] = 0;     // Europe -> Canada Merchant Rate 4
ra[2][2][0] = 0.034; // Europe -> Europe Standard Rate
ra[2][2][1] = 0.029; // Europe -> Europe Merchant Rate 1
ra[2][2][2] = 0.027; // Europe -> Europe Merchant Rate 2
ra[2][2][3] = 0.024; // Europe -> Europe Merchant Rate 3
ra[2][2][4] = 0.019; // Europe -> Europe Merchant Rate 4
ra[2][3][0] = 0.039; // Europe -> UK Standard Rate
ra[2][3][1] = 0.034; // Europe -> UK Merchant Rate 1
ra[2][3][2] = 0.029; // Europe -> UK Merchant Rate 2
ra[2][3][3] = 0.024; // Europe -> UK Merchant Rate 3
ra[2][3][4] = 0.019; // Europe -> UK Merchant Rate 4
ra[2][4][0] = 0.034; // Europe -> Australia Standard Rate
ra[2][4][1] = 0.03;  // Europe -> Australia Merchant Rate 1
ra[2][4][2] = 0.025; // Europe -> Australia Merchant Rate 2
ra[2][4][3] = 0.021; // Europe -> Australia Merchant Rate 3
ra[2][4][4] = 0;     // Europe -> Australia Merchant Rate 4
ra[2][5][0] = 0.039; // Europe -> Japan Standard Rate
ra[2][5][1] = 0.034; // Europe -> Japan Merchant Rate 1
ra[2][5][2] = 0.032; // Europe -> Japan Merchant Rate 2
ra[2][5][3] = 0.029; // Europe -> Japan Merchant Rate 3
ra[2][5][4] = 0;     // Europe -> Japan Merchant Rate 4
ra[2][6][0] = 0.039; // Europe -> Other Standard Rate
ra[2][6][1] = 0.034; // Europe -> Other Merchant Rate 1
ra[2][6][2] = 0.032; // Europe -> Other Merchant Rate 2
ra[2][6][3] = 0.029; // Europe -> Other Merchant Rate 3
ra[2][6][4] = 0;     // Europe -> Other Merchant Rate 4
ra[3][0][0] = 0.039; // UK -> USA Standard Rate
ra[3][0][1] = 0.035; // UK -> USA Merchant Rate 1
ra[3][0][2] = 0.032; // UK -> USA Merchant Rate 2
ra[3][0][3] = 0.029; // UK -> USA Merchant Rate 3
ra[3][0][4] = 0;     // UK -> USA Merchant Rate 4
ra[3][1][0] = 0.039; // UK -> Canada Standard Rate
ra[3][1][1] = 0.035; // UK -> Canada Merchant Rate 1
ra[3][1][2] = 0.032; // UK -> Canada Merchant Rate 2
ra[3][1][3] = 0.029; // UK -> Canada Merchant Rate 3
ra[3][1][4] = 0;     // UK -> Canada Merchant Rate 4
ra[3][2][0] = 0.039; // UK -> Europe Standard Rate
ra[3][2][1] = 0.034; // UK -> Europe Merchant Rate 1
ra[3][2][2] = 0.032; // UK -> Europe Merchant Rate 2
ra[3][2][3] = 0.029; // UK -> Europe Merchant Rate 3
ra[3][2][4] = 0.024; // UK -> Europe Merchant Rate 4
ra[3][3][0] = 0.034; // UK -> UK Standard Rate
ra[3][3][1] = 0.029; // UK -> UK Merchant Rate 1
ra[3][3][2] = 0.024; // UK -> UK Merchant Rate 2
ra[3][3][3] = 0.019; // UK -> UK Merchant Rate 3
ra[3][3][4] = 0.014; // UK -> UK Merchant Rate 4
ra[3][4][0] = 0.034; // UK -> Australia Standard Rate
ra[3][4][1] = 0.03;  // UK -> Australia Merchant Rate 1
ra[3][4][2] = 0.025; // UK -> Australia Merchant Rate 2
ra[3][4][3] = 0.021; // UK -> Australia Merchant Rate 3
ra[3][4][4] = 0;     // UK -> Australia Merchant Rate 4
ra[3][5][0] = 0.039; // UK -> Japan Standard Rate
ra[3][5][1] = 0.034; // UK -> Japan Merchant Rate 1
ra[3][5][2] = 0.032; // UK -> Japan Merchant Rate 2
ra[3][5][3] = 0.029; // UK -> Japan Merchant Rate 3
ra[3][5][4] = 0;     // UK -> Japan Merchant Rate 4
ra[3][6][0] = 0.039; // UK -> Other Standard Rate
ra[3][6][1] = 0.034; // UK -> Other Merchant Rate 1
ra[3][6][2] = 0.032; // UK -> Other Merchant Rate 2
ra[3][6][3] = 0.029; // UK -> Other Merchant Rate 3
ra[3][6][4] = 0;     // UK -> Other Merchant Rate 4
ra[4][0][0] = 0.039; // Australia -> USA Standard Rate
ra[4][0][1] = 0.035; // Australia -> USA Merchant Rate 1
ra[4][0][2] = 0.032; // Australia -> USA Merchant Rate 2
ra[4][0][3] = 0.029; // Australia -> USA Merchant Rate 3
ra[4][0][4] = 0;     // Australia -> USA Merchant Rate 4
ra[4][1][0] = 0.039; // Australia -> Canada Standard Rate
ra[4][1][1] = 0.035; // Australia -> Canada Merchant Rate 1
ra[4][1][2] = 0.032; // Australia -> Canada Merchant Rate 2
ra[4][1][3] = 0.029; // Australia -> Canada Merchant Rate 3
ra[4][1][4] = 0;     // Australia -> Canada Merchant Rate 4
ra[4][2][0] = 0.039; // Australia -> Europe Standard Rate
ra[4][2][1] = 0.034; // Australia -> Europe Merchant Rate 1
ra[4][2][2] = 0.032; // Australia -> Europe Merchant Rate 2
ra[4][2][3] = 0.029; // Australia -> Europe Merchant Rate 3
ra[4][2][4] = 0.024; // Australia -> Europe Merchant Rate 4
ra[4][3][0] = 0.039; // Australia -> UK Standard Rate
ra[4][3][1] = 0.034; // Australia -> UK Merchant Rate 1
ra[4][3][2] = 0.029; // Australia -> UK Merchant Rate 2
ra[4][3][3] = 0.024; // Australia -> UK Merchant Rate 3
ra[4][3][4] = 0.019; // Australia -> UK Merchant Rate 4
ra[4][4][0] = 0.024; // Australia -> Australia Standard Rate
ra[4][4][1] = 0.02;  // Australia -> Australia Merchant Rate 1
ra[4][4][2] = 0.015; // Australia -> Australia Merchant Rate 2
ra[4][4][3] = 0.011; // Australia -> Australia Merchant Rate 3
ra[4][4][4] = 0;     // Australia -> Australia Merchant Rate 4
ra[4][5][0] = 0.039; // Australia -> Japan Standard Rate
ra[4][5][1] = 0.034; // Australia -> Japan Merchant Rate 1
ra[4][5][2] = 0.032; // Australia -> Japan Merchant Rate 2
ra[4][5][3] = 0.029; // Australia -> Japan Merchant Rate 3
ra[4][5][4] = 0;     // Australia -> Japan Merchant Rate 4
ra[4][6][0] = 0.039; // Australia -> Other Standard Rate
ra[4][6][1] = 0.034; // Australia -> Other Merchant Rate 1
ra[4][6][2] = 0.032; // Australia -> Other Merchant Rate 2
ra[4][6][3] = 0.029; // Australia -> Other Merchant Rate 3
ra[4][6][4] = 0;     // Australia -> Other Merchant Rate 4
ra[5][0][0] = 0.039; // Japan -> USA Standard Rate
ra[5][0][1] = 0.035; // Japan -> USA Merchant Rate 1
ra[5][0][2] = 0.032; // Japan -> USA Merchant Rate 2
ra[5][0][3] = 0.029; // Japan -> USA Merchant Rate 3
ra[5][0][4] = 0;     // Japan -> USA Merchant Rate 4
ra[5][1][0] = 0.039; // Japan -> Canada Standard Rate
ra[5][1][1] = 0.035; // Japan -> Canada Merchant Rate 1
ra[5][1][2] = 0.032; // Japan -> Canada Merchant Rate 2
ra[5][1][3] = 0.029; // Japan -> Canada Merchant Rate 3
ra[5][1][4] = 0;     // Japan -> Canada Merchant Rate 4
ra[5][2][0] = 0.039; // Japan -> Europe Standard Rate
ra[5][2][1] = 0.034; // Japan -> Europe Merchant Rate 1
ra[5][2][2] = 0.032; // Japan -> Europe Merchant Rate 2
ra[5][2][3] = 0.029; // Japan -> Europe Merchant Rate 3
ra[5][2][4] = 0.024; // Japan -> Europe Merchant Rate 4
ra[5][3][0] = 0.039; // Japan -> UK Standard Rate
ra[5][3][1] = 0.034; // Japan -> UK Merchant Rate 1
ra[5][3][2] = 0.029; // Japan -> UK Merchant Rate 2
ra[5][3][3] = 0.024; // Japan -> UK Merchant Rate 3
ra[5][3][4] = 0.019; // Japan -> UK Merchant Rate 4
ra[5][4][0] = 0.034; // Japan -> Australia Standard Rate
ra[5][4][1] = 0.03;  // Japan -> Australia Merchant Rate 1
ra[5][4][2] = 0.025; // Japan -> Australia Merchant Rate 2
ra[5][4][3] = 0.021; // Japan -> Australia Merchant Rate 3
ra[5][4][4] = 0;     // Japan -> Australia Merchant Rate 4
ra[5][5][0] = 0.039; // Japan -> Japan Standard Rate
ra[5][5][1] = 0.034; // Japan -> Japan Merchant Rate 1
ra[5][5][2] = 0.032; // Japan -> Japan Merchant Rate 2
ra[5][5][3] = 0.029; // Japan -> Japan Merchant Rate 3
ra[5][5][4] = 0;     // Japan -> Japan Merchant Rate 4
ra[5][6][0] = 0.039; // Japan -> Other Standard Rate
ra[5][6][1] = 0.034; // Japan -> Other Merchant Rate 1
ra[5][6][2] = 0.032; // Japan -> Other Merchant Rate 2
ra[5][6][3] = 0.029; // Japan -> Other Merchant Rate 3
ra[5][6][4] = 0;     // Japan -> Other Merchant Rate 4
ra[6][0][0] = 0.039; // Other -> USA Standard Rate
ra[6][0][1] = 0.035; // Other -> USA Merchant Rate 1
ra[6][0][2] = 0.032; // Other -> USA Merchant Rate 2
ra[6][0][3] = 0.029; // Other -> USA Merchant Rate 3
ra[6][0][4] = 0;     // Other -> USA Merchant Rate 4
ra[6][1][0] = 0.039; // Other -> Canada Standard Rate
ra[6][1][1] = 0.035; // Other -> Canada Merchant Rate 1
ra[6][1][2] = 0.032; // Other -> Canada Merchant Rate 2
ra[6][1][3] = 0.029; // Other -> Canada Merchant Rate 3
ra[6][1][4] = 0;     // Other -> Canada Merchant Rate 4
ra[6][2][0] = 0.039; // Other -> Europe Standard Rate
ra[6][2][1] = 0.034; // Other -> Europe Merchant Rate 1
ra[6][2][2] = 0.032; // Other -> Europe Merchant Rate 2
ra[6][2][3] = 0.029; // Other -> Europe Merchant Rate 3
ra[6][2][4] = 0.024; // Other -> Europe Merchant Rate 4
ra[6][3][0] = 0.039; // Other -> UK Standard Rate
ra[6][3][1] = 0.034; // Other -> UK Merchant Rate 1
ra[6][3][2] = 0.029; // Other -> UK Merchant Rate 2
ra[6][3][3] = 0.024; // Other -> UK Merchant Rate 3
ra[6][3][4] = 0.019; // Other -> UK Merchant Rate 4
ra[6][4][0] = 0.034; // Other -> Australia Standard Rate
ra[6][4][1] = 0.03;  // Other -> Australia Merchant Rate 1
ra[6][4][2] = 0.025; // Other -> Australia Merchant Rate 2
ra[6][4][3] = 0.021; // Other -> Australia Merchant Rate 3
ra[6][4][4] = 0;     // Other -> Australia Merchant Rate 4
ra[6][5][0] = 0.039; // Other -> Japan Standard Rate
ra[6][5][1] = 0.034; // Other -> Japan Merchant Rate 1
ra[6][5][2] = 0.032; // Other -> Japan Merchant Rate 2
ra[6][5][3] = 0.029; // Other -> Japan Merchant Rate 3
ra[6][5][4] = 0;     // Other -> Japan Merchant Rate 4
ra[6][6][0] = 0.039; // Other -> Other Standard Rate
ra[6][6][1] = 0.034; // Other -> Other Merchant Rate 1
ra[6][6][2] = 0.032; // Other -> Other Merchant Rate 2
ra[6][6][3] = 0.029; // Other -> Other Merchant Rate 3
ra[6][6][4] = 0;     // Other -> Other Merchant Rate 4

// -------------------------------------------------------------------------------

// Break Frames
//if (window != top) { top.location.href = location.href; }

// Global Variables
var BUTTON_MOUSEOVER_COLOR = '#F0F8FF';
var BUTTON_MOUSEOUT_COLOR = '#FBFFFF';
var BUTTON_MOUSEDOWN_COLOR = '#EBF3FA';
var BUTTON_MOUSEUP_COLOR = '#F0F8FF';
var src_country_dropdown_obj;
var src_currency_label_obj;
var dest_country_dropdown_obj;
var dest_currency_label_obj;
var src_currency_box_obj;
var dest_currency_box_obj;
var standard_rate_obj;
var merchant_rate_1_obj;
var merchant_rate_2_obj;
var merchant_rate_3_obj;
var merchant_rate_4_obj;
var paypal_standard_rate_label_obj;
var paypal_merchant_rate_1_label_obj;
var paypal_merchant_rate_2_label_obj;
var paypal_merchant_rate_3_label_obj;
var paypal_merchant_rate_4_label_obj;
var cc_fee_checkbox_obj;
var cc_fee_label_obj;
var echeck_checkbox_obj;
var echeck_label_obj;
var PPCalcInput1_obj;
var PPCalcInput2_obj;
var PPCalcInput3_obj;
var RPPCalcInput1_obj;
var RPPCalcInput2_obj;
var ppcalc_clear_button_obj;
var ppcalc_calc_button_obj;
var rppcalc_clear_button_obj;
var rppcalc_calc_button_obj;
var dollarsign1_obj;
var dollarsign2_obj;
var dollarsign3_obj;
var dollarsign4_obj;
var dollarsign5_obj;
var visit_ebay_obj, new_visit_ebay_obj;
var visit_paypal_obj, new_visit_paypal_obj;
var rtn1 = false, rtn2 = false;
var switch_on;
var cj_pixel = new Image(1,1);
var ebay_url = new Array(3);
var paypal_url = new Array(3);
ebay_url[0] = ebay_url[1] = ebay_url[2] = 'http://www.ebay.com/';
paypal_url[0] = paypal_url[1] = paypal_url[2] = 'http://www.paypal.com/';

window.onload = makeObjects;

function makeObjects() {
 src_country_dropdown_obj = new getObj('src_country');
 src_currency_label_obj = new getObj('src_currency_label');
 dest_country_dropdown_obj = new getObj('dest_country');
 dest_currency_label_obj = new getObj('dest_currency_label');
 standard_rate_obj = new getObj('standard_rate');
 merchant_rate_1_obj = new getObj('merchant_rate_1');
 merchant_rate_2_obj = new getObj('merchant_rate_2');
 merchant_rate_3_obj = new getObj('merchant_rate_3');
 merchant_rate_4_obj = new getObj('merchant_rate_4');
 paypal_standard_rate_label_obj = new getObj('standard_rate_label');
 paypal_merchant_rate_1_label_obj = new getObj('merchant_rate_1_label');
 paypal_merchant_rate_2_label_obj = new getObj('merchant_rate_2_label');
 paypal_merchant_rate_3_label_obj = new getObj('merchant_rate_3_label');
 paypal_merchant_rate_4_label_obj = new getObj('merchant_rate_4_label');
 src_currency_box_obj = new getObj('src_currency_box');
 dest_currency_box_obj = new getObj('dest_currency_box');
 cc_fee_checkbox_obj = new getObj('cc_fee_checkbox');
 cc_fee_label_obj = new getObj('cc_fee_label');
 echeck_checkbox_obj = new getObj('echeck_checkbox');
 echeck_label_obj = new getObj('echeck_label');
 PPCalcInput1_obj = new getObj('PPCalcInput1');
 PPCalcInput2_obj = new getObj('PPCalcInput2');
 PPCalcInput3_obj = new getObj('PPCalcInput3');
 RPPCalcInput1_obj = new getObj('RPPCalcInput1');
 RPPCalcInput2_obj = new getObj('RPPCalcInput2');
 ppcalc_clear_button_obj = new getObj('ppcalc_clear');
 ppcalc_calc_button_obj = new getObj('ppcalc_calc');
 rppcalc_clear_button_obj = new getObj('rppcalc_clear');
 rppcalc_calc_button_obj = new getObj('rppcalc_calc');
 dollarsign1_obj = new getObj('dollarsign1');
 dollarsign2_obj = new getObj('dollarsign2');
 dollarsign3_obj = new getObj('dollarsign3');
 dollarsign4_obj = new getObj('dollarsign4');
 dollarsign5_obj = new getObj('dollarsign5');

 //visit_ebay_obj = new getObj('visit_ebay_link');
 //visit_paypal_obj = new getObj('visit_paypal_link');

 ppcalc_clear_button_obj.obj.onclick = PPClear;
 rppcalc_clear_button_obj.obj.onclick = RPPClear;
 ppcalc_calc_button_obj.obj.onclick = PPCalculate;
 rppcalc_calc_button_obj.obj.onclick = RPPCalculate;
 PPCalcInput1_obj.obj.onkeypress = textbox_onkeypress;
 RPPCalcInput1_obj.obj.onkeypress = textbox_onkeypress;
 src_country_dropdown_obj.obj.onchange = dest_country_dropdown_obj.obj.onchange = country_onchange;
 ppcalc_clear_button_obj.obj.onmouseover = ppcalc_calc_button_obj.obj.onmouseover = rppcalc_clear_button_obj.obj.onmouseover = rppcalc_calc_button_obj.obj.onmouseover = button_onmouseover;
 ppcalc_clear_button_obj.obj.onmouseout = ppcalc_calc_button_obj.obj.onmouseout = rppcalc_clear_button_obj.obj.onmouseout = rppcalc_calc_button_obj.obj.onmouseout = button_onmouseout;
 ppcalc_clear_button_obj.obj.onmousedown = ppcalc_calc_button_obj.obj.onmousedown = rppcalc_clear_button_obj.obj.onmousedown = rppcalc_calc_button_obj.obj.onmousedown = button_onmousedown;
 ppcalc_clear_button_obj.obj.onmouseup = ppcalc_calc_button_obj.obj.onmouseup = rppcalc_clear_button_obj.obj.onmouseup = rppcalc_calc_button_obj.obj.onmouseup = button_onmouseup;
 paypal_standard_rate_label_obj.obj.onmouseover = paypal_merchant_rate_1_label_obj.obj.onmouseover = paypal_merchant_rate_2_label_obj.obj.onmouseover = paypal_merchant_rate_3_label_obj.obj.onmouseover = paypal_merchant_rate_4_label_obj.obj.onmouseover = echeck_label_obj.obj.onmouseover = cc_fee_label_obj.obj.onmouseover = label_onmouseover;
 paypal_standard_rate_label_obj.obj.onmouseout = paypal_merchant_rate_1_label_obj.obj.onmouseout = paypal_merchant_rate_2_label_obj.obj.onmouseout = paypal_merchant_rate_3_label_obj.obj.onmouseout = paypal_merchant_rate_4_label_obj.obj.onmouseout = echeck_label_obj.obj.onmouseout = cc_fee_label_obj.obj.onmouseout = label_onmouseout;

 PPCalcInput1_obj.obj.focus();
 update_urls();
 if (src_country_selected_index != 0) { country_onchange(src_country_selected_index); }
}

function PPClear() {
 PPCalcInput1_obj.obj.value = PPCalcInput2_obj.obj.value = PPCalcInput3_obj.obj.value = '';
 PPCalcInput1_obj.obj.focus();
}

function RPPClear() {
 RPPCalcInput1_obj.obj.value = RPPCalcInput2_obj.obj.value = '';
 RPPCalcInput1_obj.obj.focus();
}

function update_urls() {
 switch (ebay_country_selected_index) {
  case 0: case 4: ebay_url[2] = 'Visit eBay'; ebay_url[0] = 'http://www.ebay.com/'; ebay_url[1] = 'http://www.jdoqocy.com/click-1711254-2202639'; paypal_url[0] = 'http://www.paypal.com/'; cj_pixel.src = 'http://www.afcyhf.com/image-1711254-2202639'; break; // USA
  case 1: ebay_url[2] = 'Visit eBay Canada'; ebay_url[0] = 'http://www.ebay.ca/'; ebay_url[1] = 'http://www.kqzyfj.com/click-1711254-5062576'; paypal_url[0] = 'http://www.paypal.ca/'; cj_pixel.src = 'http://www.ftjcfx.com/image-1711254-5062576'; break; // Canada
  case 2: ebay_url[2] = 'Visit eBay UK'; ebay_url[0] = 'http://www.ebay.co.uk/'; ebay_url[1] = 'http://www.tkqlhce.com/click-1711254-8132995'; paypal_url[0] = 'http://www.paypal.co.uk/'; cj_pixel.src = 'http://www.awltovhc.com/image-1711254-8132995'; break; // UK
  case 3: ebay_url[2] = 'Visit eBay Australia'; ebay_url[0] = 'http://www.ebay.com.au/'; ebay_url[1] = 'http://www.kqzyfj.com/click-1711254-9178630'; paypal_url[0] = 'http://www.paypal.com.au/'; cj_pixel.src = 'http://www.afcyhf.com/image-1711254-9178630'; break; // Australia
  case 5: ebay_url[2] = 'Visit eBay Argentina'; ebay_url[0] = 'http://www.mercadolibre.com.ar/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Argentina
  case 6: ebay_url[2] = 'Visit eBay Austria'; ebay_url[0] = 'http://www.ebay.at/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.at/'; break; // Austria
  case 7: ebay_url[2] = 'Visit eBay Belgium'; ebay_url[0] = 'http://www.ebay.be/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.be/'; break; // Belgium
  case 8: ebay_url[2] = 'Visit eBay Brazil'; ebay_url[0] = 'http://www.mercadolivre.com.br/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Brazil
  case 9: ebay_url[2] = 'Visit eBay China'; ebay_url[0] = 'http://www.ebay.com.cn/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/cgi-bin/webscr?cmd=xpt/general/CNPayPalComparison-outside'; break; // China
  case 10: ebay_url[2] = 'Visit eBay France'; ebay_url[0] = 'http://www.ebay.fr/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.fr/'; break; // France
  case 11: ebay_url[2] = 'Visit eBay Germany'; ebay_url[0] = 'http://www.ebay.de/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.de/'; break; // Germany
  case 12: ebay_url[2] = 'Visit eBay Hong Kong'; ebay_url[0] = 'http://www.ebay.com.hk/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Hong Kong
  case 13: ebay_url[2] = 'Visit eBay India'; ebay_url[0] = 'http://www.ebay.in/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // India
  case 14: ebay_url[2] = 'Visit eBay Ireland'; ebay_url[0] = 'http://www.ebay.ie/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.co.uk/'; break; // Ireland
  case 15: ebay_url[2] = 'Visit eBay Italy'; ebay_url[0] = 'http://www.ebay.it/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.it/'; break; // Italy
  case 16: ebay_url[2] = 'Visit eBay Korea'; ebay_url[0] = 'http://www.auction.co.kr/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Korea
  case 17: ebay_url[2] = 'Visit eBay Malaysia'; ebay_url[0] = 'http://www.ebay.com.my/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Malaysia
  case 18: ebay_url[2] = 'Visit eBay Mexico'; ebay_url[0] = 'http://www.mercadolibre.com.mx/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Mexico
  case 19: ebay_url[2] = 'Visit eBay Netherlands'; ebay_url[0] = 'http://www.ebay.nl/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.nl/'; break; // Netherlands
  case 20: ebay_url[2] = 'Visit eBay New Zealand'; ebay_url[0] = 'http://www.ebay.com/nz/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // New Zealand
  case 21: ebay_url[2] = 'Visit eBay Philippines'; ebay_url[0] = 'http://www.ebay.ph/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Philippines
  case 22: ebay_url[2] = 'Visit eBay Poland'; ebay_url[0] = 'http://www.ebay.pl/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Poland
  case 23: ebay_url[2] = 'Visit eBay Singapore'; ebay_url[0] = 'http://www.ebay.com.sg/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Singapore
  case 24: ebay_url[2] = 'Visit eBay Spain'; ebay_url[0] = 'http://www.ebay.es/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.es/'; break; // Spain
  case 25: ebay_url[2] = 'Visit eBay Sweden'; ebay_url[0] = 'http://www.ebay.se/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Sweden
  case 26: ebay_url[2] = 'Visit eBay Switzerland'; ebay_url[0] = 'http://www.ebay.ch/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.ch/'; break; // Switzerland
  case 27: ebay_url[2] = 'Visit eBay Taiwan'; ebay_url[0] = 'http://www.tw.ebay.com/'; ebay_url[1] = ebay_url[0]; paypal_url[0] = 'http://www.paypal.com/'; break; // Taiwan
  default: ebay_url[2] = 'Visit eBay'; ebay_url[0] = 'http://www.ebay.com/'; ebay_url[1] = 'http://www.jdoqocy.com/click-1711254-2202639'; paypal_url[0] = 'http://www.paypal.com/'; cj_pixel.src = 'http://www.afcyhf.com/image-1711254-2202639'; // USA
 }
 paypal_url[1] = paypal_url[0];
 //visit_ebay_obj.obj.href = ebay_url[1];
 //visit_paypal_obj.obj.href = paypal_url[1];
 //visit_ebay_obj.obj.title = ebay_url[2];
 //visit_paypal_obj.obj.title = 'Visit PayPal';
}

function span_onmouseover() { this.style.color = '#FF8000'; if (this.id == 'visit_ebay_link_1') { window.status = ebay_url[0]; } else if (this.id == 'visit_paypal_link_1') { window.status = paypal_url[0]; } }
function span_onmouseout() { this.style.color = '#808080'; window.status = ''; }
function span_onclick() { if (this.id == 'visit_ebay_link_1') { window.location.href = ebay_url[1]; this.style.color = '#808080'; } else if (this.id == 'visit_paypal_link_1') { window.location.href = paypal_url[1]; this.style.color = '#808080'; } }

function button_onmouseover(e) { this.style.backgroundColor = BUTTON_MOUSEOVER_COLOR; this.style.cursor = 'pointer'; this.style.cursor = 'hand'; }
function button_onmouseout(e) { this.style.backgroundColor = BUTTON_MOUSEOUT_COLOR; this.style.cursor = 'default'; }
function button_onmousedown(e) { this.style.backgroundColor = BUTTON_MOUSEDOWN_COLOR; this.style.cursor = 'pointer';  this.style.cursor = 'hand'; }
function button_onmouseup(e) { this.style.backgroundColor = BUTTON_MOUSEUP_COLOR; this.style.cursor = 'pointer'; this.style.cursor = 'hand'; window.status = ''; }

function label_onmouseover(e) { if (this.className == 'hand') { this.style.cursor = 'pointer'; this.style.cursor = 'hand'; } else { this.style.cursor = 'default'; } }
function label_onmouseout(e) { this.style.cursor = 'default'; }
function label_onclick(e) { eval(this.htmlFor + '_obj').obj.checked = !eval(this.htmlFor + '_obj').obj.checked; }

function get_key_code() { return event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; }
function trimstr(input_string) { return input_string.replace(/^\s+/,'').replace(/\s+$/,''); }
function url_encode(str) { return escape(str).replace(/\+/g, '%2B').replace(/\s/g, '%20'); }

// DHTML micro API from http://www.quirksmode.org/js/dhtmloptions.html
function getObj(name) {
 if (document.getElementById) { // For Level 1 DOM (Netscape 6, Explorer 5)
  this.obj = document.getElementById(name);
  this.style = document.getElementById(name).style;
 }
 else if (document.all) { // For IE4 DOM
  this.obj = document.all[name];
  this.style = document.all[name].style;
 }
 else if (document.layers) { // For NS4 DOM
  this.obj = getObjNN4(document,name);
  this.style = this.obj;
 }
}

function getObjNN4(obj,name) {
 var x = obj.layers;
 var foundLayer;
 for (var i=0;i<x.length;i++) {
  if (x[i].id == name)
   foundLayer = x[i];
  else if (x[i].layers.length)
   var tmp = getObjNN4(x[i],name);
  if (tmp) foundLayer = tmp;
 }
 return foundLayer;
}

function get_amount(x) {
 var to_return = parseFloat(x.obj.value);
 if (typeof to_return == 'undefined') { to_return = 0.00; }
 if (isNaN(to_return)) { to_return = 0.00; }
 return to_return;
}

function findPercentage() {
 return ra[src_country_dropdown_obj.obj.selectedIndex][dest_country_dropdown_obj.obj.selectedIndex][get_fee_rate_level()];
}

function get_fee_rate_level() {
 var fee_rate;
 if ((merchant_rate_4_obj.obj.disabled == false) && (merchant_rate_4_obj.obj.checked)) { fee_rate = 4; }
 else if ((merchant_rate_3_obj.obj.disabled == false) && (merchant_rate_3_obj.obj.checked)) { fee_rate = 3; }
 else if ((merchant_rate_2_obj.obj.disabled == false) && (merchant_rate_2_obj.obj.checked)) { fee_rate = 2; }
 else if ((merchant_rate_1_obj.obj.disabled == false) && (merchant_rate_1_obj.obj.checked)) { fee_rate = 1; }
 else { fee_rate = 0; }
 return fee_rate;
}

function findFixedFee() {
 // Last Updated: June 14, 2006
 if ((src_country_dropdown_obj.obj.selectedIndex == 4) && (dest_country_dropdown_obj.obj.selectedIndex == 4)) {
  return 0.3; // AUS --> AUS
 }
 switch (src_country_dropdown_obj.obj.selectedIndex) {
  case 0: return 0.3; // USA --> ...
  case 1: return 0.55; // CAD --> ...
  case 2: return 0.35; // EUR --> ...
  case 3: return 0.2; // UK --> ...
  case 4: return 0.4; // AUS --> ...
  case 5: return 40; // JAP --> ...
  case 6: return 0.3; // OTHER --> ...
  default: return 0.3; // USA --> ...
 }
}

function findECheckFee() {
 if (echeck_checkbox_obj.obj.checked) {
  switch (src_country_dropdown_obj.obj.selectedIndex) {
   case 0: return 5; // USA --> ...
   case 1: return 7.5; // CAD --> ...
   case 2: return 5; // EUR --> ...
   case 3: return 3.5; // UK --> ...
   case 4: return 7.5; // AUS --> ...
   case 5: return -1; // JAP --> ...
   case 6: return 5; // OTHER --> ...
   default: return 5; // USA --> ...
  }
 }
 else {
  return -1;
 }
}

function PPCalculate() {
 if (PPCalcInput1_obj.obj.value.length > 0) { // only continue if user entered something
  var echeck_fee = findECheckFee();
  var amount_sent = get_amount(PPCalcInput1_obj);
  var paypal_fees = amount_sent * findPercentage() + findFixedFee();
  var paypal_fees_rounded = Math.round(paypal_fees*100)/100;
  var total_paypal_fees = 0.00;
  var cc_fee = 0.00, cc_fee_rounded = 0.00;
  if ((cc_fee_checkbox_obj.obj.checked) && (cc_fee_checkbox_obj.obj.disabled == false)) { // add 2.5% currency conversion
   cc_fee = amount_sent * .025;
   cc_fee_rounded = Math.round(cc_fee*100)/100;
  }
  if ((paypal_fees_rounded >= echeck_fee) && (echeck_fee != -1)) {
   PPCalcInput2_obj.obj.value = (echeck_fee + cc_fee_rounded).toFixed(2);
  }
  else {
   total_paypal_fees = (Math.round((paypal_fees + cc_fee) * 100)/100).toFixed(2); // correctly converts 7.125 to 7.13
   if (total_paypal_fees >= amount_sent) { total_paypal_fees = amount_sent.toFixed(2); }
   PPCalcInput2_obj.obj.value = total_paypal_fees;
  }
  total_paypal_fees = get_amount(PPCalcInput2_obj);
  if ((amount_sent - total_paypal_fees) <= 0) { PPCalcInput3_obj.obj.value = '0.00'; }
  else { PPCalcInput3_obj.obj.value = (amount_sent - total_paypal_fees).toFixed(2); }
  if (PPCalcInput2_obj.obj.value.substr(0,1) == '.') { PPCalcInput2_obj.obj.value = '0' + PPCalcInput2_obj.obj.value; }
  if (PPCalcInput3_obj.obj.value.substr(0,1) == '.') { PPCalcInput3_obj.obj.value = '0' + PPCalcInput2_obj.obj.value; }
 }
 else { // user didn't enter anything
  alert('No amount was entered :-)');
  PPCalcInput1_obj.obj.focus();
 }
}

function RPPCalculate() {
 if (RPPCalcInput1_obj.obj.value.length > 0) { // only continue if user entered something
  var desired_amount = get_amount(RPPCalcInput1_obj);
  var new_value, amount_to_send = (desired_amount + findFixedFee()) / (1 - findPercentage());
  if ((cc_fee_checkbox_obj.obj.checked) && (cc_fee_checkbox_obj.obj.disabled == false)) { // add 2.5% currency conversion
   new_value = (desired_amount + findFixedFee()) / (1 - (findPercentage() + 0.025));
  }
  else { // 2.5% is NOT added
   new_value = amount_to_send;
  }
  if (((amount_to_send - desired_amount) >= findECheckFee()) && (findECheckFee() != -1)) {
   if ((cc_fee_checkbox_obj.obj.checked) && (cc_fee_checkbox_obj.obj.disabled == false)) {
    RPPCalcInput2_obj.obj.value = ((desired_amount + findECheckFee()) / (1 - 0.025)).toFixed(2);
   }
   else { RPPCalcInput2_obj.obj.value = (desired_amount + findECheckFee()).toFixed(2); }
  }
  else { RPPCalcInput2_obj.obj.value = new_value.toFixed(2); }
  if (RPPCalcInput2_obj.obj.value.substr(0,1) == '.') { RPPCalcInput2_obj.obj.value = '0' + RPPCalcInput2_obj.obj.value; }
 }
 else { // user didn't enter anything
  alert('No amount was entered :-)');
  RPPCalcInput1_obj.obj.focus();
 }
}

function has_selection() {
 var txt = '';
 if (document.selection) { txt = document.selection.createRange().text; }
 else if (window.getSelection) { txt = window.getSelection(); }
 else if (document.getSelection) { txt = document.getSelection(); }
 else { return false; }
 if (typeof txt == 'undefined') { return false; }
 if (isNaN(txt)) { return false; }
 if (txt.length > 0) { return true; }
 else { return false; }
}

function textbox_onkeypress() {
 var keycode = get_key_code();
 switch (keycode) {
  case 13: // enter
   if (this.value == '') { this.value = '0.01'; }
   event.returnValue = false;
   if (this.id == 'PPCalcInput1') { PPCalculate(); }
   else if (this.id == 'RPPCalcInput1') { RPPCalculate(); }
   break;
  case 38: // up arrow
   if (this.value == '') { this.value = '0.01'; }
   this.value = (parseFloat(this.value) + 0.5).toFixed(2);
   break;
  case 40: // down arrow
   if (parseFloat(this.value) >= 0.5) { this.value = (parseFloat(this.value) - 0.5).toFixed(2); }
   else { this.value = '0.00'; }
   break;
  case 46: // period (.) was pressed
   if (this.value.indexOf(".") != -1) { // there is already a (.) in there
    if (has_selection() == false) { event.returnValue = false; } // no good
   }
   break;
  case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57:
   if ( this.value.length >= 3) {
    if ( this.value.substr(this.value.length - 3, 1) == '.' ) {
     if (has_selection() == false) { event.returnValue = false; } // no good
    }
   }
   break;
  default:
   event.returnValue = false;
 } // end switch
 return true;
}

function country_onchange() {
 var currency_str, merchant_rate4_inner, fixed_fee_string, currency_box_dots;
 currency_box_dots = '<div class="inside_dot_tl"></div><div class="inside_dot_tr"></div><div class="inside_dot_bl" id="src_currency_bl"></div><div class="inside_dot_br" id="src_currency_br"></div>';
 switch(src_country_dropdown_obj.obj.selectedIndex) {
  case 2: currency_str = "&euro;"; break; // EUR --> ...
  case 3: currency_str = "&pound;"; break; // UK --> ...
  case 5: currency_str = "&yen;"; break; // JAP --> ...
  default: currency_str = "$";
 }
 fixed_fee_string = findFixedFee().toFixed(2);
 if (fixed_fee_string.substr(fixed_fee_string.length - 3, 3) == '.00') { fixed_fee_string = String.fromCharCode(165) + ' ' + fixed_fee_string.substr(0, fixed_fee_string.length - 3); }
 else { fixed_fee_string = currency_str + fixed_fee_string; }
 // If destination is NOT Europe or UK, disable Merchant Level 4
 if ((dest_country_dropdown_obj.obj.selectedIndex != 2) && (dest_country_dropdown_obj.obj.selectedIndex != 3)) {
  paypal_merchant_rate_4_label_obj.obj.className = 'disabled';
  merchant_rate_4_obj.obj.disabled = true;
  if (merchant_rate_4_obj.obj.checked) { merchant_rate_3_obj.obj.checked = true; }
  merchant_rate4_inner = "EUROPE ONLY";
 }
 else {
  paypal_merchant_rate_4_label_obj.obj.className = 'hand';
  merchant_rate_4_obj.obj.disabled = false;
  merchant_rate4_inner = (ra[src_country_dropdown_obj.obj.selectedIndex][dest_country_dropdown_obj.obj.selectedIndex][4] * 100).toFixed(1) + "% + " + fixed_fee_string;
 }
 paypal_standard_rate_label_obj.obj.innerHTML = paypal_standard_rate_label_obj.obj.title = "PayPal Standard Rate (" + (ra[src_country_dropdown_obj.obj.selectedIndex][dest_country_dropdown_obj.obj.selectedIndex][0] * 100).toFixed(1) + "% + " + fixed_fee_string + ")";
 paypal_merchant_rate_1_label_obj.obj.innerHTML = paypal_merchant_rate_1_label_obj.obj.title = "PayPal Merchant Rate I (" + (ra[src_country_dropdown_obj.obj.selectedIndex][dest_country_dropdown_obj.obj.selectedIndex][1] * 100).toFixed(1) + "% + " + fixed_fee_string + ")";
 paypal_merchant_rate_2_label_obj.obj.innerHTML = paypal_merchant_rate_2_label_obj.obj.title = "PayPal Merchant Rate II (" + (ra[src_country_dropdown_obj.obj.selectedIndex][dest_country_dropdown_obj.obj.selectedIndex][2] * 100).toFixed(1) + "% + " + fixed_fee_string + ")";
 paypal_merchant_rate_3_label_obj.obj.innerHTML = paypal_merchant_rate_3_label_obj.obj.title = "PayPal Merchant Rate III (" + (ra[src_country_dropdown_obj.obj.selectedIndex][dest_country_dropdown_obj.obj.selectedIndex][3] * 100).toFixed(1) + "% + " + fixed_fee_string + ")";
 paypal_merchant_rate_4_label_obj.obj.innerHTML = paypal_merchant_rate_4_label_obj.obj.title = "PayPal Merchant Rate IV (" + merchant_rate4_inner + ")";
 dollarsign1_obj.obj.innerHTML = currency_str;
 dollarsign2_obj.obj.innerHTML = currency_str;
 dollarsign3_obj.obj.innerHTML = currency_str;
 dollarsign4_obj.obj.innerHTML = currency_str;
 dollarsign5_obj.obj.innerHTML = currency_str;
 if (this.selectedIndex >= 0) { switch_on = this.selectedIndex; }
 else { switch_on = src_country_selected_index; }
 switch(switch_on) {
  case 0: currency_str = "USD"; break;
  case 1: currency_str = "CAD"; break;
  case 2: currency_str = "EUR"; break;
  case 3: currency_str = "GBP"; break;
  case 4: currency_str = "AUD"; break;
  case 5: currency_str = "JPY"; break;
  case 6: currency_str = "USD"; break;
 }
 if (this.id == 'src_country') { src_currency_box_obj.obj.innerHTML = currency_str + currency_box_dots; }
 else if (this.id == 'dest_country') { dest_currency_box_obj.obj.innerHTML = currency_str + currency_box_dots; }
 else if (country_onchange.arguments.length > 0) {
  src_currency_box_obj.obj.innerHTML = currency_str + currency_box_dots;
  dest_currency_box_obj.obj.innerHTML = currency_str + currency_box_dots;
 }
 // Enable or Disable the 2.5% currency conversion check box
 if (src_country_dropdown_obj.obj.selectedIndex != dest_country_dropdown_obj.obj.selectedIndex) {
  if ((src_country_dropdown_obj.obj.selectedIndex == 0) && (dest_country_dropdown_obj.obj.selectedIndex == 1)) {
   cc_fee_label_obj.obj.className = 'disabled';
   cc_fee_checkbox_obj.obj.checked = false;
   cc_fee_checkbox_obj.obj.disabled = true;
  }
  else {
   cc_fee_checkbox_obj.obj.disabled = false;
   cc_fee_label_obj.obj.className = 'hand';
  }
 }
 else {
  cc_fee_label_obj.obj.className = 'disabled';
  cc_fee_checkbox_obj.obj.checked = false;
  cc_fee_checkbox_obj.obj.disabled = true;
 }
}

