
	var d = document;

	var sdate_0 = "20100903";
	var edate_0 = "20101018";

	var sdate_1 = "20110923";
	var edate_1 = "20111108";

	var sdate_2 = "20120914";
	var edate_2 = "20121029";

	var sdate_3 = "20130829";
	var edate_3 = "20131013";

	var sdate_4 = "20140919";
	var edate_4 = "20141104";

	var sdate_5 = "20150911";
	var edate_5 = "20151026";

	var sdate_6 = "20060915";
	var edate_6 = "20061030";

	var sdate_7 = "20070907";
	var edate_7 = "20071022";

	var sdate_8 = "20080921";
	var edate_8 = "20081117";

	var sdate_9 = "20090911";
	var edate_9 = "20091026";

	var s_election = "20040910";
	var e_election = "20041103";

	var linkcolor = "#0000FF";

	var newpara = "<BR><BR>";
	
	var linkbase = "http://" + "mmerlinn." + "com/";
	var linkorder = "forms/ordering.htm";
	var 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] = 107;
	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] = "A government which robs Peter to pay Paul can always depend upon the support of Paul. - <I>George Bernard Shaw</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] = "No man's life, liberty, or property are safe while the legislature is in session. - <I>Mark Twain</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> {Oklahoma City, 9-11, 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 {conquered, etc}. - <I>(Lev. 26:14-25)</I>";
	defaultblurb[25] = "But if you do not obey me, ... I will lay your cities WASTE {Oklahoma City, 9-11, New Orleans, etc} ... I will SCATTER you among the nations {slavery, etc} ... your land shall be desolate and your cities WASTE. - <I>(Lev. 26:14-33)</I>";
	defaultblurb[26] = "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[27] = "EVERYONE has a GREAT idea which requires MY money! - <I>mmerlinn</I>";
	defaultblurb[28] = "A leader who keeps his ear to the ground allows his rear end to become a target. - <I>Angie Papadakis</I>";
	defaultblurb[29] = "If animals could talk ... cows would udder nonsense. - <I>Mrs. Charles C. Mason</I>";
	defaultblurb[30] = "If animals could talk ... sheep would make baaad jokes. - <I>Mrs. Charles C. Mason</I>";
	defaultblurb[31] = "If animals could talk ... pigs would talk hogwash. - <I>Mrs. Charles C. Mason</I>";
	defaultblurb[32] = "If animals could talk ... goats would butt in. - <I>Mrs. Charles C. Mason</I>";
	defaultblurb[33] = "Pessimism is a waste of imagination!";
	defaultblurb[34] = "A man goes where invited and STAYS where well-treated!";
	defaultblurb[35] = "PRICE - QUALITY - SERVICE<BR>Pick any TWO - You CANNOT have all three!";
	defaultblurb[36] = "Everyone is gifted.  Some just open the package sooner. - <I>Chevrolet, #RCL 697, Oregon</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] = "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[39] = "ACTION: 1986: President Ronald Reagan cancels our contract with God.<BR><BR>RESULT: 1993: Terrorists attempt to topple World Trade Towers, but fail.";
	defaultblurb[40] = "ACTION: 1986: President Ronald Reagan cancels our contract with God.<BR><BR>RESULT: 2001: Terrorists destroy both World Trade Towers.";
	defaultblurb[41] = "The public is so terrified of being bombed that they will support 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[42] = "No matter how hard someone tries to Murphy Proof something, God always blesses us with a smarter idiot. - <I>ONEZ ST</I>";
	defaultblurb[43] = "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[44] = "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[45] = "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[46] = "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[47] = "The best minds are not in government.  If they were, business would hire them away. - <I>Ronald Reagan</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] = "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[51] = "To compel a man to subsidize with his taxes the propagation of ideas which he disbelieves and abhors is sinful and tyrannical. - <I>Thomas Jefferson</I>";
	defaultblurb[52] = "I have wondered at times about what the Ten Commandments would have looked like if Moses had run them through the U. S. Congress. - <I>Ronald Reagan</I>";
	defaultblurb[53] = "A government big enough to give you anything you want is a government strong enough to take everything you have. - <I>Thomas Jefferson</I>";
	defaultblurb[54] = "My best friend is a person who will give me a book I have not read. - <I>Abraham Lincoln</I>";
	defaultblurb[55] = "Deficit spending is simply a scheme for the 'hidden' confiscation of wealth. Gold stands in the way of this insidious process.  It {gold} stands as a protector of property rights. - <I>Gold and Economic Freedom by Alan Greenspan (1966)</I>";
	defaultblurb[56] = "The <font color='red'>LAST</font> duty of a central banker is to tell the public the truth. - <I>Alan Blinder, Vice Chairman of the Federal Reserve (1994)</I>";
	defaultblurb[57] = "Our Constitution was made <b><font color='red'>only</color></b> for a <b><font color='red'>MORAL</color></b> and <b><font color='red'>RELIGIOUS</color></b> people.  It is <b><font color='red'>wholly inadequate</color></b> to the governance of any other {people}. - <I>John Adams (October 11, 1798)</I>";
	defaultblurb[58] = "To the intent that the that the living may know that the most High ruleth in the kingdom of men, and giveth it {the government} to whomsoever He will, and setteth up over it {the government} the <b><font color='red' size='+1'>BASEST</font></b> of men. - <I>Daniel 4:17</I>";
	defaultblurb[59] = "A bank is a place where they lend you an umbrella in fair weather and ask for it back when it rains. - <I>Robert Frost</I>";
	defaultblurb[60] = "Taxation without representation is tyranny. - <I>James Otis (1761)</I>";
	defaultblurb[61] = "The rich ruleth over the poor and the borrower {U.S.A.} is <B><FONT COLOR='red'>servant</COLOR></B> to the lender {China, Japan, Arabia, Germany}. - <I>Proverbs 22:7</I>";
	defaultblurb[62] = "A lie told often enough becomes truth. - <I>Vladimir Lenin</I>";
	defaultblurb[63] = "If you want to really know what my policies are, <B><FONT COLOR='red'>look to the people around me.</FONT></B> - <I>Obama (2008 before the election)</I>";
	defaultblurb[64] = "Look at how I make decisions. <B><FONT COLOR='red'>Look who I surround myself with.</FONT></B> - <I>Obama (2008 before the election)</I>";
	defaultblurb[65] = "If they bring a knife to the fight, we will bring a gun. That's the Chicago way. - <I>Obama (2008 in Philadelphia)</I>";
	defaultblurb[66] = "DEMOCRACY is when a lamb and two wolves vote on what they are having for dinner. LIBERTY is a well-armed lamb. - <I>Benjamin Franklin</I>";
	defaultblurb[67] = "There is no equality except equal opportunity. - <I>Bladepaul</I>";
	defaultblurb[68] = "Do you know when a politician is lying? <B><FONT COLOR='red'>Whenever their lips are moving.</FONT></B> - <I>Ronald Reagan</I>";
	defaultblurb[69] = "He who goes borrowing, goes sorrowing. - <I>Benjamin Franklin</I>";
	defaultblurb[70] = "Free internet: Everyone gets unequal amounts of everything.<BR><BR>Socialist internet: Everyone gets equal amounts of nothing.";
	defaultblurb[71] = "When government grows, corruption flows. - <I>Michelle Malkin</I>";
	defaultblurb[72] = "Show me your friends and I will show you your future. - <I>Glenn Beck's mother</I>";
	defaultblurb[73] = "The next German Chancellor will be called Karl-Theodor zu Guttenberg. - <I>Fleishmann Hillard (August 21, 2009)</I>";
	defaultblurb[74] = "Is the current German Defense Minister, Baron Karl-Theodor zu Guttenberg who carries the title 'Baron of the Holy Roman Empire', the new 'Hitler' of our time? - <I>(November 7, 2009)</I>";
	defaultblurb[75] = "The law of history dictates that those who do not learn from history are doomed to repeat history.";
	defaultblurb[76] = "Ignoring history destroys nations.<BR><BR>Obama are you listening?<BR><BR>Or will you repeat history by destroying the United States?";
	defaultblurb[77] = "Disease comes ONLY to those who have been preparing for it. - <I>Elbert Hubbard</I>";
	defaultblurb[78] = "The sword without {Iraq, Afghanistan, etc.}, and terror within {9/11, Fort Hood, etc}, SHALL destroy both the young man and the virgin, and suckling also with the man of gray hair. - <I>Deuteronomy 32:25</I>";
	defaultblurb[79] = "If you don't pay your home mortgage, the bankers will REPOSSESS your home.<BR><BR>If our country {The United States} does not pay its debt, the bankers {Germany, Arabia, China, Japan} will REPOSSESS our country and ENSLAVE us.";
	defaultblurb[80] = "Wise men talk because they have something to say. - Fools talk because they have to say something. - <I>Plato</I>";
	defaultblurb[81] = "In the absence of the gold standard, there is no way to protect savings from confiscation by inflation.  There is no safe store of value. - <I>Alan Greenspan</I>";
	defaultblurb[82] = "Happy wife, Happy life. - <I>Chaloopy</I>";
	defaultblurb[83] = "If you don't like logging, try using plastic toilet paper. - <I>Heard on the radio.</I>";
	defaultblurb[84] = "If I need to show identification to prove my innocence when boarding an airplane, what is wrong with Arizona wanting people to show identification to prove legal presence in Arizona? - <I>mmerlinn</I>";
	defaultblurb[85] = "Poor people do not hire employees.<BR><BR>If you soak the rich, <FONT COLOR='red'><B>WHO</B></FONT> are you going to work for? - <I>mmerlinn</I>";
	defaultblurb[86] = "We're trying to use the power of persuasion.  If that doesn't work, we're going to use the persuasion of power ... (Translation: Either change voluntarily, or we will change you by force.) - <I>Head Thug Andy Stearn, SEIU (Service Employees International Union)</I>";
	defaultblurb[87] = "Why does this president's rhetoric sound increasinly like it's coming from a <B>DICTATOR</B> of some two-bit Marxist hellhole? - <I>Death By 1000 Papercuts</I>";
	defaultblurb[88] = "We're going to punish our enemies (the American poeple) and we're gonna reward our friends (illegal immigrants) ... - <I>Obama, 25 October 2010</I>";
	defaultblurb[89] = "If you keep doing what you are doing, <BR>you will keep getting what you are getting. <BR><BR>If you don't like what you are getting,<BR> you MUST change what you are doing! - <I>mmerlinn</I>";
	defaultblurb[90] = "If they (Germany) do not plan new aggressions, they are not in need of arms.<BR><BR>NOTE: Today (1Jan2011) Germany is #1 in per capita and #3 in value of arms production. What are they planning on doing? - <I>Ludvig von Mises, Omnipotent Government, Peace Schemes</I>";
	defaultblurb[91] = "A parent is only as good as their (sic) dumbest kid. If one wins the Nobel Prize, but the other gets robbed by a hooker, you failed. - <I>Sam Halpern</I>";
	defaultblurb[92] = "Pick your furniture like you pick your wife: It should make you feel comfortable and look nice, but not so nice that if someone walks past it they want to steal it. - <I>Unknown author</I>";
	defaultblurb[93] = "If you try to get something for nothing, you will often get nothing for something. - <I>mmerlinn</I>";
	defaultblurb[94] = "Using credit cards is like playing with snakes - Sooner or later they bite. - <I>Heard on radio.</I>";
	defaultblurb[95] = "You will never see a hearse towing a U-Haul - You can't take it with you. - <I>Denzel Washington</I>";
	defaultblurb[96] = "Only government can take perfectly good paper, cover it with perfectly good ink, and make the combination worthless. - <I>Milton Friedman</I>";
	defaultblurb[97] = "Regarding the Great Depression, you're right, we did it.  We're very sorry. - <I>Ben Bernanke (Federal  Reserve Chairman), November 8, 2002</I>";
	defaultblurb[98] = "Rule #1: Never lose money! <br><br> Rule #2: Never forget Rule #1 . . . - <I>Warren Buffett</I>";
	defaultblurb[99] = "The U.S. national debt is now greater than the value of 250,000 tons of gold, 85,000 tons more than all the gold ever mined on earth. - <I>GoThunder</I>";
	defaultblurb[100] = "America can't survive a mooching class that votes in people that hate America. - <I>mmerlinn</I>";
	defaultblurb[101] = "If you are not risking your life, you are probably on the wrong side. - <I>Raj</I>";
	defaultblurb[102] = "Driver carries no cash<BR><BR><B>HE IS MARRIED</B> - <I>#B61191K, Washington</I>";
	defaultblurb[103] = "My husband told me if I treated him like I treated the cat, he would be in heaven. - <I>Heard on the Dennis Prager radio show</I>";
	defaultblurb[104] = "When you {Britain} are invited to a table {European Union} it is either as a guest or you are part of the menu. - <I>Guy Verhofstadt (13 Dec 2011) in reference to Britain and EU</I>";
	defaultblurb[105] = "Good stuff speaks for itself, crap needs hype. - <I>eskimo.com</I>";
	defaultblurb[106] = "Left uncontrolled, "designers" can render any environment totally useless. - <I>Found on the web</I>";

	var 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 Getrandommod(dv){
	var zz = new Date();
	zz = Math.floor(zz.getTime()/1000);
	zz = zz % dv + 1;
	return zz;
}

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 WrKeyDates(){
	d.writeln("<BR>");

	var zkey = "";
	for (var i = 1; i <= keydate[0]; i++){
		zkey = zkey + keydate[i] + "<BR>";
	}

	Writeblurbbox('lightblue', keydates + newpara + zkey);
}

