    d = document;    sdate_0 = "20100903";    edate_0 = "20101018";    sdate_1 = "20110923";    edate_1 = "20111108";    sdate_2 = "20120914";    edate_2 = "20121029";    sdate_3 = "20130829";    edate_3 = "20131013";    sdate_4 = "20140919";    edate_4 = "20141104";    sdate_5 = "20150911";    edate_5 = "20151026";    sdate_6 = "20060915";    edate_6 = "20061030";    sdate_7 = "20070907";    edate_7 = "20071022";    sdate_8 = "20080921";    edate_8 = "20081117";    sdate_9 = "20090911";    edate_9 = "20091026";    s_election = "20040910";    e_election = "20041103";    linkcolor = "#0000FF";    newpara = "<BR><BR>";        linkbase = "http://" + "mmerlinn." + "com/";    linkorder = "forms/ordering.htm";    linkship = "forms/shipping.htm";    var searchtag = new Array(1);    searchtag[0] = 'contact' + ' buyer';    searchtag[1] = 'Contact' + ' buyer';    searchtag[2] = 'Contact' + ' Buyer';    searchtag[3] = 'contact' + ' Buyer';    searchtag[4] = 'leave' + ' feedback';    searchtag[5] = 'Leave' + ' feedback';    searchtag[6] = 'Leave' + ' Feedback';    searchtag[7] = 'leave' + ' Feedback';    searchtag[8] = 'sell' + ' similar';    searchtag[9] = 'Sell' + ' similar';    searchtag[10] = 'Sell' + ' Similar';    searchtag[11] = 'sell' + ' Similar';    searchtag[12] = 're' + 'list';    searchtag[13] = 'Re' + 'list';    var klosed = new Array(1);    klosed[0] = "We will be closed from 18 Sep 2010 thru 3 Oct 2010.";    klosed[1] = "We will be closed from 8 Oct 2011 thru 23 Oct 2011.";    klosed[2] = "We will be closed from 29 Sep 2012 thru 14 Oct 2012.";    klosed[3] = "We will be closed from 14 Sep 2013 thru 29 Sep 2013.";    klosed[4] = "We will be closed from 4 Oct 2014 thru 19 Oct 2014.";    klosed[5] = "We will be closed from 26 Sep 2015 thru 11 Oct 2015.";    klosed[6] = "We will be closed from 30 Sep 2006 thru 15 Oct 2006.";    klosed[7] = "We will be closed from 22 Sep 2007 thru 7 Oct 2007.";    klosed[8] = "We will be closed from 4 Oct 2008 thru 2 Nov 2008.";    klosed[9] = "We will be closed from 26 Sep 2009 thru 11 Oct 2009.";    var defaultblurb = new Array(1);    defaultblurb[0] = 52;    defaultblurb[1] = "<FONT COLOR='black' SIZE='+1'><B>FIGHT IDENTITY THEFT!</B></FONT><BR><BR> <FONT COLOR='red'><B>URGE</B></FONT> your Congressional Senators and Representatives to <FONT COLOR='red'><B>SUPPORT</B></FONT> the <B><FONT COLOR='red'><I>Identity Theft Prevention Act</I></FONT> (&nbsp;H.R.&nbsp;220&nbsp;) introduced by Ron Paul (R-Texas)! -</B>";    defaultblurb[2] = "Unless the LORD the city </B>{state, nation, etc}<B> shields, the guards </B>{Homeland Security, CIA, etc}<B> maintain a USELESS watch! <I>(Psalm 127)</I>";    defaultblurb[3] = "Political Correctness is the <B>BADGE</B> of a <B>COWARD!</B> - <I>mmerlinn</I>";    defaultblurb[4] = "Censorship is now called 'Political Correctness!' - <I>mmerlinn</I>";    defaultblurb[5] = "We contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle. - <I>Winston Churchill</I>";    defaultblurb[6] = "No man's life, liberty, or property are safe while the legislature is in session. - <I>Mark Twain</I>";    defaultblurb[7] = "A liberal is someone who feels a great debt to his fellow man, which debt he proposes to pay off with YOUR money. - <I>G. Gordon Liddy</I>";    defaultblurb[8] = "Government's view of the economy could be summed up in a few short phrases:  If it moves, tax it.  If it keeps moving, regulate it.  If it stops moving, subsidize it. -  <I>Ronald Reagan (1986)</I>";    defaultblurb[9] = "If you think health care is expensive now, wait until you see what it costs when it's free. - <I>P. J. O'Rourke</I>";    defaultblurb[10] = "When buying and selling are controlled by legislation, the first things to be bought and sold are legislators. - <I>P. J. O'Rourke</I>";    defaultblurb[11] = "When I was paying 35 cents per gallon for gasoline, gold was selling at $35 per ounce. Today (22 May 2008) gold is $917 per ounce.  Why is gasoline so CHEAP at $3.79 per gallon when it should be $9.17 per gallon? - <I>mmerlinn</I>";    defaultblurb[12] = "It is nice to be important, but it is more important to be nice.";    defaultblurb[13] = "Competition doesn't create character. Competition exposes character.";    defaultblurb[14] = "Everything comes to he who hustles while he waits. - <I>T. Edison</I>";    defaultblurb[15] = "When a well-packaged pack of lies has been sold gradually to the masses over generations, the truth will seem utterly preposterous and it's speaker a raving maniac. - <I>Dresden James</I>";    defaultblurb[16] = "How many MORE U.S. soldiers would have died in World War II if the U.S. had been using the bastard Metric system instead of the American system?  If our bullets had been Metric (like today), the Germans/Japanese could have used THEIR guns to shoot OUR captured bullets back at us.  As it was, they could ONLY do this if they had ALSO captured OUR rifles to use them in.";    defaultblurb[17] = "Before the U.S. began using the bastard Metric system, it was NOT cost effective to export our jobs to offshore countries.  The duplicate tooling and setup costs involved in using two different systems in those countries effectively kept OUR jobs in AMERICA.";    defaultblurb[18] = "A customer who does not pay is NOT a customer - He is a <B>THIEF!!!</B>";    defaultblurb[19] = "If you keep doing what you are doing, you WILL keep getting what you are getting.  If you don't like what you are getting, you MUST change what you are doing! - <I>mmerlinn</I>";    defaultblurb[20] = "When governments fear people, there is <B>LIBERTY.</B> When people fear the government, there is <B>TYRANNY.</B> - <I>Thomas Jefferson</I>";    defaultblurb[21] = "But it shall come to pass, if you do not obey the voice of the Lord your God, ... He will bring back on you all the diseases of Egypt (West Nile Virus?, etc) ... until you are DESTROYED. - <I>(Deut. 28:15-61)</I>";    defaultblurb[22] = "They that can give up essential liberty to obtain a little TEMPORARY safety deserve NEITHER liberty NOR safety. - <I>Benjamin Franklin (1759)</I>";    defaultblurb[23] = "But if you do not obey me, ... I will also do this unto you: I will even appoint <B>TERROR</B> (9-11, Oklahoma City, etc) over you, ... - <I>(Lev. 26:14-16)</I>";    defaultblurb[24] = "But if you do not obey me, ... I will bring a sword against you ...; and you shall be delivered into the hand of the enemy. - <I>(Lev. 26:14-25)</I>";    defaultblurb[25] = "But if you do not obey me, ... I will lay your cities waste </B>{9-11, Oklahoma City, etc}<B> ... I will scatter you among the nations </B>{slavery, etc}<B> ... your land shall be desolate and your cities waste. - <I>(Lev. 26:14-33)</I>";    defaultblurb[26] = "A leader who keeps his ear to the ground allows his rear end to become a target. - <I>Angie Papadakis</I>";    defaultblurb[27] = "If animals could talk ... cows would udder nonsense. - <I>Mrs. Charles C. Mason</I>";    defaultblurb[28] = "If animals could talk ... sheep would make baaad jokes. - <I>Mrs. Charles C. Mason</I>";    defaultblurb[29] = "If animals could talk ... pigs would talk hogwash. - <I>Mrs. Charles C. Mason</I>";    defaultblurb[30] = "If animals could talk ... goats would butt in. - <I>Mrs. Charles C. Mason</I>";    defaultblurb[31] = "Pessimism is a waste of imagination!";    defaultblurb[32] = "A man goes where invited and STAYS where well-treated!";    defaultblurb[33] = "EVERYONE has a GREAT idea which requires MY money! - <I>mmerlinn</I>";    defaultblurb[34] = "A liberal is someone who has the PERCEPTION that he can get something for nothing - A conservative is someone who faces the REALITY that everything has a cost.";    defaultblurb[35] = "PRICE - QUALITY - SERVICE<BR>Pick any TWO - You CANNOT have all three!";    defaultblurb[36] = "Equal opportunity means everyone will have a fair chance at becoming incompetent. - <I>L. J. Peter</I>";    defaultblurb[37] = "There are three kinds of people:<BR><BR>Those who MAKE things happen, Those who WATCH things happen, and Those that WONDER what happened!";    defaultblurb[38] = "A government which robs Peter to pay Paul can always depend upon the support of Paul. - <I>George Bernard Shaw</I>";    defaultblurb[39] = "When I was paying $2.00 per gallon for gasoline, I was selling steel for $65 per ton.  Last Friday (16 May 2008) I sold my steel for $315 per ton.  Based on that ratio, gasoline should be $9.69 per gallon, but I only paid $3.65 per gallon on the same day I sold my steel.";    defaultblurb[40] = "ACTION: 1986: President Ronald Reagan cancels our contract with God.<BR><BR>RESULT: 1993: Terrorists attempt to topple World Trade Towers, but fail.";    defaultblurb[41] = "ACTION: 1986: President Ronald Reagan cancels our contract with God.<BR><BR>RESULT: 2001: Terrorists destroy both World Trade Towers.";    defaultblurb[42] = "The public is so terrified of being bombed that they will suppport anyone who keeps them out of war.  I always knew they had no desire to stand up to dictators, and I always knew that when there was  a sharp issue of peace or war, 95% of the electors would rally to the peace policy, HOWEVER HUMILIATING SUCH A POLICY MIGHT BE. - <I>Written to Prime Minister Winston Churchill by a British Lord in 1938.</I>";    defaultblurb[43] = "No matter how hard someone tries to Murphy Proof something, God always blesses us with a smarter idiot. - <I>ONEZ ST</I>";    defaultblurb[44] = "The USA Patriot Act is not a threat to terrorists nearly as much as it is a threat to America, and it is far from patriotic. - <I>Jon Dragt</I>";    defaultblurb[45] = "With hurricanes, tornados, fires out of control, mud slides, flooding, severe thunderstorms tearing up the country from one end to another, and with the threat of bird flu and terrorist attacks, are we sure this is a good time to take God out of the Pledge of Allegiance? - <I>Jay Leno</I>";    defaultblurb[46] = "If you need something done, you can (1) hire it done, (2) do it yourself, or (3) tell your kids not to do it!!! - <I>Heard on the radio.</I>";    defaultblurb[47] = "When I was paying 49 cents per gallon for gasoline, I was paying 49 cents per loaf for Oroweat Honey Wheat Berry bread. I paid $4.29 for a loaf of that bread today (22 May 2008).  Why isn't the cost of a gallon of gasoline at $4.29 instead of the CHEAP price of $3.79 that I paid yesterday? - <I>mmerlinn</I>";    defaultblurb[48] = "Careless and sloppy writers are usually also careless and sloppy at thinking. Answering questions for careless and sloppy thinkers is not rewarding. - <I>Eric Raymond</I>";    defaultblurb[49] = "Credit is a <FONT COLOR='red'><B>DISEASE</B></FONT> - You won't catch it here! - <I>Economy Auto Wrecking, Portland, Oregon</I>";    defaultblurb[50] = "ACTION: 1986: President Ronald Reagan cancels our contract with God.<BR><BR>RESULT: 14 December 2008: United States, Britain, & Israel are destroyed.";    defaultblurb[51] = "Everyone is gifted.  Some just open the package sooner. - <I>Chevrolet, #RCL 697, Oregon</I>";    keydates = "<FONT COLOR='black'>Key Dates to Watch as of 19 April 2005</FONT>";    var keydate = new Array(1);    keydate[0] = 5;    keydate[1] = "Tuesday, 30 September 2008 - Europe & Catholic Church.";    keydate[2] = "Friday, 24 October 2008 - Financial Markets - Projected.";    keydate[3] = "Monday, 27 October 2008 - Financial Markets - Alternate.";    keydate[4] = "Tuesday, 28 October 2008 - Financial Markets - Alternate.";    keydate[5] = "Sunday, 14 Decemeber 2008 - United States, Britain, & Israel.";function Writeblurbbox(zcolor, ztext){    d.writeln("<CENTER>");    d.writeln("<TABLE BORDER='3'  BGCOLOR='" + zcolor + "' CELLPADDING='6' WIDTH='95%'>");    d.writeln("<TR>");    d.writeln("<TD><FONT FACE='arial, geneva, verdana, helvetica'>");    d.writeln("<CENTER>");    d.writeln("<FONT SIZE='+0'><FONT COLOR=" + linkcolor + "><B>");    d.writeln(ztext);    d.writeln("</B></FONT></FONT>");    d.writeln("</CENTER>");    d.writeln("</TD>");    d.writeln("</TR></TABLE>");    d.writeln("</CENTER>");}function WrKeyDates(){    d.writeln("<BR>");    zkey = "";    for (var i = 1; i <= keydate[0]; i++){        zkey = zkey + keydate[i] + "<BR>";    }    Writeblurbbox('lightblue', keydates + newpara + zkey);}function Writedefaultblurb(){    defaultblurb[defaultblurb[0]] = "";    ztext = defaultblurb[Getrandommod(defaultblurb[0])];    if (ztext != ""){        d.writeln("<CENTER>");        d.writeln("<TABLE BORDER='3'  BGCOLOR='lightblue' CELLPADDING='6' WIDTH='95%'>");        d.writeln("<TR>");        d.writeln("<TD><FONT FACE='arial, geneva, verdana, helvetica'>");        d.writeln("<CENTER>");        d.writeln("<FONT SIZE='+0'><FONT COLOR=" + linkcolor + "><B>" + ztext + "</B></FONT></FONT>");        d.writeln("</CENTER>");        d.writeln("</TD>");        d.writeln("</TR></TABLE>");        d.writeln("</CENTER>");    }    nowdate = new Date();    nowyear = nowdate.getYear();    yearmod = nowyear % 10;    if (yearmod == 8){        WrKeyDates();    }}function Getrandommod(dv){    zz = new Date();    zz = Math.floor(zz.getTime()/1000);    zz = zz % dv + 1;    return zz;}function Begindate(begindate){    var ns = Nowdatestring();    diff = ns - begindate;    return diff}function Stopdate(enddate){    var ns = Nowdatestring();    diff = enddate - ns;    return diff}function Nowdatestring(){    var nowdate = new Date();    var ny = nowdate.getYear();    ny = (ny < 1900) ? ny + 1900 : ny;    ny = new String(ny);    var nm = new String('0' + (nowdate.getMonth() + 1));    var nd = new String('0' + (nowdate.getDate()));    nm = nm.substring(nm.length - 2);    nd = nd.substring(nd.length - 2);    var ns = ny + nm + nd;    return ns}function Writeheader(){    nowdate = new Date();    nowyear = nowdate.getYear();    yearmod = nowyear % 10;    if (Begindate(window['sdate_' + yearmod]) * Stopdate(window['edate_' + yearmod]) > 0){        Writeclosed(nowyear);    }    else{        Writedefaultblurb();    }    if (Begindate(s_election) * Stopdate(e_election) > 0){        Writeeblurb();    }}function Writeeblurb(){    var text1 = "Do we REALLY want a President that must get permission from our ENEMIES before we protect ourselves?";    d.writeln("<BLOCKQUOTE>");    d.writeln("<CENTER>");    d.writeln("<FONT SIZE='+0'><FONT COLOR=" + linkcolor + "><B>" + text1 + "</B></FONT></FONT><BR>");    d.writeln("</CENTER>");    d.writeln("</BLOCKQUOTE>");}function Writeclosed(year){    y = year % 10;    var text1 = " During this time we will NOT answer emails nor phone calls and we will NOT ship any items.";    var text2 = " If you need your item shipped before we close you must ensure that we get your guaranteed funds before we close for vacation.";    var text3 = " Messages and orders received while we are closed will be answered/shipped during the first week after we return.";    Writeblurbbox('yellow', klosed[y] + newpara + text1 + text2 + text3);    if (y == 8){        WrKeyDates();    }}function FormatNumber(val, dec){    val = val * Math.pow(10, dec);    val = Math.round(val);    val = val.toString();    val = '000' + val;    var len = val.length;    var lval = val.substring(0, len - dec);    lval = lval.valueOf();    lval = Math.floor(lval);    lval = (lval == 0) ? '0' : lval.toString();    var rval = val.substring(len - dec, len);    val = lval + '.' + rval;    return val;}function RightJust(val, len){    len = len - val.length;    for(i = 0; i < len; i++){        val = '&nbsp;' + val    }    return val}function Replicate(str, len){    var val = '';    for(i = 0; i < len; i++){        val = val + str;    }    return val}function LTRIM(str, charcode) {        //    strips specified code from left end of string        //    defaults to stripping all white space from left end    if (charcode.valueOf() - 0){        while (str.charCodeAt(0) == charcode) {            str = str.substring(1);        }    } else {        while (str.charCodeAt(0) < 33) {            str = str.substring(1);        }    }    return str;}function RTRIM(str, charcode) {        //    strips specified code from right end of string        //    defaults to stripping all white space from right end    if (charcode.valueOf() - 0){        while (str.charCodeAt(str.length - 1) == charcode) {            str = str.substring(0, str.length - 1);        }    } else {        while (str.charCodeAt(str.length - 1) < 33) {            str = str.substring(0, str.length - 1);        }    }    return str;}function Deletearrayinfo(myarray, searchinfo){        //    Find and delete all instances of myarray containing searchinfo    j = 0;    z = new Array(1);    z[0] = '';    for (var i = 0; i < myarray.length; i++) {        if (myarray[i].indexOf(searchinfo) + 1) {        } else {            z[j] = myarray[i];            j++;        }    }    return z;}function Findarrayinfo(myarray, searchinfo){        //    Find and save all instances of myarray containing searchinfo    j = 0;    z = new Array(1);    z[0] = '';    for (var i = 0; i < myarray.length; i++) {        if (myarray[i].indexOf(searchinfo) + 1) {            z[j] = myarray[i];            j++;        }    }    return z;}function Findtaginfo(tagname, searchinfo) {        //    Find all instances of tag name    x = document.getElementsByTagName(tagname);    y = new Array(x.length);        //    Get innerHTML of all togs found    for (var i = 0; i < x.length; i++) {        y[i] = x[i].innerHTML;        if (y[i].indexOf('/' + tagname) + 1) {            y[i] = '';        } else {            y[i] = LTRIM(y[i], '');            y[i] = RTRIM(y[i], '');        }    }    y = Findarrayinfo(y, searchinfo);        //    Discard all HTML tags found in saved innerHTML    for (var i = 0; i < y.length; i++) {        z = y[i].split("<");        for (var j = 0; j < z.length; j++) {            k = z[j].indexOf(">") + 1;            if (k) {                z[j] = z[j].substring(k);            }        }        y[i] = z.join("");        y[i] = LTRIM(y[i], '');        y[i] = RTRIM(y[i], '');    }    return y;}function SoldeBayflag(){        //    Flag first instance of searchtag found        //    Hunts for keywords unique to sold eBay pages        //    Tags defined above at beginning of header    flag = 0;    for (var i = 0; i < searchtag.length; i++) {        if (Findtaginfo('tr', searchtag[i]) != '') {            i = searchtag.length;            flag = 1;        }    }    return flag;}
