<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="eBay Profit Calculator (USA)"
             description="The eBay Profit Calculator let's you discover how much you can expect to make when selling items on eBay. It's your FREE Ebay Fee Calculator for the web and for your iGoogle page."
             author="Justin Key, Jesse Campos"
             author_email="ebayprofitcalc@gmail.com"
             author_affiliation="None"
             author_location="Orlando, FL"
             screenshot="http://ebaycalc.googlecode.com/files/gadget_screenshot.png"
             thumbnail="http://ebaycalc.googlecode.com/files/gadget_thumbnail.png"
             category="Tools" category2="Finance"
             width="320"
             height="320">
<Locale lang="en" country="us" />
<Require feature="tabs" />
<Require feature="dynamic-height"/>
<Preload href="http://ebaycalc.googlecode.com/files/eBay_logo.jpg" />
</ModulePrefs>

<Content type="html">

<![CDATA[

<link rel="stylesheet" href="http://ebaycalc.googlecode.com/files/dhtmlwind.css" type="text/css" />
<script type="text/javascript"
  src=http://ebaycalc.googlecode.com/files/dhtmlwind.js>
  /***********************************************
  * DHTML Window Widget- &#1081; Dynamic Drive (www.dynamicdrive.com)
  * This notice must stay intact for legal use.
  * Visit http://www.dynamicdrive.com/ for full source code*
  **********************************************/

  /***********************************************
  * Bookmark site script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
  * This notice MUST stay intact for legal use
  * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
  ***********************************************/

  /* Modified to support Opera */
  function bookmarksite(title,url){
  if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
  else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
  elem.setAttribute('href',url);
  elem.setAttribute('title',title);
  elem.setAttribute('rel','sidebar');
  elem.click();}
  else if(document.all)// ie
  window.external.AddFavorite(url, title);
  }
</script>

<script type="text/javascript">
  // Initialize tabs, designate the tab named "Calculator" as
  // the tab selected by default.
  var tabs = new _IG_Tabs(__MODULE_ID__, "Calculator");

  var payPalFlatFee = 0.0;
  var fee = 0;
  var profit = 0;
  var closingValueFee = 0;
  var payPalCharges = 0;
  var insertionFee = 0;
  var reserveFee = 0;
  var proPackFee = 0;
  var featuredPlusFee = 0;
  var listingFee = 0;
  var scheduledListingFee = 0.0;
  var ebayFeaturedlistingFee = 0.0;
  var buyItNowFee = 0.0;
  var popUpWindow;
  var popUpWindowStatus = 0;
  var openPriceWindow;
  var openPriceWindowStatus = 0;
  var soldExceedsAvailWindow;
  var soldExceedsAvailWindowStatus = 0;
  var reservePriceWindow;
  var reservePriceWindowStatus = 0;
  var naNWindow;
  var naNWindowStatus = 0;
  var negativeWindow;
  var negativeWindowStatus = 0;
  var buyItNowWindow;
  var buyItNowWindowStatus = 0;

  function init()
  {
    tabs.addTab("Calculator", "profitTab", profitCallback);
    tabs.addTab("Money Maker", "moneyMakerTab", moneyMakerCallback);
    tabs.addTab("Search eBay", "ebayTab", ebayCallback);
  }

  function profitCallback(tabId)
  {
    _IG_AdjustIFrameHeight();
  }

  function moneyMakerCallback(tabId)
  {
    _IG_AdjustIFrameHeight();
    closeFramelessWindows();
  }

  function ebayCallback(tabId)
  {
    _IG_AdjustIFrameHeight();
    closeFramelessWindows();
  }

  function closeFramelessWindows()
  {
    if(popUpWindowStatus == 1)
    {
      popUpWindow.close();
    }

    if(openPriceWindowStatus == 1)
    {
      openPriceWindow.close();
    }

    if(soldExceedsAvailWindowStatus == 1)
    {
      soldExceedsAvailWindow.close();
    }

    if(reservePriceWindowStatus == 1)
    {
      reservePriceWindow.close();
    }

    if(naNWindowStatus == 1)
    {
      naNWindow.close();
    }

    if(negativeWindowStatus == 1)
    {
      negativeWindow.close();
    }

    if(buyItNowWindowStatus == 1)
    {
      buyItNowWindow.close();
    }
  }

  function openPricePopUp(calledByReverseErrorCheck)
  {
    var errorMsg = "";

    if(calledByReverseErrorCheck == false)
    {
      errorMsg = "Please insert an starting bid price (minimum $0.01)."
    }

    else
    {
      errorMsg = "Please insert an starting bid price (minimum $0.01) on the Calculator Tab."
    }

    openPriceWindow = dhtmlwindow.open("openingPriceWarning", "inline", errorMsg ,"Invalid Data","width=120px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    openPriceWindowStatus = 1;

    openPriceWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      openPriceWindowStatus = 0;
      return true;
    }
  }

  function buyItNowPopUp()
  {
    var errorMsg = "";
  
    if(eval(buyItNowBox.value) < 1.00)
    {
      errorMsg = "Your Buy It Now price must be at least $1.00.";
    }
    else if(eval(openingPriceBox.value) > eval(buyItNowBox.value))
    {
      errorMsg = "Your starting bid cannot exceed you Buy It Now Price.";
    }
    
    buyItNowWindow = dhtmlwindow.open("buyItNowPriceWarning", "inline", errorMsg ,"Invalid Data","width=120px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    buyItNowWindowStatus = 1;

    buyItNowWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      buyItNowWindowStatus = 0;
      return true;
    }
  }

  function reservePricePopUp()
  {
    var errorMsg = "";

    if(eval(reserveBox.value) < 0.01)
    {
      errorMsg = "Your reserve price must be at least $0.01.";
    }
    else if((eval(reserveBox.value)>eval(sold4PriceBox.value)) && (sold4PriceBox.value != 0))
    {
      errorMsg = "Your reserve price cannot exceed your selling price."
    }
    else if(eval(openingPriceBox.value) > eval(reserveBox.value))
    {
      errorMsg = "Your staring bid cannot exceed your Reserve Price.";
    } 
    else if(eval(reserveBox.value) > eval(buyItNowBox.value))
    {
      errorMsg = "Your reserve price cannot exceed your Buy It Now price."
    }

    reservePriceWindow = dhtmlwindow.open("reservePriceWarning", "inline", errorMsg, "Invalid Data","width=120px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    reservePriceWindowStatus = 1;

    reservePriceWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      reservePriceWindowStatus= 0;
      return true;
    }
  }

  function naNPopUp()
  {
    naNWindow = dhtmlwindow.open("naNWarning","inline","You entered a value which is not a number.","Invalid Data","width=120px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    naNWindowStatus = 1;

    naNWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      naNWindowStatus= 0;
      return true;
    }
  }

  function negativePopUp()
  {
    negativeWindow = dhtmlwindow.open("negativeWarning","inline","You entered a value which is negative, please correct.","Invalid Data","width=120px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    negativeWindowStatus = 1;

    negativeWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      negativeWindowStatus= 0;
      return true;
    }
  }


  function soldExceedsAvailPopUp()
  {
    soldExceedsAvailWindow=dhtmlwindow.open("soldExceedsAvailWarning","inline","Number of sold items exceeds number of items available.","Invalid Data","width=120px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    soldExceedsAvailWindowStatus = 1;

    soldExceedsAvailWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      soldExceedsAvailWindowStatus = 0;
      return true;
    }
  }


  function feePopUp()
  {
    var p ="";
    
    p = "<font size=2>";

    if(multiListCheckBox.checked==false)
    {  
      p += "<b>$" + (eval(sold4PriceBox.value)).toFixed(2) + "&nbsp;(Sold For)</b></br>";
    }
    else
    {
      p += "<b>$" + (eval(buyItNowBox.value)*eval(soldBox.value)).toFixed(2) + "&nbsp;(Sold For)</b></br>";
    }

    if(eval(cost2AcquireBox.value) > 0)
    {
      if((multiListCheckBox.checked==false) && (sold4PriceBox.value > 0))
      {
        p += "&nbsp;&nbsp;- $" + (eval(cost2AcquireBox.value)).toFixed(2) + "&nbsp;(Cost to Acquire)</br>";
      }
      else if((multiListCheckBox.checked==true) && soldBox.value > 0)
      {
        p += "&nbsp;&nbsp;- $" + (eval(cost2AcquireBox.value)*eval(soldBox.value)).toFixed(2) + "&nbsp;(Cost to Acquire)</br>";
      }
    }

    if(eval(shippingBox.value) > 0)
    {
      if(multiListCheckBox.checked==false && sold4PriceBox.value > 0)
      {
        p += "&nbsp;+ $" + (eval(shippingBox.value)).toFixed(2) + "&nbsp;(Charged To Ship)</br>";
      }
      else if((multiListCheckBox.checked==true) && soldBox.value > 0)
      {
        p += "&nbsp;+ $" + (eval(shippingBox.value)*eval(soldBox.value)).toFixed(2) + "&nbsp;(Charged To Ship)</br>";
      }
    }

    if(eval(shippingCostBox.value) > 0)
    {
      if(multiListCheckBox.checked==false && sold4PriceBox.value > 0)
      {
        p += "&nbsp;&nbsp;- $" + (eval(shippingCostBox.value)).toFixed(2) + "&nbsp;(Cost To Ship)</br>";
      }
      else if((multiListCheckBox.checked==true) && soldBox.value > 0)
      {
        p += "&nbsp;&nbsp;- $" + (eval(shippingCostBox.value)*eval(soldBox.value)).toFixed(2) + "&nbsp;(Cost To Ship)</br>";
      }
    }
  
    if(payPalCharges > 0)
    {
      p += "&nbsp;&nbsp;- $" + (eval(payPalCharges)).toFixed(2) + "&nbsp;(PayPal Charges)</br>";
    }
    
    if(powerSellerCheckBox.checked ==true && closingValueFee > 0)
    {
      p += "&nbsp;&nbsp;- $" + (eval(closingValueFee)).toFixed(2) + "&nbsp;(Final Val. Fee(Pow. Sell.))</br>";
    }
    else if(closingValueFee > 0)
    {
      p += "&nbsp;&nbsp;- $" + (eval(closingValueFee)).toFixed(2) + "&nbsp;(Final Val. Fee)</br>";
    }

    if(reserveCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;- $" + (eval(reserveFee)).toFixed(2) + "&nbsp;(Reserve)</br>";
    }

    if(ebayFeaturedCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;- $" + (ebayFeaturedlistingFee).toFixed(2) + "&nbsp;(Ebay Featured)</br>";
    }

    if(scheduledListingCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;- $" + (eval(scheduledListingCheckBox.value)).toFixed(2) + "&nbsp;(Scheduled Listing)</br>";
    }
  
    if(secondCategoryCheckBox.checked == true)
    {
      p += "&nbsp;&nbsp;- $" + (eval(insertionFee)).toFixed(2) + "&nbsp;(Insertion Fee (2x))</br>";
      if(listingFee > 0)
      {
        p += "&nbsp;&nbsp;- $" + (eval(listingFee)).toFixed(2) + "&nbsp;(Listing Fee (2x))</br>";
      }
    }
    else
    {
      p += "&nbsp;&nbsp;- $" + (eval(insertionFee)).toFixed(2) + "&nbsp;(Insertion Fee)</br>";
      if(listingFee > 0)
      {
        p += "&nbsp;&nbsp;- $" + (eval(listingFee)).toFixed(2) + "&nbsp;(Listing Fee)</br>";
      }
    }
    
    if(buyItNowCheckBox.checked==true && multiListCheckBox.checked == false)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Buy It Now: $" + (eval(buyItNowFee)).toFixed(2) + "</br>";
    }
    
    if(addImagesBox.value > 0)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Additional Images: $" + (eval(addImagesBox.value)*0.15).toFixed(2) + "</br>";
    }
  
    if(subtitleCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Subtitle: $" + (eval(subtitleCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(valuePackCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Value Pack: $" + (eval(valuePackCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(highlightCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Highlight: $" + (eval(highlightCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(borderCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Border: $" + (eval(borderCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(galleryPlusCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Gallery Plus: $" + (eval(galleryPlusCheckBox.value)).toFixed(2) + "</br>";
    }

    if(giftServicesCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Gift Services: $" + (eval(giftServicesCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(boldCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Bold: $" + (eval(boldCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(listingDesignerCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Listing Designer: $" + (eval(listingDesignerCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(galleryFeatureCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Gallery Feature: $" + (eval(galleryFeatureCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(tenDayDurationCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Ten Day Duration: $" + (eval(tenDayDurationCheckBox.value)).toFixed(2) + "</br>";
    }
  
    if(picturePackCheckBox.checked==true)
    {
      if(picturePackComboBox.value==0)
      {
        p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Picture Pack: $0.75</br>";
      }
      else
      {
        p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Picture Pack: $1.00</br>";
      }
    }
  
    if(proPackCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Pro Pack Fee: $" + (eval(proPackFee)).toFixed(2) + "</br>";
    }
  
    if(featuredPlusCheckBox.checked==true)
    {
      p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--> Featured Plus Fee: $" + (Math.round(featuredPlusFee*100)/100) + "</br>";
    }

    p += "<b>$" + eval(profitBox.value) + "&nbsp;(Total Profit)</b></br>";
    p += "</font>";

    popUpWindow= dhtmlwindow.open("feeBox", "inline", p, "Fee Details","width=250px,height=0px,left=65px,top=110px,center=1,resize=1,scrolling=1","recal");
    popUpWindowStatus = 1;

    popUpWindow.onclose=function()
    {
      //Run custom code when window is about to be closed
      popUpWindowStatus = 0;
      return true;
    }
  }

  function reset()  
  {
    cost2AcquireBox.value = 0.0;
    sold4PriceBox.value = 0.0;
    insertionType.value = 0;
    multiListCheckBox.checked = false;
    soldBox.value = 1;
    soldBox.disabled = true;
    offeredBox.value = 1;
    offeredBox.disabled = true;
    shippingCostBox.value = 0.0;
    shippingBox.value = 0.0;
    buyItNowCheckBox.checked = false;
    buyItNowBox.value = 0.0;
    buyItNowBox.disabled = true;
    reserveCheckBox.checked = false;
    reserveBox.value = 0.0;
    openingPriceBox.value = 0.0;
    addImagesCheckBox.checked=false;
    addImagesBox.disabled = true;
    addImagesBox.value = 0;
    powerSellerCheckBox.checked=false;
    powerSellerBox.disabled=true;
    payPalCheckBox.checked=true;
    subtitleCheckBox.checked=false;
    valuePackCheckBox.checked=false;
    highlightCheckBox.checked=false;
    borderCheckBox.checked=false;
    galleryPlusCheckBox.checked=false;
    ebayFeaturedCheckBox.checked=false;
    scheduledListingCheckBox.checked=false;
    giftServicesCheckBox.checked=false;
    proPackCheckBox.checked=false;
    boldCheckBox.checked=false;
    listingDesignerCheckBox.checked=false;
    galleryFeatureCheckBox.checked=false;
    featuredPlusCheckBox.checked=false;
    tenDayDurationCheckBox.checked=false;
    secondCategoryCheckBox.checked=false;
    picturePackCheckBox.checked=false;
    picturePackComboBox.value = 0;
    picturePackComboBox.disabled = true;
    profitBox.value= 0;

    closeFramelessWindows();
  }


  function errorCheckPassed(isReverseCalculate)
  {
    var passed = true;

    if(isReverseCalculate)
    {
      return true;
    }

    if (isNaN(cost2AcquireBox.value) || isNaN(sold4PriceBox.value) || isNaN(insertionType.value) || isNaN(soldBox.value) || isNaN(offeredBox.value) || isNaN(shippingCostBox.value) || isNaN(shippingBox.value) || isNaN(buyItNowBox.value) || isNaN(reserveBox.value) || isNaN(openingPriceBox.value) || isNaN(addImagesBox.value) || isNaN(picturePackComboBox.value) || isNaN(profitBox.value))
    {
      naNPopUp();
      passed = false;
    }  
    else if(cost2AcquireBox.value == "" || sold4PriceBox.value == "" || insertionType.value == "" || soldBox.value == "" || offeredBox.value == "" || shippingCostBox.value == "" || shippingBox.value == "" || buyItNowBox.value == "" || reserveBox.value == "" || openingPriceBox.value == "" || addImagesBox.value == "" || picturePackComboBox.value == "")
    {
      naNPopUp();
      passed = false;
    }  
    else if(eval(cost2AcquireBox.value) < 0 || eval(sold4PriceBox.value) < 0 || eval(insertionType.value) < 0 || eval(soldBox.value) < 0 || eval(offeredBox.value) < 0 || eval(shippingCostBox.value) < 0 || eval(shippingBox.value) < 0 || eval(buyItNowBox.value) < 0 || eval(reserveBox.value) < 0 || eval(openingPriceBox.value) < 0 || eval(addImagesBox.value) < 0 || eval(picturePackComboBox.value) < 0)
    {
      negativePopUp();
      passed = false;
    }
    else if(reserveCheckBox.checked == true && ((eval(reserveBox.value)>eval(sold4PriceBox.value) && (eval(sold4PriceBox.value) != 0)) || eval(reserveBox.value) < 0.01))
    {
      reservePricePopUp();
      passed = false;
    }
    else if(reserveCheckBox.checked == true && buyItNowCheckBox.checked == true && (eval(reserveBox.value) > eval(buyItNowBox.value)))
    {
      reservePricePopUp();
      passed = false;
    }
    else if((multiListCheckBox.checked == false) && (reserveCheckBox.checked == true) && (eval(openingPriceBox.value) > eval(reserveBox.value)))
    {
      reservePricePopUp();
      passed = false;
    }
    else if(eval(openingPriceBox.value)<0.01 && openingPriceBox.disabled==false)
    {
      openPricePopUp(false);
      passed = false;
    }
    else if((buyItNowCheckBox.checked == true) && (eval(buyItNowBox.value) < 1.00))
    {
      buyItNowPopUp();
      passed = false;
    }
    else if((multiListCheckBox.checked == false) && (buyItNowCheckBox.checked == true) && (eval(openingPriceBox.value) > eval(buyItNowBox.value)))
    {
      buyItNowPopUp();
      passed = false;
    }
    else if((multiListCheckBox.checked == true) && (eval(soldBox.value) > eval(offeredBox.value)))
    {
      soldExceedsAvailPopUp();
      passed = false;
    }
    
    return passed;
  }


  function calculate(reverseCalculateCalled)
  {
    profitBox.value="";

    closeFramelessWindows();

    if(errorCheckPassed(reverseCalculateCalled))
    {
      profit = 0.0;
      fee = 0.0;
      closingValueFee = 0.0;
      payPalCharges = 0.0;
      insertionFee = 0.0;
      reserveFee = 0.0;
      buyItNowFee = 0.0;
      proPackFee = 0.0;
      featuredPlusFee = 0.0;
      listingFee = 0.0;
      scheduledListingFee = 0.0;
      ebayFeaturedlistingFee = 0.0;
  
      if(multiListCheckBox.checked == true)
      {
        openingPriceBox.value = buyItNowBox.value;
      }

      if(reserveCheckBox.checked==true)
      {
        if(eval(reserveBox.value) < 200)
        {
          reserveFee=2.0;
        }
        else
        {
          reserveFee=eval(reserveBox.value)*0.01;
        }
        if(reserveFee > 50)
        {
          reserveFee=50;
        }
      }

      if(eval(insertionType.value) > 0) //if item is media, dvd, book...
      {
        if(multiListCheckBox.checked == false)
        {
          if(eval(openingPriceBox.value) < 1)
          {
            insertionFee=.10;
          }
          else if(eval(openingPriceBox.value) <10)
          {  
            insertionFee=.25;
          }
          else if(eval(openingPriceBox.value) <25)
          {
            insertionFee=.35;
          }
          else if(eval(openingPriceBox.value) <50)
          {
            insertionFee=1;
          }
          else if(eval(openingPriceBox.value) <200)
          {
            insertionFee=2;
          }
          else if(eval(openingPriceBox.value) <500)
          {
            insertionFee=3;
          }
          else
          {
            insertionFee=4;
          }
        }
        else //muti-listing
        {
          if((eval(openingPriceBox.value)*eval(offeredBox.value)) < 1)
          {
            insertionFee=.10;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) < 10)
          {
            insertionFee=.25;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) < 25)
          {
            insertionFee=.35;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <50)
          {
            insertionFee=1;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <200)
          {
            insertionFee=2;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <500)
          {
            insertionFee=3;
          }
          else
          {
            insertionFee=4;
          }
        }  //end else -multi listing  
      } //end if insertion type > 0

      else //insertion fee for non-media
      {
        if(multiListCheckBox.checked == false)
        {
          if(eval(openingPriceBox.value)< 1)
          {
            insertionFee=.15;
          }
          else if(eval(openingPriceBox.value) <10)
          {
            insertionFee=.35;
          }
          else if(eval(openingPriceBox.value) <25)
          {
            insertionFee=.55;
          }
          else if(eval(openingPriceBox.value) <50)
          {
            insertionFee=1;
          }
          else if(eval(openingPriceBox.value) <200)
          {
            insertionFee=2;
          }
          else if(eval(openingPriceBox.value) <500)
          {
            insertionFee=3;
          }
          else
          {
            insertionFee=4;
          }
        } //end if not multi use item

        else //multi-List item
        {
          if((eval(openingPriceBox.value)*eval(offeredBox.value))< 1)
          {
            insertionFee=.15;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <10)
          {
            insertionFee=.35;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <25)
          {
            insertionFee=.55;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <50)
          {
            insertionFee=1;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <200)
          {
            insertionFee=2;
          }
          else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <500)
          {
            insertionFee=3;
          }
          else
          {
            insertionFee=4;
          }
        } //end else - multi list item
      } //end else - insertion fee for non-media
      
      if(insertionFee > 4)
      {
        insertionFee=4;
      }

      if(buyItNowCheckBox.checked==true && multiListCheckBox.checked==true)
      {
        if(eval(insertionType.value) > 0) //dvd, book (media)
        {
          insertionFee=.15;
        }
        else //(non-media)
        {
          insertionFee=.35;
        }
      }
  
      if(buyItNowCheckBox.checked==true && multiListCheckBox.checked==false)
      {
        if(eval(buyItNowBox.value) < 10)
        {
          buyItNowFee = .05;
          listingFee+=.05;
        }
        else if(eval(buyItNowBox.value) <25)
        {
          buyItNowFee = .10;
          listingFee+=.10;
        }
        else if(eval(buyItNowBox.value) <50)
        {
          buyItNowFee = .20;
          listingFee+=.20;
        }
        else
        {
          buyItNowFee = .25;
          listingFee+=0.25;
        }
      }

      if(proPackCheckBox.checked==true)
      {
        if((eval(openingPriceBox.value)*eval(offeredBox.value)) <25)
        {
          proPackFee+=19.95;
          listingFee+=19.95;
        }

        else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <200)
        {
          proPackFee+=24.95;
          listingFee+=24.95;
        }

        else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <500)
        {
          proPackFee+=29.95;
          listingFee+=29.95;
        }

        else
        {
          proPackFee+=34.95;
          listingFee+=34.95;
        }
      }

      if(featuredPlusCheckBox.checked==true)
      {
        if((eval(openingPriceBox.value)*eval(offeredBox.value)) <25)
        {
          featuredPlusFee+=9.95;
          listingFee+=9.95;
        }
        else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <200)
        {
          featuredPlusFee+=14.95;
          listingFee+=14.95;
        }
        else if((eval(openingPriceBox.value)*eval(offeredBox.value)) <500)
        {
          featuredPlusFee+=19.95;
          listingFee+=19.95;
        }
        else
        {
          featuredPlusFee+=24.95;
          listingFee+=24.95;
        }
      }

      if(addImagesCheckBox.checked==true)
      {
        listingFee+=eval(addImagesBox.value)*0.15;
      }

      if(subtitleCheckBox.checked==true)
      {
        listingFee+=eval(subtitleCheckBox.value);
      }

      if(valuePackCheckBox.checked==true)
      {
        listingFee+=eval(valuePackCheckBox.value);
      }

      if(highlightCheckBox.checked==true)
      {
        listingFee+=eval(highlightCheckBox.value);
      }

      if(borderCheckBox.checked==true)
      {
        listingFee+=eval(borderCheckBox.value);
      }

      if(galleryPlusCheckBox.checked==true)
      {
        listingFee+=eval(galleryPlusCheckBox.value);
      }
      else if((multiListCheckBox.checked == false) && ebayFeaturedCheckBox.checked==true)
      {
        ebayFeaturedlistingFee=eval(ebayFeaturedCheckBox.value);
      }
      
      if((multiListCheckBox.checked == true) && ebayFeaturedCheckBox.checked==true)
      {
        ebayFeaturedlistingFee=79.95;
      }      

      if(scheduledListingCheckBox.checked==true)
      {
        scheduledListingFee+=eval(scheduledListingCheckBox.value);
      }

      if(giftServicesCheckBox.checked==true)
      {
        listingFee+=eval(giftServicesCheckBox.value);
      }

      if(boldCheckBox.checked==true)
      {
        listingFee+=eval(boldCheckBox.value);
      }

      if(listingDesignerCheckBox.checked==true)
      {
        listingFee+=eval(listingDesignerCheckBox.value);
      }

      if(galleryFeatureCheckBox.checked==true)
      {
        listingFee+=eval(galleryFeatureCheckBox.value);
      }
  
      if(tenDayDurationCheckBox.checked==true)
      {
        listingFee+=eval(tenDayDurationCheckBox.value);
      }

      if(picturePackCheckBox.checked==true)
      {
        if(picturePackComboBox.value==0)
        {
          listingFee+=0.75;
        }
        else
        {
          listingFee+=1;
        }
      }

      var payPalPercent = (eval(payPalBox.value)/100).toFixed(3);

      if(payPalCheckBox.checked==true)
      {
        payPalFlatFee = 0.30;
        if(multiListCheckBox.checked==true && eval(soldBox.value) > 0)
        {
          payPalCharges = (eval(buyItNowBox.value)+eval(shippingBox.value))
          payPalCharges = (Math.round(eval(payPalCharges)*100)/100);
          payPalCharges *= eval(payPalPercent);
          payPalCharges = (Math.round(eval(payPalCharges)*100)/100);
          payPalCharges = eval(payPalCharges)+payPalFlatFee;  
          payPalCharges *= eval(soldBox.value);
          payPalCharges = (Math.round(eval(payPalCharges)*100)/100);
        }

        else if(eval(sold4PriceBox.value) > 0)
        {
           payPalCharges = (eval(sold4PriceBox.value)*payPalPercent)+(eval(shippingBox.value)*payPalPercent)+payPalFlatFee; 
           payPalCharges = payPalCharges.toFixed(2);
        }
      }

      //do no mess with this order

      if((multiListCheckBox.checked==false && sold4PriceBox.value < 25.01) || (multiListCheckBox.checked==true && buyItNowBox.value < 25.01))
      {
        if(multiListCheckBox.checked==true)
        {
          closingValueFee = eval(buyItNowBox.value)*0.0875;
          closingValueFee -= 0.0000001; //ebay stores 6 decimal places and rounds down <=.00000005, subtract 0.0000001 to account for this
          closingValueFee = closingValueFee.toFixed(6); //ebay stores 6 decimal places
          if(powerSellerCheckBox.checked==true)
          {
            var temp = (eval(100-powerSellerBox.value)/100).toFixed(2);
            closingValueFee =temp*closingValueFee;
            closingValueFee -= 0.0000001; //ebay stores 6 decimal places and rounds down <=.00000005, subtract 0.0000001 to account for this
            closingValueFee = closingValueFee.toFixed(6); //ebay stores 6 decimal places
          }
          closingValueFee *= eval(soldBox.value);
          closingValueFee -= 0.001; //ebay rounds down half cents 38.575 rounds to 38.57 and 38.576 rounds to 38.58
          closingValueFee = closingValueFee.toFixed(2);
        }
        else
        {
          closingValueFee = eval(sold4PriceBox.value)*0.0875;
          if(powerSellerCheckBox.checked==true)
          {
            var temp = (eval(100-powerSellerBox.value)/100).toFixed(2);
            closingValueFee =temp*closingValueFee;
            closingValueFee -= 0.001; //ebay rounds down half cents 38.575 rounds to 38.57 and 38.576 rounds to 38.58
            closingValueFee = closingValueFee.toFixed(2);
          }
        }
      }
      else if((multiListCheckBox.checked==false && sold4PriceBox.value < 1000.01) || (multiListCheckBox.checked==true && buyItNowBox.value < 1000.01) )
      {
        if(multiListCheckBox.checked==true)
        {
          closingValueFee= 2.19+((eval(buyItNowBox.value)-25.01)*0.035);
          closingValueFee = closingValueFee.toFixed(2);
          if(powerSellerCheckBox.checked==true)
          {
            var temp = (eval(100-powerSellerBox.value)/100).toFixed(2);
            closingValueFee =temp*closingValueFee;
            closingValueFee = closingValueFee.toFixed(2);
          }
          closingValueFee *= eval(soldBox.value);
          closingValueFee = closingValueFee.toFixed(2);
        }
        else
        {
          closingValueFee= 2.19+((eval(sold4PriceBox.value)-25.01)*0.035);
          if(powerSellerCheckBox.checked==true)
          {
            var temp = (eval(100-powerSellerBox.value)/100).toFixed(2);
            closingValueFee =temp*closingValueFee;
            closingValueFee = closingValueFee.toFixed(2);
          }
        }
      }
      else
      {
        if(multiListCheckBox.checked==true)
        {
          closingValueFee= 2.19+34.12+((eval(buyItNowBox.value)-1000.01)*0.015);
          closingValueFee = closingValueFee.toFixed(2);
          if(powerSellerCheckBox.checked==true)
          {
            var temp = (eval(100-powerSellerBox.value)/100).toFixed(2);
            closingValueFee =temp*closingValueFee;
            closingValueFee = closingValueFee.toFixed(2);
          }
          closingValueFee *= eval(soldBox.value);
          closingValueFee = closingValueFee.toFixed(2);
        }
        else
        {
          closingValueFee= 2.19+34.12+((eval(sold4PriceBox.value)-1000.01)*0.015);
          if(powerSellerCheckBox.checked==true)
          {
            var temp = (eval(100-powerSellerBox.value)/100).toFixed(2);
            closingValueFee =temp*closingValueFee;
            closingValueFee = closingValueFee.toFixed(2);
          }
        }
      }

      if(secondCategoryCheckBox.checked==true)
      {
        listingFee *= 2;
        insertionFee *= 2;
      }
//end do no mess with this order

      if(multiListCheckBox.checked==true)
      {
        if(eval(soldBox.value) > 0)
        {
          profit = (eval(soldBox.value)*eval(buyItNowBox.value))-(eval(soldBox.value)*eval(cost2AcquireBox.value))+(eval(shippingBox.value)*eval(soldBox.value))-(eval(shippingCostBox.value)*eval(soldBox.value))-fee-listingFee-closingValueFee-payPalCharges-insertionFee-reserveFee-scheduledListingFee-ebayFeaturedlistingFee;
        }
        else
        {
          profit = fee-listingFee-closingValueFee-insertionFee-reserveFee-scheduledListingFee-ebayFeaturedlistingFee;
        } 
      }
      else
      {
        if(eval(sold4PriceBox.value) > 0)
        {
          profit = eval(sold4PriceBox.value)-eval(cost2AcquireBox.value)+eval(shippingBox.value)-eval(shippingCostBox.value)-fee-listingFee-closingValueFee-payPalCharges-insertionFee-reserveFee-scheduledListingFee-ebayFeaturedlistingFee;
        }
        else
        {
          profit = fee-listingFee-closingValueFee-insertionFee-reserveFee-scheduledListingFee-ebayFeaturedlistingFee;
        }
      }

      profitBox.value=(Math.round(profit*100)/100).toFixed(2);
    }
  }

  function reverseCalculate()
  {
    calculate(true);
    var payPalPercent = 0.0;
  
    if(payPalCheckBox.checked == true)
    {
      payPalPercent = (eval(payPalBox.value)/100).toFixed(3);
      payPalFlatFee = 0.30;
    }
    else
    {
      payPalFlatFee = 0.0;
    }

    if(reverseErrorCheckPassed() && eval(wantToMakeBox.value) >= 0)
    {
      if(powerSellerCheckBox.checked == false)
      {
        sellForBox.value=(eval(wantToMakeBox.value)+eval(cost2AcquireBox.value)-((1-payPalPercent)*eval(shippingBox.value))+eval(shippingCostBox.value)+fee+listingFee+insertionFee+reserveFee+scheduledListingFee+ebayFeaturedlistingFee+eval(payPalFlatFee))/(1.0-0.0875-eval(payPalPercent));
        sellForBox.value=Math.round(eval(sellForBox.value)*100)/100;
        sellForBox.value = eval(sellForBox.value).toFixed(2);

        if(eval(sellForBox.value) > 25.01)
        {
          var percentage = Math.round((1.0-0.035-payPalPercent)*1000)/1000;
          sellForBox.value=((eval(wantToMakeBox.value)+eval(cost2AcquireBox.value)-((1-payPalPercent)*eval(shippingBox.value))+eval(shippingCostBox.value)+fee+listingFee+insertionFee+reserveFee+scheduledListingFee+ebayFeaturedlistingFee+eval(payPalFlatFee)+2.19-0.875)/percentage);
          sellForBox.value=Math.round(eval(sellForBox.value)*100)/100;
          sellForBox.value = eval(sellForBox.value).toFixed(2);
        }

        if(eval(sellForBox.value) > 1000.01)
        {
          var percentage = Math.round((1.0-0.015-payPalPercent)*1000)/1000;
          sellForBox.value=(eval(wantToMakeBox.value)+eval(cost2AcquireBox.value)-((1-payPalPercent)*eval(shippingBox.value))+eval(shippingCostBox.value)+fee+listingFee+insertionFee+reserveFee+scheduledListingFee+ebayFeaturedlistingFee+eval(payPalFlatFee)+2.19+34.12-15)/percentage;
          sellForBox.value=Math.round(eval(sellForBox.value)*100)/100;
          sellForBox.value = eval(sellForBox.value).toFixed(2);
        }
      }
      else
      {
        var powerSellerPercent = (eval(100-powerSellerBox.value)/100).toFixed(2);
                  
        sellForBox.value=(eval(wantToMakeBox.value)+eval(cost2AcquireBox.value)-((1-payPalPercent)*eval(shippingBox.value))+eval(shippingCostBox.value)+fee+listingFee+insertionFee+reserveFee+scheduledListingFee+ebayFeaturedlistingFee+eval(payPalFlatFee))/(1.0-(0.0875*powerSellerPercent)-eval(payPalPercent));
        sellForBox.value=Math.round(eval(sellForBox.value)*100)/100;
        sellForBox.value = eval(sellForBox.value).toFixed(2);

        if(eval(sellForBox.value) > 25.01)
        {
          var percentage = 1.0-(0.035*powerSellerPercent)-payPalPercent;
          sellForBox.value=((eval(wantToMakeBox.value)+eval(cost2AcquireBox.value)-((1-payPalPercent)*eval(shippingBox.value))+eval(shippingCostBox.value)+fee+listingFee+insertionFee+reserveFee+scheduledListingFee+ebayFeaturedlistingFee+eval(payPalFlatFee)+(2.19*powerSellerPercent)-(0.875*powerSellerPercent))/percentage);
          sellForBox.value=Math.round(eval(sellForBox.value)*100)/100;
          sellForBox.value = eval(sellForBox.value).toFixed(2);
        }

        if(eval(sellForBox.value) > 1000.01)
        {
          var percentage = 1.0-(0.015*powerSellerPercent)-payPalPercent;
          sellForBox.value=(eval(wantToMakeBox.value)+eval(cost2AcquireBox.value)-((1-payPalPercent)*eval(shippingBox.value))+eval(shippingCostBox.value)+fee+listingFee+insertionFee+reserveFee+scheduledListingFee+ebayFeaturedlistingFee+eval(payPalFlatFee)+(21.31*powerSellerPercent))/percentage;
          sellForBox.value=Math.round(eval(sellForBox.value)*100)/100;
          sellForBox.value = eval(sellForBox.value).toFixed(2);
        }
      }

      if(multiListCheckBox.checked==false && eval(sold4PriceBox.value)==0)
      {
        increaseShippingBox.value = (eval(shippingBox.value)+(eval(wantToMakeBox.value))).toFixed(2);  
        increaseShippingBox.value = eval(increaseShippingBox.value).toFixed(2);
      }
      else
      {
        increaseShippingBox.value = (eval(wantToMakeBox.value)-eval(profitBox.value)).toFixed(2);
        increaseShippingBox.value = eval(increaseShippingBox.value).toFixed(2);
      }
    }
    else if(eval(wantToMakeBox.value) < 0)
    {
      increaseShippingBox.value = 0.0;
      sellForBox.value = 0.0;
    }
  }

  function reverseErrorCheckPassed()
  {
    var passed = true;

    if (isNaN(wantToMakeBox.value) || wantToMakeBox.value == "")
    {
      naNPopUp();
      passed = false;
    }
    else if(eval(openingPriceBox.value)<0.01 && openingPriceBox.disabled==false)
    {
      openPricePopUp(true);
      passed = false;
    }

    return passed;
  }

  function reverseReset()
  {
    sellForBox.value = 0.0;
    wantToMakeBox.value = 0.0;
    increaseShippingBox.value = 0.0;
  }

  function toggleList(e)
  {
    element = document.getElementById(e).style;
    element.display == 'none' ? element.display = 'inline' :
    element.display='none';
    _IG_AdjustIFrameHeight();
  }
  
  function clickChange(checkBox, box)
  {
    if(checkBox.name=="buyItNowCheckBox")
    {
      if(multiListCheckBox.checked==true)
      {
        buyItNowCheckBox.checked=true;
        buyItNowBox.disabled=false;
      }
    }
    
    if(checkBox.name=="reserveCheckBox")
    {
      if(multiListCheckBox.checked==true)
      {
        reserveCheckBox.checked=false;
        reserveBox.disabled=true;
      }
    }
  
    if(checkBox.checked==true)
    {
      box.disabled=false;
    }
    else
    {
      box.disabled=true;
    }
  }

  function multiListClickChange(checkBox, box, box2)
  {
    if(checkBox.checked==true)
    {
      box.disabled=false;
      box2.disabled=false;
      buyItNowCheckBox.checked=true;
      buyItNowBox.disabled=false;
      openingPriceBox.disabled = true;
      sold4PriceBox.disabled = true;
      reserveCheckBox.checked=false;
      reserveBox.disabled=true;
  
      if(eval(reserveBox.value) < 0)
      {
        openingPriceBox.value = 0.0;
      }

      if(eval(reserveBox.value) < 0)
      {
        reserveBox.value = 0.0;
      }
    }
    else
    {
      box.disabled=true;
      box2.disabled=true;
      buyItNowCheckBox.checked=false;
      buyItNowBox.disabled=true;
      openingPriceBox.disabled = false;
      sold4PriceBox.disabled = false;
    }
  }

  // Call init function to initialize and display tabs.
  _IG_RegisterOnloadHandler(init);

  _IG_AdjustIFrameHeight();

  
</script>


<style type="text/css">
  img.middle
  {
    vertical-align: text-bottom
  }

  table#productTable
  {
    background-color:#FFAEB9;
    border: solid #FF0000 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  .product
  {
    border: solid #FF0000 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  table#shippingTable
  {
    background-color:#87CEFA;
    border: solid #0000FF 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  .shipping
  {
    border: solid #0000FF 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  table#listingTable
  {
    background-color:#FFDEAD;
    border: solid #FF8C00 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  .listing
  {
    border: solid #FF8C00 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  table#percentageTable
  {
    background-color:#C1FFC1;
    border: solid #006400 2px;
    padding: 0px;
    text-align: center;
    font-size: 0.8em;
  }

  .percentage
  {
    border: solid #006400 2px;
    padding: 1px;
    text-align: center;
    font-size: 0.8em;
  }

  table#bookmarkTable
  {
    background-color:#FFFFFF;
    border: solid #FFFFFF 0px;
    border-width: 0px;
    border-spacing: 1px;
    padding: 0px;
    text-align: right;
    vertical-align: middle;
    font-size: 0.9em;
    color: #0000FF;
  }

  .calculate
  {
    background-color:#FFFFFF;
    border: solid #FFFFFF 0px;
    border-width: 0px;
    text-align: right;
    vertical-align: middle;
    font-size: 0.9em;
    color: #0000FF;
  }

  .reset
  {
    background-color:#FFFFFF;
    border: solid #FFFFFF 0px;
    text-align: left;
    vertical-align: middle;
    font-size: 0.9em;
    color: #0000FF;
  }

  .bookmark
  {
    background-color:#FFFFFF;
    border: solid #FFFFFF 0px;
    border-width: 0px;
    text-align: right;
    vertical-align: bottom;
    font-size: 0.8em;
    color: #0000FF;
  }

  table.center{width:92%; margin-left:3%; margin-top:1%; margin-right:3%;}
  table.bookmark{width:92%; margin-left:3%; margin-top:0%; margin-right:3%;}

</style>


<div id="ebayTab" align="center">

  <script language='JavaScript1.1'>

  var width = 0;  

  function search()
  {
    var website = 'http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335962786&toolid=10001&customid=search_bar&ext=' + ebaySearchBox.value + '&satitle=' + ebaySearchBox.value;
    document.write(website);
  }
  
  if( typeof( window.innerWidth ) == 'number' ) 
  {
    //Non-IE
    width = window.innerWidth;
  } 
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
  {
    //IE 6+ in 'standards compliant mode'
    width = document.documentElement.clientWidth;
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
  {
    //IE 4 compatible
    width = document.body.clientWidth;
  }

  if(width > 290)
  {
    document.write("<sc"+"ript language='JavaScript1.1' src='http://rover.ebay.com/ar/1/55968/1?campid=5335962786&toolid=55968&customid=guy_stuff&mpt=" + Math.floor(Math.random()*999999999999) + "&adtype=3&size=300x250&def=a3h&a3h=1&mpvc='></sc"+"ript>");
  }
  else
  {      
    document.write("<img border='0px' src='http://ebaycalc.googlecode.com/files/eBay_logo.jpg' />");
    document.write("<input type='text' name='ebaySearchBox' id='ebaySearchBox' size=15 />");
    document.write("<input type='button' value='Search' name='ebaySearchButton' id='ebaySearchButton' onClick='search()' />");
  }
</script>
</div>

<div id="profitTab" onload="top.window.focus()">
  <table id="productTable" class="center">
    <tr>
      <td width="16%" ROWSPAN=3>
        <b>Item</b>
      </td>
      <td width="84%" class="product" COLSPAN=2>
        Multi List.
        <input type="checkbox" name="multiListCheckBox" id="multiListCheckBox" title="Multiple Listing (Buy It Now - Fixed Price Listing)" onClick="multiListClickChange(multiListCheckBox,offeredBox,soldBox)" />
        Avail.
        <input type=number name="offeredBox" id="offeredBox" title="Number of items offered for sale" size=2 disabled="true" value=2 />
        &nbsp;Sold
        <input type=number name="soldBox" id="soldBox" title="Number of items sold" size=2 disabled="true" value=2 />
      </td>
    </tr>
    <tr>
      <td width="84%" class="product" COLSPAN=2 align=center>
        Type
        <select name="insertionType" id="insertionType" title="The category of the product">
        <option value=0> <font size="1">Other</font>
        </option>
        <option value=1> <font size="1">Book</font>
        </option>
        <option value=2> <font size="2">Music</font>
        </option>
        <option value=3> <font size="2">DVD &
        Movie</font> </option>
        <option value=4> <font size="2">Video Game</font>
        </option>
        </select>
      </td>
    </tr>
    <tr>
      <td width="42%" class="product">Cost
        <input type=number name="cost2AcquireBox" id="cost2AcquireBox" title="The amount you paid for the product" size=4 value=0.0 />
      </td>
      <td width="42%" class="product">Sold 4
        <input type=number name="sold4PriceBox" id="sold4PriceBox" title="The selling price for the product (do not include shipping)" size=4 value=0.0 />
      </td>
    </tr>
  </table>
  
  <table id="shippingTable" class="center">
    <tr>
      <td>
        <b>To Ship<b>
      </td>
      <td class="shipping">
        Cost
        <input type=number name="shippingCostBox" id="shippingCostBox" title="How much shipping cost you" size=4 value=0.0 />
      </td>
      <td class="shipping">
        Billed
        <input type=number name="shippingBox" id="shippingBox" title="How much you charged for shippping" size=4 value=0.0 />
      </td>
    </tr>
  </table>

  <table id="listingTable" class="center">
    <tr>
      <td class="listing" COLSPAN=2>
        Start. Bid
        <input type=number name="openingPriceBox" id="openingPriceBox" title="Bidding starts at this price" align="right" size=4 value=0.0 />
      </td>
      <td class="listing">
        <input type="checkbox" name="addImagesCheckBox" id="addImagesCheckBox" title="More than one picture placed in advertisement" align="right" onClick="clickChange(addImagesCheckBox,addImagesBox)" />
        Add. Images
        <input type=number name="addImagesBox" id="addImagesBox" title="Number of additonal pictures in advertisement" disabled="true" size=2 value=0 />
      </td>
    </tr>
    <tr>
      <td class="listing" COLSPAN=2>
        <input type="checkbox" name="reserveCheckBox" id="reserveCheckBox" title="Reserve price set on item" value=2.00 onClick="clickChange(reserveCheckBox,reserveBox)" />
        Reserve
        <input type=number name="reserveBox" id="reserveBox" title="Reserve price amount" disabled="true" size=4 value=0.0 />
      </td>
      <td class="listing">
        <input type="checkbox" name="buyItNowCheckBox" id="buyItNowCheckBox" title="Buy It Now price set on item" align="right" onClick="clickChange(buyItNowCheckBox,buyItNowBox)" />
        Buy It Now
        <input type=number name="buyItNowBox" id="buyItNowBox" title="Buy It Now amount" disabled="true" size=4 value=0.0 />
      </td>
    </tr>
</table>

<table id="percentageTable" class="center">
  <tr>
    <td class="percentage" COLSPAN=2>
      <input type="checkbox" name="powerSellerCheckBox" id="powerSellerCheckBox" title="You receive a Power Seller discount from eBay" value=2.00 onClick="clickChange(powerSellerCheckBox,powerSellerBox)" />
      Pow.Sell.%
      <input type=number name="powerSellerBox" id="powerSellerBox" title="The percentage of a discount you receive for being a Power Seller" disabled="true" size=3 value=15 />
    </td>
    <td class="percentage">
      <input type="checkbox" name="payPalCheckBox" id="payPalCheckBox" title="Buyer used PayPal to pay for item" checked="true" align="right" onClick="clickChange(payPalCheckBox,payPalBox)" />
      PayPal%
      <input type=number name="payPalBox" id="payPalBox" title="The percentage PayPal charges you for accepting payments" size=4 value=2.9 />
    </td>
  </tr>
</table>

<CENTER>
<font size="1">Options</font> <a
href="javascript:toggleList('idname')"><font size="1">[+/-]</font></a>
<ul id="idname" style="display:none">
<table border="1" align="center">
  <tr>
    <td align=left>
      <input type="checkbox" name="subtitleCheckBox" id="subtitleCheckBox" title="Add an additional line of text below your listing (cost 50&cent;)" value=0.50 />
      <font size="1">Subtitle</font>
    </td>
    <td align=left>
      <input type="checkbox" name="highlightCheckBox" id="highlightCheckBox" title="Add a translucent colored band to your listing (cost $5)" value=5.00 />
      <font size="1">Highlight</font>
    </td>
    <td align=left>
      <input type="checkbox" name="boldCheckBox" id="boldCheckBox" title="Listing text emphasized in bold (cost $1)" value=1.00 />
      <font size="1">Bold</font>
    </td>
  </tr>
  <tr>
    <td align=left>
      <input type="checkbox" name="borderCheckBox" id="borderCheckBox" title="Surround your listing with a colored band (cost $3)" value=3.00 />
      <font size="1">Border</font>
    </td>
    <td align=left>
      <input type="checkbox" name="valuePackCheckBox" id="valuePackCheckBox" title="Discounted combo-Gallery Plus picture, subtitle & Listing Designer (cost 65&cent;)" value=0.65 />
      <font size="1">Value Pack</font>
    </td>
    <td align=left>
      <input type="checkbox" name="proPackCheckBox" id="proPackCheckBox" title="Discounted combo-Bold, Border, Highlight, Gallery Feat. & Feat. +! (cost $19.95-34.95)" value=19.95 />
      <font size="1">Pro Pack</font>
    </td>
  </tr>
  <tr>
    <td align=left>
      <input type="checkbox" name="listingDesignerCheckBox" id="listingDesignerCheckBox" title="Add a theme and layout to your listing (cost 10&cent;)" value=0.10 />
      <font size="1">List. Design.</font>
    </td>
    <td align=left>
      <input type="checkbox" name="galleryPlusCheckBox" id="galleryPlusCheckBox" title="Larger picture of your item appears on mouse over in Gallery (cost 35&cent;)" value=0.35 />
      <font size="1">Gallery +</font>
    </td>
    <td align=left>
      <input type="checkbox" name="galleryFeatureCheckBox" id="galleryFeatureCheckBox" title="Listing appears in Featured section above the general Gallery (cost $19.95)" value=19.95 />
      <font size="1">Gallery Feat.</font>
    </td>
  </tr>
  <tr>
    <td align=left>
      <input type="checkbox" name="ebayFeaturedCheckBox" id="ebayFeaturedCheckBox" title="Lisitng in rotation in on eBay's Home page (cost $39.95 or $79.95(multi-list))" value=39.95 />
      <font size="1">eBAY Feat.</font>
    </td>
    <td align=left>
      <input type="checkbox" name="featuredPlusCheckBox" id="featuredPlusCheckBox" title="Listing in Featured Items & regualar section of its category (cost $9.95-24.95)" value=9.95 />
      <font size="1">Feat. +!</font>
    </td>
    <td align=left>
      <input type="checkbox" name="scheduledListingCheckBox" id="scheduledListingCheckBox" title="List item at a starting day and time you choose (cost 10&cent;)" value=0.10 />
      <font size="1">Sched. List.</font>
    </td>
  </tr>
  <tr>
    <td align=left>
      <input type="checkbox" name="tenDayDurationCheckBox" id="tenDayDurationCheckBox" title="List itme for ten days (cost 40&cent;)" value=0.40 />
      <font size="1">10-Day Dur.</font>
    </td>
    <td align=left>
      <input type="checkbox" name="giftServicesCheckBox" id="giftServicesCheckBox" title="Let buyers know you offer Gift Services (cost 25&cent;)" value=0.25 />
      <font size="1">Gift Serv.</font>
    </td>
    <td align=left>
      <input type="checkbox" name="secondCategoryCheckBox" id="secondCategoryCheckBox" title="List item in second category to increase visibility (cost x2)" />
      <font size="1">2<sup>nd</sup> Cat. List.</font>
    </td>
  </tr>
  <tr>
    <td align=center COLSPAN=3>
      <input type="checkbox" name="picturePackCheckBox" id="picturePackCheckBox" title="Add discounted bundle of pictures to your listing (cost 75&cent;-$1)" onClick="clickChange(picturePackCheckBox,picturePackComboBox)" />
      <font size="1">PicturePack</font>
      <select name="picturePackComboBox" id="picturePackComboBox" disabled="true">
      <option value=0> <font size="1">1-6</font> </option>
      <option value=1> <font size="1">7-12</font> </option>
    </td>
  </tr>
</table>
</ul>

<font size="3"><b>Profits</b></font>
<input type="text" size="8" length="8" value="" name="profitBox" id="profitBox" title="The total amount of profit you can expect to make selling this item" style="background:beige;color:black;">
<a onClick="feePopUp()"><font size="1"><u>Fee&nbsp;Details</u></font></a>
</br>
</CENTER>

<table id="bookmarkTable" class="bookmark">
  <tr>
    <td class="calculate" width="50%">
      <input type="button" value="Calculate" name="total" id="total" onClick="calculate()">
    </td>
    <td class="reset" width="25%">
      <input type="button" value="Reset" name="total" id="total" onClick="reset()">
    </td>
    <td class="bookmark" width="25%">
      <a href="javascript:bookmarksite('Ebay','http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=1&campid=5335962786&toolid=10001&customid=bookmark')"> Bookmark&nbsp;eBay!</a>
    </td>
  </tr>
</table>
</div>

<div id="moneyMakerTab" align=center>
<table id="productTable" class="center">
  <tr>
    <td>
      <b>Reverse Fee</b></br>
      (Info Imported From Calculator Tab)
    </td>
  </tr>
</table>
<table id="shippingTable" class="center">
  <tr>
    <td>
    I want to make
    <input type=number name="wantToMakeBox" id="wantToMakeBox" size=4 value=0.0 />
    dollars
    </br>
    (per item)
    </td>
  </tr>
</table>
</br>
<table id="listingTable" class="center">
  <tr>
    <td>
      Sell your item for
      <input type=number name="sellForBox" id="sellForBox" size=4 value=0.0 />
      dollars
    </td>
  </tr>
</table>
<b><align=center>OR</b>
<table id="percentageTable" class="center">
  <tr>
    <td>
      Make shipping
      <input type=number name="increaseShippingBox" id="increaseShippingBox" size=4 value=0.0 />
      dollars
    </td>
  </tr>
</table>
<tr>
  <td>
    <input type="button" value="Calculate" onClick="reverseCalculate()">
  </td>
  <td>
    <input type="button" value="Reset" onClick="reverseReset()">
  </td>
</tr>
</div>

]]>
</Content>
</Module>
