<!--  // hide script from old browsers

// revised 10/02/02 for XHTML compliance
// revised 04/07/03 for clean-up and more XHTML and CSS compliance

   thisPage = "admaker.htm";
   cartOK = false;

// globals
 var oM = "&lt;";
 var cM = "&gt;";
 var qt = "&quot;";
 var xBr = "<br />";
 var cr = "\r";
 var tBold = oM + "b" + cM;
 var tNoBold = oM + "/b" + cM;
 var tTableRow = oM + "tr" + cM;
 var tFont = oM + "font ";
 var tNoFont = oM + "/font" + cM;
 var tBreak = oM + "br" + cM;
 var tAnchor = oM + "a href=" + qt;
 var tEndAnchor = oM + "/a" + cM;
 var tEndCel = oM + "/td" + cM + oM + "/tr" + cM + xBr;
 var tCenter = oM + "center" + cM;
 var tEndCenter = oM + "/center" + cM;
 var iAucts = "";
 var iDesc  = "";
 var iEMail = "";
 var iImage = "";
 var iTitle = "";
 var tInit = "<html><head><title>Rainbo Rick's Ad-Maker III</title></head>\n" +
              "<body onUnload=\"opener.codeClose();\">\n";
 var addressIs = "My EMail Address is ";
 var tStart = "";
 var tEnd = "";
 var tableColor = "";
 var titleFace = "";
 var titleColor = "";
 var descColor = "";
 var descFace = "";
 var eBayMods = "&include=0&since=-1&sort=3&rows=0"
 var aListURL = "http://cgi6.ebay.com/ws/eBayISAPI.dll?ViewSellersOtherItems&include=0&sort=3&rows=25&since=-1&rd=1&userid="
 var aStart = tAnchor + "http://cgi.ebay.com/" +
   "aw-cgi/UserISAPI.dll?MfcISAPICommand=ViewListedItems&userid="

// http://cgi6.ebay.com/ws/eBayISAPI.dll?ViewSellersOtherItems&include=0&sort=3&rows=25&since=-1&rd=1&userid=

 var aEnd = eBayMods + qt + cM + xBr;
 var emailMsg = "Click here to EMail me about this item.";
 var saveOn1 = "Save on shipping by bidding on the ";
 var saveOn2 = "other items I have up for auction.";
 var thisAd = "This ad was created by Rainbo Rick's Ad-Maker&copy; III.";
 var rrURL = "http://www.rainbo.net/";
 var amURL  = rrURL + "admaker.htm";
 var s3 = "<form><input type=\"button\" value=\"Close This Window\" onClick=\"self.close();\">"  + 
    xBr + "</form></body></html>";
var adColor = "";
var xFColor = "";
var xdFColor = "";
var xBGColor = "";
var frCount = parent.frames.length;
var hasFrames = false;
var drawFrame = parent.frames[findFrame("admakbot")];
var preWindow = "";
var adText = "";
var descText = "";
var payString = "";
var havePay = false;
var theBGColor = "";
var hasPreview = false;  // show Preview Window closed
var hasCode = false;  // show HTML code Window closed
// browser = Netscape v3.01Gold (Macintosh; I; PPC)
var browser = navigator.appName + " v" + navigator.appVersion;
var browserMac = false;
  if (browser.indexOf("Macintosh", 1) > 1) { browserMac = true; }

var sizes = new Array;
 sizes[0] = "4px";
 sizes[1] = "8px";
 sizes[2] = "12px";
 sizes[3] = "16px";
 sizes[4] = "18px";
 sizes[5] = "24px";
 sizes[6] = "32px";
 sizes[7] = "48px";

var nFSizes = new Array;
 nFSizes[0] = "4";
 nFSizes[1] = "8";
 nFSizes[2] = "10";
 nFSizes[3] = "12";
 nFSizes[4] = "14";
 nFSizes[5] = "18";
 nFSizes[6] = "24";
 nFSizes[7] = "36";

function findForm(theForm) {
var formCount = document.forms.length;
for (i=0; i<formCount; i++) {
  if (document.forms[i].name == theForm) { return i; }
     } // endFor
  return null;
 } // end findForm