function Writedefaultblurb(){
	defaultblurb[defaultblurb[0]] = "";

	var 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>");
	}

	var nowdate = new Date();
	var nowyear = nowdate.getYear();
	var yearmod = nowyear % 10;

	if (yearmod == 8){
		WrKeyDates();
	}
}

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 nm = '0' + (nowdate.getMonth() + 1);
	//	var nd = new String('0' + (nowdate.getDate()));
	var nd = '0' + (nowdate.getDate());
	nm = nm.substring(nm.length - 2);
	nd = nd.substring(nd.length - 2);
	var ns = ny + nm + nd;
	return ns;
}

function Begindate(begindate){
	var ns = Nowdatestring();
	var diff = ns - begindate;
	return diff;
}

function Stopdate(enddate){
	var ns = Nowdatestring();
	var diff = enddate - ns;
	return diff;
}

function Writeclosed(year){
	var 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 == 88){
		WrKeyDates();
	}
}

function Writeheader(){
	var nowdate = new Date();
	var nowyear = nowdate.getYear();
	var yearmod = nowyear % 10;

	if (Begindate(window['sdate_' + yearmod]) * Stopdate(window['edate_' + yearmod]) > 0){
		Writeclosed(nowyear);
	}

	Writedefaultblurb();


	if (Begindate(s_election) * Stopdate(e_election) > 0){
		Writeeblurb();
	}
}