function findFrame(frName)  {  // this gets called almost onLoad
var frNumber = -1;
 for (i=0; i<frCount; i++)
 {  if (parent.frames[i].name == frName) { frNumber = i; }
 } // end for
// if (frNumber>=0) { hasFrames = true; }
return frNumber
} // end findFrame

function fixEMail(address) {
var  j = address.length; // length of EMail address
var q = address.indexOf("@", 0);
var str1 = address.substring(0,q);
var str2 = address.substring(q+1, j);
address = str1 + "%40" + str2;
return address
 } // end fixEMail

function doTitle(form) { // obsolete code
// echo to theAd box
   adText = adText +
   "<strong><font face=\"" + form.tFFace.options[form.tFFace.selectedIndex].value + "\" " +
   "SIZE=\"4\" color=\"" + form.tFColor.options[form.tFColor.selectedIndex].value + "\">\n" +
   form.itemTitle.value + "\n</strong></font><br /><br />\n";
} // end doTitle


function doNewTitle(form) {  // no <font>
 var titleText = "";
   titleFace = form.tFFace.options[form.tFFace.selectedIndex].value;
   titleColor = form.tFColor.options[form.tFColor.selectedIndex].value;
   xBGColor = form.tBGColor.options[form.tBGColor.selectedIndex].value; // title bgcolor
   titleText = titleText + "<tr><td align=\"center\" bgcolor=\"" + xBGColor + "\"";
     if(form.hasAucts.checked)  { titleText = titleText + " colspan=\"2\""; }
   titleText = titleText + ">\n";
   titleText = titleText + "<strong style=\"font-family: " + 
   form.tFFace.options[form.tFFace.selectedIndex].value + "\; " +
   "color: " + form.tFColor.options[form.tFColor.selectedIndex].value + "\; " +
   "font-size: 18px\; font-weight: bold\;\">\n";
   titleText = titleText +form.itemTitle.value + "\n</strong><br />\n</td></tr>\n";

  adText = adText + titleText;

   } // end doNewTitle

function doImage(form)  {
  var imageText = "";

if (form.hasPict.checked) {   // write IMG tag in theAd box
   imageText = imageText + "<img src=\"" + form.pictURL.value + "\" align=\"left\" />\n";
       }  // endIf form.hasPict.checked

  adText = adText + imageText;

   }  // end doImage

function doEMail(form) {  // no <font>
  var emailText = "";

for (i = 0; i < form.mailIcon.length; i++) {
  if (form.mailIcon[i].checked) { mailIconNum = i; } // endIf
    } // end for
 color = form.mailColor.options[form.mailColor.selectedIndex].value;
if ((color == "black") || ( color == "navy")) {
  textColor = "white"; } else { textColor = "black"; }
  emailString = form.email.value + "?subject=" + form.itemTitle.value;

// do EMail for theAd
   emailText = emailText + "<tr><td bgcolor=\"" + color + "\" align=\"center\">\n<br />" +
         "<span style=\"" + makeStyle("inherit", "inherit", textColor) +"\">";
   emailText = emailText + "My EMail Address is " + form.email.value + "<br />\n" +
   "<a href=\"mailto:" + emailString + "\">\n";
if (form.useMailIcon.checked) {
  emailText = emailText + "<img src=\"" + rrURL + "pics/admaker/" + form.mailIcon[mailIconNum].value +
    "\" align=\"middle\" border=\"0\" />\n"; } // endIf useMailIcon
   emailText = emailText + emailMsg + "</a>\n</span><br />\n" +  "</td>"
  if(!form.hasAucts.checked) { emailText = emailText +"</tr>\n"; }

  adText = adText + emailText;

} // end doEMail

function doAuctions(form) { // no <font>
  var auctsText = "";

 color = form.auctsColor.options[form.auctsColor.selectedIndex].value;
if ((color == "black") || (color == "navy")) {
  textColor = "white"; } else { textColor = "black"; }
// theAd

  if (form.hasAucts.checked) {
   auctsText = auctsText +
   "<td bgcolor=\"" + color + "\" align=\"center\">\n" + 
   "<span style=\"" + makeStyle("inherit","inherit", textColor) + "\">\n" +
   saveOn1 + saveOn2 + "<br />\n" +
   "<a href=\"" + aListURL + fixEMail(form.email.value) + eBayMods + "\" target=\"_blank\">\n" +
   "Click here to see them.</a></span><br />\n" +
   "</td></tr>\n";
         } // endif form.hasAucts.checked

  adText = adText + auctsText;

} // end doAuctions

function doDesc(form)  {
  var descText = "";

//  function makeStyle(fFace,fSize,fColor,fWeight,fStyle)
// theAd
   descText = "<span style=\"" + makeStyle(form.dFFace.options[form.dFFace.selectedIndex].value, "inherit",
          form.dFColor.options[form.dFColor.selectedIndex].value) + "\">\n" +
         
 form.itemDesc.value + "\n</span><br clear=\"all\" /><br />\n";

// ************************************** //

// check for details
  if(form.details.checked) {
    descText += "<center><table width=\"70%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border: solid 1px black;\">\n" +
                "<tr><td colspan=\"2\" align=\"center\" bgcolor=\"" + 
                form.tBGColor.options[form.tBGColor.selectedIndex].value + "\">" +
                "<strong style=\"font-family: " + titleFace + "; font-size: 18px; font-weight: bold; color: " + titleColor + ";\">Details</strong><br />\n</td></tr>\n";
//
      if(form.maker.value.length) {
    descText += "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">" +
                "<strong>Manufacturer:</strong><br /></span></td>\n" +
                "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">" +
                form.maker.value + "<br /></span>\n</td></tr>\n";
           }  // user entered a manufacturer's name
      if(form.year.value.length) {
    descText += "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">" +
                "<strong>Year of Manufacture:</strong><br /></span></td>\n" +
                "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">" +
                form.year.value + "<br /></span>\n</td></tr>\n";
           }  // user entered a year of manufacture

for (i = 0; i < form.cond.length; i++) {
  if (form.cond[i].checked) { condNum = i; } // endIf
    } // end for
    descText += "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">" +
                "<strong>Overall Condition:</strong><br /></span></td>\n" +
                "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">" + form.cond[condNum].value;
  if (form.condText.value.length != 0) { descText = descText + ": " + form.condText.value; }
    descText += "<br /></span></td></tr>\n</table></center>\n";
  } // end if(form.details)
//

// check for payment & shipping info
   if(form.payship.checked) {
    descText = descText + "<center><table width=\"70%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border: solid 1px black;\">\n";
    descText = descText + "<tr><td colspan=\"2\" align=\"center\" bgcolor=\"" + 
        form.tBGColor.options[form.tBGColor.selectedIndex].value + "\">";
    descText = descText + "<strong style=\"font-family: " + titleFace + "; font-size: 18px; font-weight: bold; color: " + titleColor + ";\">Payment &amp; Shipping Info.</strong><br />\n</td></tr>\n";
      if(form.terms.value.length) {
    descText = descText + "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + "<strong>Payment Terms:</strong><br /></span></td>\n";
    descText = descText + "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + "Payment is due " + form.terms.value + " days after auction close.<br /></span>\n</td></tr>\n";
                } // user entered a time limit
    descText = descText + "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + "<strong>Payment Method:</strong><br /></span></td>\n";
    makePayString(form);
    descText = descText + "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + "We accept " + payString;
    descText = descText + "<br /></span>\n</td></tr>\n";
// ship intl!
    descText = descText + "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + "<strong>We Ship:</strong><br /></span></td>\n";
    descText = descText + "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">";
  for (i = 0; i < form.shipIntl.length; i++) {
  if (form.shipIntl[i].checked) { intlIndex = i; } // endIf
    } // end for
       if(form.shipIntl[intlIndex].value == "No")
            { descText = descText + "To U.S. Addresses Only"; }
       if(form.shipIntl[intlIndex].value == "Yes")
                 { descText = descText + "Internationally"; }
    descText = descText + "<br /></span>\n</td></tr>\n";

 if(form.shipNotes.value.length) {
    descText = descText + "<tr><td bgcolor=\"gray\" align=\"right\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + "<strong>Shipping Notes:</strong><br /></span></td>\n";
    descText = descText + "<td bgcolor=\"lightgrey\" align=\"left\"><span style=\"font-family:" + titleFace + ";\">";
    descText = descText + form.shipNotes.value + "<br /></span>\n</td></tr>\n";
      } // user entered shipping notes

    descText = descText + "</table></center>\n";  // clean up details table
    } // endif  pay/ship details
//


    descText = descText + "</td></tr>\n";  // end of desc cell

//
  adText = adText + descText;
//
} // end doDesc