function Replicate(str, len){
	var val = '';
	for(i = 0; i < len; i++){
		val = val + str;
	}
	return val;
}

function FormatNumber(val, dec, sig){
		//	val = value to format
		//	dec = position of decimal point from end
		//	sig = significant digits wanted, optional, defaults to all digits
	sig = sig * 1;
	val = val * Math.pow(10, dec);
	val = Math.round(val);
	val = val.toString();
	var len = val.length;
	if (sig > 0){
		pad = Replicate("0", len);
		val = val + pad;
		var rvl = val.substring(sig, len);
		var lvl = val.substring(0, sig);
		lvl = lvl.valueOf();
		rvl = rvl.valueOf();
		lvl = (rvl === 0) ? lvl : lvl * 1 + 1;
		lvl = lvl.toString();
		len = len + lvl.length - sig;
		val = lvl + pad;
		val = val.substring(0, len);
	}
	val = '000' + val;
	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 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
	var j = 0;
	var 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
	var j = 0;
	var 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
	var x = document.getElementsByTagName(tagname);
	var 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 m= 0; m < y.length; m++) {
		z = y[m].split("<");
		for (var j = 0; j < z.length; j++) {
			k = z[j].indexOf(">") + 1;
			if (k) {
				z[j] = z[j].substring(k);
			}
		}
		y[m] = z.join("");
		y[m] = LTRIM(y[m], '');
		y[m] = RTRIM(y[m], '');
	}

	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
	var flag = 0;
	for (var i = 0; i < searchtag.length; i++) {
		if (Findtaginfo('tr', searchtag[i]) != '') {
			i = searchtag.length;
			flag = 1;
		}
	}
	return flag;
}

		//	Retrieve info passed via URL
		//		Call Geturlnum() for numbers
		//		Call Geturlstr() for strings
		//	Each call to the above returns one item
		//	If there are multiple items, they must be repeatedly called

function Geturlvar(uvar){
	var urlvar = window.location.search.substring(1).split('&');
	for (var i=0; i<urlvar.length; i++) {
		var pair = urlvar[i].split('=');
		if (pair[0] == uvar) {
			return pair[1];
		}
	}
	return '';
}

function Geturlnum(uvar){
	var zvar = Geturlvar(uvar);
	var zlen = zvar.length;
	zvar = (zlen === 0) ? 0 : zvar * 1;
	return zvar;
}

function Geturlstr(uvar){
	var zvar = Geturlvar(uvar);
	var zlen = zvar.length;
	zvar = (zlen === 0) ? 'No URL variable' : zvar;
	return zvar;
}