function doRainbo(form, theWindow) {
  var rainboText = "";

// echo start to theAd box
   rainboText = rainboText + "<tr>\n<td bgcolor=\"lightyellow\" ";
if(form.hasAucts.checked) { rainboText = rainboText + " colspan=\"2\""; }
   rainboText = rainboText + ">\n" + "<center><span style=\"font-family:Times,serif; font-size:12px; color:black;\">" + thisAd + "<br>\n" +
    "<a href=\"" + amURL + "\" target=\"_blank\">\n<b>It's FREE! -  Try it now!</b></a><br /></span></center>\n" +
    "</td></tr>\n";

//
  adText = adText + rainboText;
//
}  // end doRainbo

function codeClose() { 
  hasCode = false;  // show child window closed
 } // end codeClose

function fixCode(form,theWindow) { // convert theAd to HTML for popup
   text = form.theAd.value;
   l = text.length;
   newText = "";
      for (i=0; i<=l; i++) {
    c = text.charAt(i);
//  c = text.substring(i,i+1);
    if ( c < "A") {
       used = false;
      if (c == "<") { 
           newText = newText + oM;
           used = true; }
      if (c == ">") { 
           newText = newText + cM;
           used = true; }
      if (c == "\"") {
           newText = newText + qt;
           used = true; }
      if (c == "\n") { 
           newText = newText + xBr;
           used = true; }
      if (!used) { newText = newText + c; }
            } else { newText = newText + c; }
   } // end for
 theWindow.document.write(newText);
 } // end fixCode

function makeHTML(form) { // make the HTML from form contents
// Set up Page Colors & Table
  adText = "";  // init adText variable
  theBGColor = form.itemColor.options[form.itemColor.selectedIndex].value;
  tableColor = "bgcolor="+ qt+ theBGColor + qt;
  tStart = oM+"table style=\"border: solid 1px black;\"" + cM+xBr+tTableRow+xBr + oM + "TD " + tableColor;
  tEnd = xBr + oM + "/table" + cM + xBr;
// initialize contents of theAd box
  adText = "<table style=\"border: solid 1px black;\">\n";
  doNewTitle(form);
  adText = adText  + "<tr><td bgcolor=\"" + theBGColor +  "\"";
    if(form.hasAucts.checked) {  adText = adText + " colspan=\"2\""; }
  adText = adText + ">\n";
  doImage(form);
//  doTitle(form);
  doDesc(form);
  doEMail(form);
  doAuctions(form);
  doRainbo(form);
  adText = adText + "</table>\n";
  } // end makeHTML

function MakeAd(form) {  // make the final ad with HTML

  form.theAd.value = adText;

 if (checkForm(form)) {  // first make sure form is filled in by user
  makeHTML(form);  // make the HTML
  if (form.popCode.checked) {  // Create the popup Window
      if (hasCode) { popup.window.close(); }
  popup = window.open("","","height=400,width=620,scrollbars=1,menubar=1");
  hasCode = true;  // show child window open
  popup.focus();
  popup.document.write(tInit); // write BODY tag, etc.
  fixCode(form, popup);
  popup.document.write(s3);
  popup.document.close();
   } // endif form.popCode.checked

//
  fillSubmit(form);  // auto-fill eBay submit form
//
  } // endif checkForm
//

}  // end MakeAd


function checkForm(form)  {
var doIt = true;

// check Title
    if (form.itemTitle.value.length<1) { 
      alert("You didn't enter a Title for your item.");
      doIt = false;
    } // if form.itemTitle.value.length

// check description
    if (form.itemDesc.value.length<1) {
      alert("You didn't enter a Description for your item.");
      doIt = false;
    }  // if form.itemDesc.value.length

// check EMail address
    if ((form.email.value.length<5) || (form.email.value.indexOf("@",0) < 1)) {
       alert("You didn't enter your EMail Address correctly");
       doIt = false;
      }  // if EMail

// check Image file URL
    if (form.hasPict.checked) { //1
      if (form.pictURL.value.length < 10) {
         alert("You didn't enter a URL for your item's picture file");
         doIt = false;
          } // if pictURL.length < 10 
      if (form.useLocal.checked) {
          if (form.localFile.value.length < 16) {
           alert("You didn't enter a name for the picture file on your computer");
           doIt = false;
              } // end if localFile.value.length
         } // if uselocal.checked
     } // if hasPict

// check the colors
adColor = form.itemColor.options[form.itemColor.selectedIndex].value;
xFColor = form.tFColor.options[form.tFColor.selectedIndex].value;
xBGColor = form.tBGColor.options[form.tBGColor.selectedIndex].value;
xdFColor = form.dFColor.options[form.dFColor.selectedIndex].value;
  if (xBGColor == xFColor) {
    alert("The Background Color and the Item Title Color\n" +
   "are the same, which will make the Title text invisible.\n\n" +
   "You need to change one of them.");
    doIt = false;
      }
  if (adColor == xdFColor) {
    alert("The Background Color and the\n" +
    "Item Description Color are the same,\n" +
    "which will make the Description text invisible.\n\n" +
   "You need to change one of them.");
    doIt = false;
  }
 return doIt;
}  // end checkForm

function preClose() {
  hasPreview = false;  // show preview window closed
  }  // end preClose

function preDraw(stuff) {
 if (hasFrames) {  drawFrame.document.writeln(stuff); }
  preWindow.document.writeln(stuff);
} // end preDraw

function reloadIt(theWindow) {
  theWindow.location = theWindow.location;
  } // end reloadIt

function doPreview(form)  {

  if (checkForm(form)) {  // first make sure form is filled in by user

// Create the popup Window
   if (hasPreview) { preWindow.window.close(); }
  preWindow = window.open("","","height=460,width=620,scrollbars=1,menubar=0");
  preWindow.focus();
  preWindow.document.open();
  hasPreview = true;  // show preview window open

// possible fix for reload problem
// if (preWindow.document.layers) { // if we have a new Netscape browser
//    preWindow.onResize = reloadIt(preWindow);
//  } // endif document.layers

// Set up Page Colors & Table
  tableColor = "bgcolor='"+ form.itemColor.options[form.itemColor.selectedIndex].value+"'";
// additions for frame drawing
//  if (hasFrames) { drawFrame.document.clear(); }
  preDraw("<html><head><title>Rainbo Rick's Ad-Maker Preview</title></head>" + 
     "<body onUnload=\"opener.preClose();\"><blockquote>")
  makeHTML(form);
// clean up and quit;
  preDraw(adText + "</blockquote>");
  preWindow.document.write(s3);
  preWindow.document.close();
 
//
  } // endif checkForm
//

}  // end doPreview

function makePayString(form) {
  payString = "";
  havePay = false;
    if(form.pMoneyOrder.checked) { 
         payString = "Money Orders";
         havePay = true; }
    if(form.pChecks.checked) {
         if(havePay) { payString = payString + ", "; }
         payString = payString + "Personal Checks";
         havePay = true; }
    if(form.pVisaMC.checked) {
         if(havePay) { payString = payString + ", "; }
         payString = payString + "Visa/MasterCard";
         havePay = true; }
    if(form.pAmex.checked) {
         if(havePay) { payString = payString + ", "; }
         payString = payString + "American Express";
         havePay = true; }
    if(form.pDiscover.checked) {
         if(havePay) { payString = payString + ", "; }
         payString = payString + "Discover Card";
         havePay = true; }
    if(form.pOther.checked) {
         if(havePay) { payString = payString + ", "; }
         payString = payString + "and Other methods";
         havePay = true; }
     payString = payString + ".";
   } // end makePayString

function setOption(theOption,choice) {
max = theOption.length;
for (i = 0; i < max; i++) {
   if (theOption.options[i].value == choice) { theOption.options.selectedIndex = i; }
    }  // end for i
} // end setOption

function doSelectColor(theName) {
   document.writeln("<select name=\"" + theName + "\" size=\"1\">");
   colorList();
   document.writeln("</select>");
 } // end doColorList

function colorList() {
document.writeln("<option value=\"aqua\">Aqua</option>");
document.writeln("<option value=\"black\">Black</option>");
document.writeln("<option value=\"blue\">Blue</option>");
document.writeln("<option value=\"fuschi\">Fuschi</option>");
document.writeln("<option value=\"gray\">Gray</option>");
document.writeln("<option value=\"green\">Green</option>");
document.writeln("<option value=\"lime\">Lime</option>");
document.writeln("<option value=\"maroon\">Maroon</option>");
document.writeln("<option value=\"navy\">Navy</option>");
document.writeln("<option value=\"olive\">Olive</option>");
document.writeln("<option value=\"pink\">Pink</option>");
document.writeln("<option value=\"purple\">Purple</option>");
document.writeln("<option value=\"red\">Red</option>");
document.writeln("<option value=\"silver\">Silver</option>");
document.writeln("<option value=\"teal\">Teal</option>");
document.writeln("<option value=\"white\">White</option>");
document.writeln("<option value=\"yellow\">Yellow</option>");
document.writeln("<option value=\"#99CCCC\">eBay&reg; Bluegreen</option>");
} // end colorList

// insert sample data in form
function preset(form) {
  form.itemTitle.value = "Puppy Love Gobel Miniature";
  form.itemDesc.value = "<strong>This elegant miniature sculpture was originally " +
   "sold at the 1996 Official Disneyana Convention.  It shows " +
   "Mickey and Minnie holding hands in the moonlight as " +
   "the ever-faithful Pluto looks on.  This is a sold-out limited " +
   "edition and is new in the box.</strong>";
setOption(this.document.forms[findForm("admaker")].tFColor,"white"); // Title Font Color;
setOption(this.document.forms[findForm("admaker")].tBGColor,"blue"); // Title Font Background Color;
setOption(this.document.forms[findForm("admaker")].itemColor,"yellow"); // desc cell BGCOLOR
setOption(this.document.forms[findForm("admaker")].dFColor, "red"); // Desc Font Color
form.details.checked = true;
form.maker.value = "Gobel";
form.year.value = "1996";
form.condText.value = "Opened for display occasionally,\nbut still excellent.";
form.payship.checked = true;
form.terms.value = "7";
form.shipNotes.value = "Shipping by Insured US Mail";
form.email.value = "rick@rainbo.net";
form.useMailIcon.checked = true;
form.mailIcon[5].checked = true;
setOption(this.document.forms[findForm("admaker")].mailColor, "aqua"); // EMail Link BG Color
form.hasPict.checked = true;
form.pictURL.value = "http://www.rainbo.net/pics/figs/03-0327b.gif";
form.useLocal.checked = false;
form.localFile.value = "c:/";
form.hasAucts.checked = true;
setOption(this.document.forms[findForm("admaker")].auctsColor,"pink"); // aucts BG color
form.popCode.checked = true;
form.prevBtn.click();
} // end preset

function clearForm(form) {
  form.itemTitle.value = "";  // reset Item Title
  setOption(this.document.forms[findForm("admaker")].tFColor,"black"); // Title Font Color;
  setOption(this.document.forms[findForm("admaker")].tBGColor,"white");
  setOption(this.document.forms[findForm("admaker")].itemColor,"white"); // BGCOLOR
  form.pictURL.value = "http://";
  form.hasPict.checked = false;
  form.useLocal.checked = false;
  form.localFile.value = "c:/";
  form.itemDesc.value = "";
  setOption(this.document.forms[findForm("admaker")].dFFace, "Times");
  setOption(this.document.forms[findForm("admaker")].dFColor, "black");
  form.email.value = "";
  form.useMailIcon.checked = false;
  form.mailIcon[0].checked = true;
  form.hasAucts.checked = false;
  form.theAd.value = "";
     } // end clearForm

// copies Ad-Maker info into eBay form below
function fillSubmit(aform) {
  subVerify = true; // init submit verify flag
  amForm = this.document.forms[findForm("admaker")];
  subForm = this.document.forms[findForm("submitItem")];
    if (amForm.theAd.value.length<1) { 
   subVerify = false;
   alert("You haven't generated the\nHTML for your ad yet.\n\n" +
     "You need to go back to Step 8\nand press the \"I Agree\" Button");
    } 
if ((subVerify) && ((amForm.email.value.length == 0) || (amForm.itemTitle.length == 0))) {
      subVerify = false;
      alert("You haven't completed the Ad-Maker Form.\n\n" +
           "You need to go back to Step 8\nand press the \"I Agree\" Button");
        }
if (subVerify) {
subForm.userid.value = amForm.email.value;
subForm.title.value = amForm.itemTitle.value; // fill in title
subForm.desc.value = amForm.theAd.value; // fill in theAd

// from details
 subForm.moneyOrderAccepted.checked = amForm.pMoneyOrder.checked;
 subForm.personalChecksAccepted.checked = amForm.pChecks.checked;
 subForm.visaMasterCardAccepted.checked = amForm.pVisaMC.checked;
 subForm.paymentCOD.checked = amForm.pCOD.checked;
 subForm.amExAccepted.checked = amForm.pAmex.checked;
 subForm.discoverAccepted.checked = amForm.pDiscover.checked;
 subForm.onlineEscrow.checked = amForm.pEscrow.checked;
 subForm.otherAccepted.checked = amForm.pOther.checked;

  for (i = 0; i < amForm.shipIntl.length; i++) {
  if (amForm.shipIntl[i].checked) { intlIndex = i; } // endIf
    } // end for
  
       if(amForm.shipIntl[intlIndex].value == "No") { 
     for (j = 0; i < subForm.shippingInternationally.length; i++) {
          if(subForm.shippingInternationally[j].value = "") {
               subForm.shippingInternationally[j].checked = true; } // endIf (subForm)
                     }  // end for j
                  } // endIf form.shipIntl
       if(amForm.shipIntl[intlIndex].value == "Yes") { 
     for (j = 0; i < subForm.shippingInternationally.length; i++) {
          if(subForm.shippingInternationally[j].value = "on") {
               subForm.shippingInternationally[j].checked = true; } // endIf (subForm)
                     }  // end for j
                  } // endIf form.shipIntl

   } // endif subVerify
 } // end fillSubmit()



function useRick() {
subForm = this.document.forms[findForm("submitItem")];
subForm.picurl.value="http://www.rainbo.net/pics/admaker/imadeit.gif";
 } // end useRick

function bookmarks() {
    document.writeln("<div style=\"font-family: arial,helvetica,sans-serif; font-size: 14px;\">\n");
    if (navigator.appName == "Netscape") {
  document.writeln("<br />\n<center><p><strong>Bookmark This Page Now!  Press CTRL-D</strong></p></center>");
                     }
    if (navigator.appName.substring(0, 9) == "Microsoft") {
  document.writeln("<br />\n<center><p><strong>Be sure to add this page to your Favorites list.<br />" +
                     "Choose \"Add To Favorites\" in the Favorites Menu.</strong></p></center>");
                     }
  document.writeln("<p><strong>All you need to use Ad-Maker&copy; and start " +
    "making your eBay&reg; ads is a connection to the Internet and the software you're " +
    "using right now to view this webpage.</strong></p>\n</div>\n");
 }

function makeStyle(fFace,fSize,fColor,fWeight,fStyle) {
// { font-size: 12px; font-family: times new roman,times; }
// <option value="1">8 Point</option>
// <option value="2">10 Point</option>
// <option value="3" selected="selected">12 Point</option>
// <option value="4">14 Point</option>
// <option value="5">18 Point</option>
// <option value="6">24 Point</option>
// <option value="7">36 Point</option>

 styleString = (fFace) ? "font-family: " + fFace + "; " : "";

  if (fSize) {
 styleString += (fSize == "inherit") ? "font-size: inherit; " : "font-size: " + nFSizes[fSize] + "pt; ";
     }

 styleString += (fColor) ? " color: " + fColor + "; " : "";

 styleString += (fWeight) ? styleString +  "font-weight: " + fWeight + "; " : "";

 styleString += (fStyle) ? styleString +  "font-style: " + fStyle + "; " : "";

     return styleString;
 } // end makeStyle

  // done -->

