var http_request = false;

var ajax = new Array();
function load_how_to_articles() {
	document.getElementById('how_to_articles').options.length = 0;	// Empty select box
	var index = ajax.length;
	ajax[index] = new sack();
		
	ajax[index].requestFile = 'load_how_to_articles.php';			// load our category list
	ajax[index].onCompletion = function(){ update_how_to_articles_list(index) };	// Specify function that will be executed after file has been found
	ajax[index].runAJAX();		// Execute AJAX function
}

function update_how_to_articles_list(index) {
	var obj = document.getElementById('how_to_articles');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}


function load_previous_podcasts() {
	document.getElementById('previous_podcasts').options.length = 0;	// Empty select box
	var index = ajax.length;
	ajax[index] = new sack();
		
	ajax[index].requestFile = 'load_previous_podcasts.php';			// load our category list
	ajax[index].onCompletion = function(){ update_previous_podcast_list(index) };	// Specify function that will be executed after file has been found
	ajax[index].runAJAX();		// Execute AJAX function
}

function update_previous_podcast_list(index) {
	var obj = document.getElementById('previous_podcasts');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}


function loadmobilecarriers() {
	document.getElementById('carrier_index').options.length = 0;	// Empty select box
	var index = ajax.length;
	ajax[index] = new sack();
		
	ajax[index].requestFile = 'loadmobilecarriers.php';			// load our category list
	ajax[index].onCompletion = function(){ updatecarrierlist(index) };	// Specify function that will be executed after file has been found
	ajax[index].runAJAX();		// Execute AJAX function
}
function updatecarrierlist(index) {
	var obj = document.getElementById('carrier_index');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}

function getvegetablelist(sel)
{
	var newcategoryindex = sel.options[sel.selectedIndex].value


	document.getElementById('subcategoryindex').options.length = 0;	// Empty select box


	var index = ajax.length;
	ajax[index] = new sack();
		
	ajax[index].requestFile = 'loadsubcategories.php?categoryindex='+newcategoryindex;			// load our category list
	ajax[index].onCompletion = function(){ createsubcategories(index) };	// Specify function that will be executed after file has been found
	ajax[index].runAJAX();		// Execute AJAX function
}

function createsubcategories(index)
{
	var obj = document.getElementById('subcategoryindex');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}


function getproductslist()
{

	document.getElementById('categoryindex').options.length = 0;	// Empty select box
	var index = ajax.length;
	ajax[index] = new sack();
		
	ajax[index].requestFile = 'loadcategories.php';			// load our category list
	ajax[index].onCompletion = function(){ createcategories(index) };	// Specify function that will be executed after file has been found
	ajax[index].runAJAX();		// Execute AJAX function

}

function createcategories(index)
{
	var obj = document.getElementById('categoryindex');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}





   function makePOSTRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      http_request.onreadystatechange = alertContents;
      http_request.open('POST', url, true);
      http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.setRequestHeader("Connection", "close");
      http_request.send(parameters);
   }

   function POSTNewsletterRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      http_request.onreadystatechange = alertContentsNEWSLETTER;
      http_request.open('POST', url, true);
      http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.setRequestHeader("Connection", "close");
      http_request.send(parameters);
   }

	function alertContentsNEWSLETTER() {
		var txt='';
		txt+="<table width=100% class=\"maintableborder\">";
		txt+="	<tr class=\"tablerow_header_graphic\">";
		txt+="		<td valign=top align=left>";
		txt+="			<table width=100%>";
		txt+="				<tr>";
		txt+="					<td valign=top align=left>";
		txt+="						<span class=\"websiteheaderfont\"><b>Thank You!</b></span>";
		txt+="					</td>";
		txt+="				</tr>";
		txt+="				<tr>";
		txt+="					<td valign=top align=left>";
		txt+="						<br>";
		txt+="					</td>";
		txt+="				</tr>";
		txt+="				<tr>";
		txt+="					<td valign=top align=left>";
		txt+="						<span class=\"websiteheaderfont\">You will recieve an email shortly with a link to verify and activate your email address.</span>";
		txt+="					</td>";
		txt+="				</tr>";
		txt+="			</table>";
		txt+="		</td>";
		txt+="	</tr>";
		txt+="</table>";
		document.body.style.cursor = "wait";


		if (http_request.readyState == 4) {
        		if (http_request.status == 200) {
		        	document.getElementById('newsletter').innerHTML = txt;  
		        	document.getElementById('freeseedsdiv').innerHTML = txt;
		        	document.getElementById('freereportdiv').innerHTML = txt;
				document.body.style.cursor = "default";          
		        } else {
        			alert('There was a problem with the request.');
	         	}
      		}
	}
	function alertContentsmobilephone() {
		var txt='';
		txt+="<table>";
		txt+="	<tr>";
		txt+="		<td valign=top align=left>";
		txt+="			<span class=\"websiteheaderfont\"><b>Mobile Update Subscription</b></span>";
		txt+="		</td>";
		txt+="	</tr>";
		txt+="	<tr>";
		txt+="		<td valign=top align=left>";
		txt+="			<br>";
		txt+="		</td>";
		txt+="	</tr>";
		txt+="	<tr>";
		txt+="		<td valign=top align=left>";
		txt+="			<span class=\"websiteheaderfont\">Thank you for subscribing to our mobile updates.  You will recieve a text message shortly.</span>";
		txt+="		</td>";
		txt+="	</tr>";
		txt+="</table>";
		document.body.style.cursor = "wait";


		if (http_request.readyState == 4) {
        		if (http_request.status == 200) {
		        	document.getElementById('mobilephonediv').innerHTML = txt;  
				document.body.style.cursor = "default";          
		        } else {
        			alert('There was a problem with the request.');
	         	}
      		}
	}
   function POSTmobilephoneRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      http_request.onreadystatechange = alertContentsmobilephone;
      http_request.open('POST', url, true);
      http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.setRequestHeader("Connection", "close");
      http_request.send(parameters);
   }
   function getMOBILPHONE(obj) {
	var newnumber='';
	//make sure a phone number is filled in
	if (document.getElementById("carrier_index").value.length>0 && document.getElementById("mobile_phone_number").value.length>11) {
		//we now strip the dashes from the phonenumber
		newnumber = document.getElementById("mobile_phone_number").value;
		while (newnumber.indexOf("-")>-1) {
			newnumber = newnumber.replace(/-/, "");
		}
		var poststr = "mobile_phone_number=" + encodeURI(newnumber) + "&carrier_index=" + encodeURI(document.getElementById("carrier_index").value);
		POSTmobilephoneRequest('save_mobilephone.php', poststr);
	}
	else {
		alert("Select a mobile carrier and please enter a valid mobile phone number");
	}
   }

   function getFREEREPORT(obj) {
	if (document.getElementById("freereportemail").value.length>1) {
		var poststr = "email=" + encodeURI(document.getElementById("freereportemail").value );
		POSTNewsletterRequest('save_newsletter.php', poststr);
	}
	else {
		alert("Please enter a valid email address");
	}
   }

   function getFREESEEDS(obj) {
	if (document.getElementById("freeseedsemail").value.length>1) {
		var poststr = "email=" + encodeURI(document.getElementById("freeseedsemail").value );
		POSTNewsletterRequest('save_newsletter.php', poststr);
	}
	else {
		alert("Please enter a valid email address");
	}
   }

   function getNEWSLETTER(obj) {
	if (document.getElementById("newsletteremail").value.length>1) {
		var poststr = "email=" + encodeURI(document.getElementById("newsletteremail").value );
		POSTNewsletterRequest('save_newsletter.php', poststr);
	}
	else {
		alert("Please enter a valid email address");
	}
   }

	function alertContents() {
		var txt='';
			document.body.style.cursor = "wait";

			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr class=\"tablerow_header_graphic\">";
			txt+="		<td valign=top align=left>";
			txt+="			<span class=\"websiteheaderfont\">Contact Us</span>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<br>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<span class=\"websiteheaderfont\">Your message has been sent to our customer service department.  One of our hard working staff members will respond to you shortly.  In the meantime if you have any other questions please do not hesitate to contact us via email or regular mail as noted below.  To curtail spammers from overloading our inbox, our online form allows one message to be sent per day per IP address.</span>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<br>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<table border=0>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<table class=\"maintableborder\" cellspacing=1 cellpadding=1>";
			txt+="							<tr class=\"tablerow_header_graphic\">";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><b>Snail Mail</b></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\">Mike the Gardener Enterprises</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\">PO Box 1773</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\">Burlington, NJ  08016</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="					<td valign=top align=left>";
			txt+="						<table class=\"maintableborder\" cellspacing=1 cellpadding=1>";
			txt+="							<tr class=\"tablerow_header_graphic\">";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><b>Email Address</b></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"mailto:customerservice@averagepersongardening.com\">CustomerService@averagepersongardening.com</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="</table>";
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            //alert(http_request.responseText);
            //result = http_request.responseText;
            document.getElementById('content').innerHTML = txt;  
		document.body.style.cursor = "default";          
         } else {
            alert('There was a problem with the request.');
         }
      }
   }
   
   function get(obj) {
	if (document.getElementById("myemail").value.length>0) {
		if (document.getElementById("subject").value.length>0) {
			if (document.getElementById("mymessage").value.length>0) {
				var poststr = "email=" + encodeURI( document.getElementById("myemail").value ) + "&subject=" + encodeURI( document.getElementById("subject").value ) + "&mymessage=" + encodeURI( document.getElementById("mymessage").value);
				makePOSTRequest('contact_us_mail.php', poststr);
			} else {
				alert('Please enter a message');
			}
		} else {
			alert('Please enter a subject');
		}
	} else {
		alert('Please enter a valid email address');
	}
	
   }


function window_change(id) {
	var txt='';
	
	//clear any timer intervals on the image rotation

	switch (id){
		case 1:	// contact us
			txt="<form method=\"post\" action=\"contact_us_mail.php\" name=\"frmcontact\" id=\"frmcontact\">";
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr>";
			txt+="		<td valign=top align=left class=\"tablerow_header_graphic\">";
			txt+="			<table width=100% cellspacing=0 cellpadding=0 border=0>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheadersectionfont\"><b>Contact Us</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left rowspan=10>";
			txt+="						<img src=\"contact_us.jpg\">";
			txt+="					</td>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheaderfont\">We have three methods by which you can reach us.  Contact us by filling in the information on this form and clicking the send button, click the email link below to send us an email, or send us regular postal delivery mail to our address.</span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheaderfont\">Email:</span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<input type=\"text\" name=\"email\" size=75 class=\"maintableborder\" id=\"myemail\">";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheaderfont\">Subject:</span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<input type=\"text\" name=\"subject\" size=75 class=\"maintableborder\" id=\"subject\">";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheaderfont\">Message:</span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<textarea name=\"mymessage\" cols=50 rows=10 class=\"maintableborder\" id=\"mymessage\"></textarea>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<table border=0>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<table class=\"maintableborder\" cellspacing=1 cellpadding=1>";
			txt+="										<tr class=\"tablerow_header_graphic\">";
			txt+="											<td valign=top align=left>";
			txt+="												<span class=\"websitefont\"><b>Snail Mail</b></span>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="										<tr>";
			txt+="											<td valign=top align=left>";
			txt+="												<span class=\"websitefont\">Mike the Gardener Enterprises</span>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="										<tr>";
			txt+="											<td valign=top align=left>";
			txt+="												<span class=\"websitefont\">PO Box 1773</span>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="										<tr>";
			txt+="											<td valign=top align=left>";
			txt+="												<span class=\"websitefont\">Burlington, NJ  08016</span>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="									</table>";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<table class=\"maintableborder\" cellspacing=1 cellpadding=1>";
			txt+="										<tr class=\"tablerow_header_graphic\">";
			txt+="											<td valign=top align=left>";
			txt+="												<span class=\"websitefont\"><b>Email Address</b></span>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="										<tr>";
			txt+="											<td valign=top align=left>";
			txt+="												<span class=\"websitefont\"><a href=\"mailto:customerservice@averagepersongardening.com\">CustomerService@averagepersongardening.com</a></span>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="										<tr>";
			txt+="											<td valign=top align=left>";
			txt+="												<br>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="										<tr>";
			txt+="											<td valign=top align=left>";
			txt+="												<br>";
			txt+="											</td>";
			txt+="										</tr>";
			txt+="									</table>";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<input type=button name=\"button\" value=\"Send\" class=\"submit_button\" onclick=\"javascript:get(this.parentNode);\">";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="</table>";
			txt+="</form>";
			break;
		case 2:	// about
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr class=\"tablerow_header_graphic\"><td valign=top align=left>";
			txt+="		<table width=100% cellspacing=0 cellpadding=0 border=0>";
			txt+="			<tr>";
			txt+="				<td valign=top align=left colspan=2>";
			txt+="					<span class=\"websiteheadersectionfont\">About Us</span>";
			txt+="				</td>";
			txt+="			</tr>";
			txt+="			<tr>";
			txt+="				<td valign=top align=left>";
			txt+="					<br>";
			txt+="				</td>";
			txt+="			</tr>";
			txt+="			<tr>";
			txt+="				<td valign=top align=left rowspan=100>";
//			txt+="					<img src=\"mike_the_gardener.jpg\" alt=\"Mike the Gardener\" border=\"0\">";
			txt+="				</td>";
			txt+="				<td valign=top align=left>";
			txt+="					<table width=100% border=0>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">Welcome to Mike the Gardener Enterprises!</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">We are the exclusive home for the Seeds of the Month Club. We also provide to you all the information you will need to turn those seeds into a bountiful harvest!</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">Mike the Gardener Enterprises was founded by Michael Podlesny, a 3rd generational home vegetable gardener and published author of the book <i><a href=\"http://www.amazon.com/Vegetable-Gardening-Average-Person-vegetable/dp/0557074266/ref=sr_1_1?ie=UTF8&s=books&qid=1248269180&sr=1-1\" target=\"_blank\">Vegetable Gardening for the Average Person</a></i>, who has been vegetable gardening himself for nearly 30 years.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">Our goal is to make home vegetable gardening easy and affordable for everybody and just as importantly, to make sure you have all of the information and tools at your fingertips so that you can enjoy the most benefits from a bountiful harvest.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">On our website you will find podcasts, vegetable gardening tutorials, information on the home vegetable gardening industry and so much more.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">It just would not be right to sell you the seeds and home vegetable gardening products that you need, then not give you the right information to increase your chances of success.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">So as you browse around our site, don`t forget to <a href=\"sign_up_for_our_free_newsletter.html\" target=\"_blank\">get your <b>free</b> vegetable gardening newsletter</a>.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">Don't forget to connect to us on <a href=\"http://www.linkedin.com/in/mikethegardener\" target=\"_blank\">Linked IN</a>, follow us on <a href=\"http://twitter.com/mikethegardener\" target=\"_blank\">twitter</a>, join our <a href=\"http://www.facebook.com/pages/Vegetable-Gardening/88717240962\" target=\"_blank\">Facebook</a> fan page, and get vegetable gardening information sent directly to your <a href=\"http://www.amazon.com/Gardening-for-the-Average-Person/dp/B002B55A6G/ref=sr_1_1?ie=UTF8&s=digital-text&qid=1255486645&sr=1-1\" target=\"_blank\">Kindle</a>.  We are confident that our website has everything you will need to succeed at home vegetable gardening.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">Remember, we are always here to help.  On our <a href=\"javascript: window_change(1);\">Contact</a> page we have given you a variety of ways to reach us.  You can submit a request through our online form, <a href=\"mailto:customerservice@averagepersongardening.com\">email us</a> directly, or send us some good old fashioned snail mail through the U.S. Postal Service.  If you ever have a question do not hesitate to ask.</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<br>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="						<tr>";
			txt+="							<td valign=top align=left>";
			txt+="								<span class=\"websiteheaderfont\">Happy Home Vegetable Gardening!</span>";
			txt+="							</td>";
			txt+="						</tr>";
			txt+="					</table>";
			txt+="				</td>";
			txt+="			</tr>";
			txt+="		</table>";
			txt+="	</td></tr>";
			txt+="</table>";
			break;
		case 3: //products
			txt+='<table width=100% class="maintableborder">';
			txt+='	<tr class="tablerow_header_graphic">';
			txt+='		<td valign=top align=left>';
			txt+='			<table width=100% cellspacing=0 cellpadding=0 border=0>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left colspan=2>';
			txt+='						<span class="websiteheadersectionfont"><b>Online Store</b></span>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<br>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=center class="tablerow_header_graphic">';
			txt+='						<table class="shippingtableborder" border="0" cellspacing=1 cellpadding=1 width=100%>';
			txt+='							<tr><td valign=top align=left><img src="usps.gif" alt="Free Shipping on all orders over $10" align=left></td><td valign=top align=left><span class="shippingheaderfont"><b>FREE SHIPPING ON ALL ORDERS OVER $10</b></span><br><br><span class="shippingheaderfont2">As always when your purchase exceeds $10 we will waive the shipping and handling costs.  This is not for a limited time or some special offer available only to a select few.  Free shipping on all orders over $10 is available anytime all year long.</span></td></tr>';
			txt+='						</table>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<br>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=center>';
			txt+='						<table border="0" cellspacing="0" cellpadding="0" width=90%>';
			txt+='							<tr>';
			txt+='								<td valign=top align=center class="maintableborder">';
			txt+='									<table border=0 cellspacing=1 cellpadding=1><tr><td valign=top align=center><a href="http://www.averagepersongardening.com/seed_subscriptions.php" target="_blank"><img src="mailbox_main_page.jpg" border="0" alt="Seeds of the Month Club" align="left"></a></td><td valign=middle align=center><span class="websiteaffiliategetstartedfont"><a href="http://www.averagepersongardening.com/seed_subscriptions.php" target="_blank">Join</a> our Vegetable Seeds of the Month Club and get your first month aboslutely FREE!</span></td></tr></table>';
			txt+='								</td>';
			txt+='							</tr>';
			txt+='						</table>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<br>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<span class="websiteheaderfont">Welcome to our online store page.  On here you will find a variety of home gardening supplies available for sale at very low costs.  If you ever have any questions about our online store please feel free to contact us at anytime.</span>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<br>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<br>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<table width=100%>';
			txt+='							<tr>';
			txt+='								<td valign=top align=left>';
			txt+='									<span class="websiteheaderfont">Pick the type of Seeds:</span>';
			txt+='								</td>';
			txt+='								<td valign=top align=left>';
			txt+='									<span class="websiteheaderfont">Choose a Seed Variety:</span>';
			txt+='								</td>';
			txt+='							</tr>';
			txt+='							<tr>';
			txt+='								<td valign=top align=left>';
			txt+='									<select class="selectionbox" name="categoryindex" size="5" id="categoryindex" onchange="getvegetablelist(this)">>';
			txt+='										<option value="0"></option>';
			txt+='									</select>';
			txt+='								</td>';
			txt+='								<td valign=top align=left>';
			txt+='									<select class="selectionbox" name="subcategoryindex" size="5" id="subcategoryindex" onchange="showproduct(this.value)">';
			txt+='										<option value="0"></option>';
			txt+='									</select>';
			txt+='								</td>';
			txt+='							</tr>';
			txt+='							<tr>';
			txt+='								<td valign=top align=left colspan=2>';
			txt+='									<span class="websiteheaderfont">Products:</span>';
			txt+='								</td>';
			txt+='							</tr>';
			txt+='							<tr>';
			txt+='								<td valign=top align=left colspan=2>';
			txt+='									<span class="websiteheaderfont">Click the product name to display more detailed information</span>';
			txt+='								</td>';
			txt+='							</tr>';
			txt+='							<tr>';
			txt+='								<td valign=top align=left colspan=2>';
			txt+='									<div id="txtHint"></div>';
			txt+='								</td>';
			txt+='							</tr>';
			txt+='						</table>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='			</table>			';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='</table>			';
			break;
		case 4:	//shopping cart
			txt+='<table width=100% class="maintableborder" border=0 cellspacing=0 cellpadding=0>';
			txt+='	<tr>';
			txt+='		<td valign=top align=left class="tablerow_header_graphic">';
			txt+='			<table width=99% cellspacing=0 cellpadding=0 border=0>';
			txt+='				<tr class="tablerow_header_graphic">';
			txt+='					<td valign=top align=left colspan=2>';
			txt+='						<span class="websiteheadersectionfont">Shopping Cart</span>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<br>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='				<tr>';
			txt+='					<td valign=top align=left>';
			txt+='						<div id="shoppingcartinformation"></div>';
			txt+='					</td>';
			txt+='				</tr>';
			txt+='			</table>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='</table>			';
			break;
		case 5:	//go mobile
			txt+='<table width=100% class="maintableborder" border=0 cellspacing=0 cellpadding=0>';
			txt+='	<tr class="tablerow_header_graphic">';
			txt+='		<td valign=top align=left colspan=2>';
			txt+='			<span class="websiteheadersectionfont">Mobile Home Vegetable Gardening</span>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='	<tr>';
			txt+='		<td valign=top align=left>';
			txt+='			<br>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='	<tr>';
			txt+='		<td valign=top align=left>';
			txt+='			<span class="websiteheaderfont">Now you can take home vegetable gardening with you everywhere you go with our mobile text alert updates.  Mobile subscribers receive special discounts, offers and savings that no one else will receive.  Although this service is provided to you free of charge, check with your mobile provider for their text messaging costs before you register.</span>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='	<tr>';
			txt+='		<td valign=top align=left>';
			txt+='			<br>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='	<tr>';
			txt+='		<td valign=top align=left>';
			txt+='			<span class="websiteheaderfont">Simply select your carrier from the list, enter your mobile phone number with area code, and click on send.  We will send you a confirmation text message shortly thereafter to let you know you are subscribed to this free service.</span>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='	<tr>';
			txt+='		<td valign=top align=left>';
			txt+='			<br>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='	<tr>';
			txt+='		<td valign=top align=center>';
			txt+='			<div id="mobilephonediv"><form method="post" name="frmmobilephone" id="frmmobilephone">';
			txt+='				<table border=0 cellspacing=1 cellpadding=1 width=90%>';
			txt+='					<tr>';
			txt+='						<td valign=bottom align=left>';
			txt+='							<span class="websiteheaderfont"><b>Mobile Carrier</b></span>';
			txt+='						</td>';
			txt+='						<td valign=top align=left>';
			txt+='							<span class="websiteheaderfont"><b>Enter your mobile phone number<br>format: <i>xxx-xxx-xxxx</i></b></span>';
			txt+='						</td>';
			txt+='					</tr>';
			txt+='					<tr>';
			txt+='						<td valign=top align=left>';
			txt+='							<select name="carrier_index" id="carrier_index" size=10 class="selectionbox">';
			txt+='								<option value="0"></option>';
			txt+='							</select>';
			txt+='						</td>';
			txt+='						<td valign=top align=left>';
			txt+='							<input type="text" name="mobile_phone_number" maxlength="15" class="maintableborder">';
			txt+='						</td>';
			txt+='					</tr>';
			txt+='					<tr>';
			txt+='						<td valign=top align=center colspan=2>';
			txt+='							<input type=button name="button" value="Send" class="submit_button" onclick="javascript:getMOBILPHONE(this.parentNode);">';
			txt+='						</td>';
			txt+='					</tr>';
			txt+='				</table>';
			txt+='			</form></div>';
			txt+='		</td>';
			txt+='	</tr>';
			txt+='</table>			';
			break;
		case 6:	//recipes
		case 7:	//zone maps
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr><td valign=top align=left class=\"tablerow_header_graphic\"><table width=100% border=0 cellspacing=0 cellpadding=0><tr>";
			txt+="		<td valign=top align=left colspan=2>";
			txt+="			<span class=\"websiteheadersectionfont\">North American Zone Map</span>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<br>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=center>";
			txt+="			<img src=\"north_american_zone_map.jpg\" alt=\"North American Zone Map\" border=\"0\">";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<br>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	<tr>";
			txt+="		<td valign=top align=left>";
			txt+="			<table border=0 cellspacing=1 cellpadding=1 class=\"maintableborder\">";
			txt+="				<tr>";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 1</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>1 Jun / 30 Jun Average date of the first frost - 1 Jul to 31 Jul vulnerable to frost 365 days per year.</span></td>";
			txt+="				</tr>";			
			txt+="				<tr bgcolor=\"#DFDFDF\">";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 2</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>1 May to 31 May Average dates first frost - 1 August to 31 August</span></td>";
			txt+="				</tr>";			
			txt+="				<tr>";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 3</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>1 May to 31 May Average dates first frost - 1 September to 30 September</span></td>";
			txt+="				</tr>";			
			txt+="				<tr bgcolor=\"#DFDFDF\">";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 4</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>1 May to 30 May Average dates the first frost - 1 September to 30 September</span></td>";
			txt+="				</tr>";			
			txt+="				<tr>";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 5</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>30 March to 30 April Average dates the first frost - 30 September to 30 October</span></td>";
			txt+="				</tr>";			
			txt+="				<tr bgcolor=\"#DFDFDF\">";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 6</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>30 Mach to 30 April Average dates the first frost - 30 September to 30 October</span></td>";
			txt+="				</tr>";			
			txt+="				<tr>";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 7</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>30 March to 30 April Average dates the first frost - 30 September to 30 October</span></td>";
			txt+="				</tr>";			
			txt+="				<tr bgcolor=\"#DFDFDF\">";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 8</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>28 February to 30 March Average dates the first frost - 30 October to 30 November</span></td>";
			txt+="				</tr>";			
			txt+="				<tr>";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 9</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>30 January to 28 February Average dates the last frost - 30 November to 30 December</span></td>";
			txt+="				</tr>";			
			txt+="				<tr bgcolor=\"#DFDFDF\">";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 10</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>30 January or before Average dates the first frost - 30 November to 30 December</span></td>";
			txt+="				</tr>";			
			txt+="				<tr>";
			txt+="					<td valign=top align=left><span class=websiteheaderfont><b>Zone 11</b></span></td>";
			txt+="					<td valign=top align=left width=\"90%\"><span class=websiteheaderfont>Frost all year round.  Concentrate on frost resistant crops.</span></td>";
			txt+="				</tr>";			
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="	</table></td></tr>";
			txt+="</table>";
			break;	
		case 8:	//downloads
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr>";
			txt+="		<td valign=top align=left class=\"tablerow_header_graphic\">";
			txt+="			<table width=100% cellspacing=0 cellpadding=0 border=0>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheadersectionfont\"><b>Downloads</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="					<td valign=top align=left colspan=10>";
			txt+="						<span class=\"websiteheaderfont\">Welcome to our downloads page.  On here we place documents, software and other information that we feel can be helpful and useful to you and your home vegetable gardening adventures.  Simply click on the link next to the item you want to download and follow the on screen instructions.</span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<table cellspacing=0 cellpadding=0 border=0>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websiteheaderfont\"><a href=\"pHVegetableList.pdf\" target=\"_blank\">pH List of Vegetables, Fruits and Herbs</a> - Displays what the pH level of your soil should be for many popular varieties of vegetables, fruits and herbs grown by the home vegetable gardener.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left colspan=2>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websiteheaderfont\"><a href=\"frost_zones.pdf\" target=\"_blank\">Map & Description of Frost Zones in the United States of America & Europe</a> - Displays zone information for both the USA and Europe as to when frost will begin and end in various areas.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left colspan=2>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websiteheaderfont\"><a href=\"planting_distances.pdf\" target=\"_blank\">Distance between planting seeds</a> - Displays how far apart you should plant seeds in your home vegetable garden.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left colspan=2>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websiteheaderfont\"><a href=\"seed_depths.pdf\" target=\"_blank\">Seed Depths</a> - Displays a listing of many varieties of fruits, vegetables and herbs of how deep you should plant their seeds.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left colspan=2>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websiteheaderfont\"><a href=\"germination_soil_temperatures.pdf\" target=\"_blank\">Soil Temperatures</a> - Displays a listing of soil temperatures (both Fahrenheit and Celsius) for many varieties of fruits, vegetables and herbs for optimal germination.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="</table>";
			break;		
		case 9:	//media page
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr>";
			txt+="		<td valign=top align=left class=\"tablerow_header_graphic\">";
			txt+="			<table width=100% cellspacing=0 cellpadding=0 border=0>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheadersectionfont\"><b>Press Room</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="					<td valign=top align=left colspan=10>";
			txt+="						<span class=\"websiteheaderfont\"><b>Mike the Gardener Enterprises, LLC Press Room</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<table cellspacing=0 cellpadding=0 border=0>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">July 16, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"lodestone_dynamics.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.lodestoneblog.com/2010/07/91-fundamental-habits-of-highly-motivated-small-business-owners/\" target=\"_blank\">Lodeston Dynamics: The Navigator, Finding Success in Work and Life</a> - Mike is featured as tip #21 for 91 Fundamental Habits of Highly Motivated Small Business Owners.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">July 15, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/press_releases/press_release_fall_gardening_a.pdf\" target=\"_blank\">PRESS RELEASE: Start Planning that Fall Vegetable Garden Now</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">July 2, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"wallet_pop.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.walletpop.com/blog/2010/07/02/sprucing-up-a-yard-for-100-or-less/\" target=\"_blank\">Wallet Pop Blog</a> - Mike is quoted with a price saving tip on gardening.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">June 19, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"updatedphm.jpg\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://thoughtsofprincessmar.blogspot.com/2010/06/average-person-gardening.html\" target=\"_blank\">Pink Haired Momma Blog</a> - Mike the Gardener`s <a href=\"http://seedsclub.averagepersongardening.com\" target=\"_blank\">Seeds of the Month Club</a> is written about and featured on this very popular blog.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">June 18, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"mygloss.jpg\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://mygloss.com/yum/2010/06/17/last-minute-gifts-for-food-loving-dads/comment-page-1/#comment-425\" target=\"_blank\">Dads With a Green Thumb</a> - Mike the Gardener`s <a href=\"http://seedsclub.averagepersongardening.com\" target=\"_blank\">Seeds of the Month Club</a> is featured as a great gift for Father`s Day on <a href=\"http://www.MyGloss.com\" target=\"_blank\">MyGloss.com</a>.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">June 16, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"logo-gift-blog.jpg\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.1happycorner.com/last-minute-deals-on-fathers-day-gifts-month-clubs\" target=\"_blank\">Last Minute Deals on Father`s Day Gifts</a> - Mike the Gardener`s <a href=\"http://seedsclub.averagepersongardening.com\" target=\"_blank\">Seeds of the Month Club</a> is featured as a great gift for Father`s Day on <a href=\"http://www.1happycorner.com\" target=\"_blank\">1HappyCorner.com</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">June 11, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"newspapericon.jpg\" border=\"0\" width=\"32px\" height=\"32px\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://blogs.roanoke.com/rtblogs/botetourtview/2010/06/11/facebook-gardening-award-won-by-troutville-resident\" target=\"_blank\">Roanoke Times - The Botetourt View</a> - Winner of Mike the Gardener`s international vegetable gardening contest on Facebook is featured in her hometown paper.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">June 1, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"web_site_icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://sweeps4bloggers.com/?p=5096\" target=\"_blank\">Sweeps 4 Bloggers</a> - Mike the Gardener`s <a href=\"http://seedsclub.averagepersongardening.com\" target=\"_blank\">Seeds of the Month Club</a> is a featured prize giveaway to their visitors.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">May 11, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/press_releases/join_the_club.pdf\" target=\"_blank\">PRESS RELEASE: Not Sure What to Grow? Join the Club</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">March 30, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/press_releases/press_release_033010_2.pdf\" target=\"_blank\">PRESS RELEASE: Spring is Here and Vegetable Gardeners are Ready to Go</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">January 5, 2010</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/press_releases/pressrelease010510_2.pdf\" target=\"_blank\">PRESS RELEASE: Retailers of Vegetable Seeds Gearing up for Busy Season</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">November 6, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"SeedsOfTheMonthClub.pdf\" target=\"_blank\">PRESS RELEASE: Now You Can Give the Gift That Gives All Year Round This Holiday Season</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">October 28, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"radio_icon.jpg\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"MikeTheGardener 30 Mixdown.mp3\" target=\"_blank\">Mike the Gardener Enterprises Releases first Radio Advertisement.</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">JULY 11, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"gif_icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"bcta.jpg\" target=\"_blank\">Experts are seeing a rise in vegetable gardening as people look to save money on grocery bills.</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">JUNE 24, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"video_icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"video_display.php?id1=4af42a6e3ee1a17c&id2=c4646270&id3=cdb8a483518ef1c1\" target=\"_blank\">Mike the Gardener Enterprises, LLC: Video #3</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">JUNE 19, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"video_icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"video_display.php?id1=4af429975076543a&id2=3ebc6e9c&id3=86c6457525a127e7\" target=\"_blank\">Mike the Gardener Enterprises, LLC: Video #2 - Affordable Vegetable Seeds</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">JUNE 8, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"pdf-icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"PressRelease1.pdf\" target=\"_blank\">PRESS RELEASE: Gardens Bloom as Economy Struggles: Mike the Gardener Weighs in as to how your own vegetable garden can save your money.</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<span class=\"websitefont\">JUNE 5, 2009</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=middle align=left>";
			txt+="									<img src=\"video_icon.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=middle align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"video_display.php?id1=4af4210d7887b9ec&id2=69696056&id3=b87c772269f01f23\" target=\"_blank\">Mike the Gardener Enterprises, LLC: Video #1</a></span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left colspan=2>";
			txt+="									<table border=0 cellspacing=1 cellpadding=1 class=\"maintableborder\" width=100%>";
			txt+="										<tr><td valign=top align=center colspan=20><span class=\"websitefont\"><b>LEGEND</b></span></td></tr>";
			txt+="										<tr><td valign=top align=left><img src=\"radio_icon.jpg\" border=\"0\"></td><td valign=top align=left><span class=\"websitefont\">Radio</span></td><td valign=top align=left><img src=\"video_icon.png\" border=\"0\"></td><td valign=top align=left><span class=\"websitefont\">Video</span></td><td valign=top align=left><img src=\"gif_icon.png\" border=\"0\"></td><td valign=top align=left><span class=\"websitefont\">Image (i.e. gif,jpg,png,bmp)</span></td><td valign=top align=left><img src=\"pdf-icon.png\" border=\"0\"></td><td valign=top align=left><span class=\"websitefont\">PDF Document</span></td></tr>";
			txt+="									</table>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="</table>";
			break;		
		case 10:	//games and fun
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr>";
			txt+="		<td valign=top align=left class=\"tablerow_header_graphic\">";
			txt+="			<table width=100% cellspacing=0 cellpadding=0 border=0>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<span class=\"websiteheadersectionfont\"><b>Games, Puzzles and Questions</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="					<td valign=top align=left colspan=10>";
			txt+="						<span class=\"websiteheaderfont\"><b>Here you will find some fun stuff related to vegetable gardening.  All are free to use and play.  Enjoy!</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<table cellspacing=0 cellpadding=0 border=0>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/cornquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://cornquiz.averagepersongardening.com\" target=\"_blank\">QUIZ: Corn</a> - See if you can answer these 10 questions about corn.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/peasquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://peasquiz.averagepersongardening.com\" target=\"_blank\">QUIZ: Peas</a> - See if you can answer these 10 questions about peas.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/lettucequiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://lettucequiz.averagepersongardening.com\" target=\"_blank\">QUIZ: Lettuce</a> - See if you can answer these 10 questions about lettuce.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/onionsquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://onionsquiz.averagepersongardening.com\" target=\"_blank\">QUIZ: Onions</a> - See if you can answer these 10 questions about onions.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/beansquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://beanquiz.averagepersongardening.com\" target=\"_blank\">QUIZ: Beans</a> - See if you can answer these 10 questions about beans.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/carrotquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/carrotquiz\" target=\"_blank\">QUIZ: Carrots</a> - See if you can answer these 10 questions about carrots.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/squashquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/squashquiz\" target=\"_blank\">QUIZ: `I Just Got Squashed`</a> - See if you can answer these 10 questions about squash.  Play against your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/pepperquiz/images.jpg\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/pepperquiz\" target=\"_blank\">QUIZ: `The Scorching Pepper`</a> - See if you can answer these 10 questions about this popular home vegetable garden item, the pepper.  Share with your friends on Facebook for a chance to win a 1 year membership to the Seeds of the Month Club!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"http://www.averagepersongardening.com/picklequiz/pickles.gif\" border=\"0\" width=\"75px\" height=\"75px\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/picklequiz\" target=\"_blank\">QUIZ: `Caught in a Pickle`</a> - So you think you know your cucumbers?  We will give you 10 facts about cucumbers and you decide whether they are true or false.  Play against your friends on Facebook!</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"earth_friendly.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/earth_day_color_book.pdf\" target=\"_blank\">Earth Day Coloring book for Kids!</a> - Compliments of the EPA of the USA you can download this free 12 page booklet that teaches kids all about how to recycle through the art and imagination of coloring.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"quiz_icon.gif\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/guess_that_vegetable.html\" target=\"_blank\">QUIZ: `Guess that Vegetable`</a> - How well do you know your vegetables?  Test your knowledge and take the quiz.  We will show you pictures of 10 vegetables and you guess what it is.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<br>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"quiz_icon.gif\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/the_great_tomato_quiz.html\" target=\"_blank\">QUIZ: `The Great Tomato Quiz`</a> - How well do you know the Tomato?  Test your knowledge and take the quiz.  You will be given 10 true or false questions. Sound easy? Give it a try and share your results with your friends.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="</table>";
			break;
		case 11:	//for the kids
			txt+="<table width=100% class=\"maintableborder\">";
			txt+="	<tr>";
			txt+="		<td valign=top align=left class=\"tablerow_header_graphic\">";
			txt+="			<table width=100% cellspacing=0 cellpadding=0 border=0>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<img src=\"for_the_kids1.png\" align=left border=0>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="					<td valign=top align=left colspan=10>";
			txt+="						<span class=\"websiteaffiliategetstartedfont\"><b>Here you will find all kinds of neat ideas, puzzles and fun for the kids!</b></span>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<br>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="				<tr>";
			txt+="					<td valign=top align=left>";
			txt+="						<table cellspacing=0 cellpadding=0 border=0>";
			txt+="							<tr>";
			txt+="								<td valign=top align=left>";
			txt+="									<img src=\"earth_friendly.png\" border=\"0\">";
			txt+="								</td>";
			txt+="								<td valign=top align=left>";
			txt+="									<span class=\"websitefont\"><a href=\"http://www.averagepersongardening.com/earth_day_color_book.pdf\" target=\"_blank\">Earth Day Coloring book for Kids!</a> - Compliments of the EPA of the USA you can download this free 12 page booklet that teaches kids all about how to recycle through the art and imagination of coloring.</span>";
			txt+="								</td>";
			txt+="							</tr>";
			txt+="						</table>";
			txt+="					</td>";
			txt+="				</tr>";
			txt+="			</table>";
			txt+="		</td>";
			txt+="	</tr>";
			txt+="</table>";
			break;

	}
	document.getElementById("content").innerHTML = txt;

	switch (id) {
		case 3:	
			getproductslist();
			break;
		case 4:
			loadshoppingcart();
			break;
		case 5:
			loadmobilecarriers();
			break;
	}
}

var xmlhttp;


function GetXmlHttpObject() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function addcartitemstodatabase() {
	//first we check to make sure the required fields on the checkout screen are filled in, because we will need to add
	//them later to the database
	if (document.frmshipping.customer_name.value.length>0) {
		if (document.frmshipping.customer_address_line_1.value.length>0) {
			if (document.frmshipping.customer_city.value.length>0) {
				if (document.frmshipping.customer_state.value.length>0) {
					if (document.frmshipping.customer_zip_code.value.length>0) {
						if (document.frmshipping.customer_email.value.length>0) {
							// this function gets executed when the user clicks the checkout button on the cart form
							// we transfer the items to the database, clear the shopping cart then send the user to paypal
							document.body.style.cursor = "wait";
							xmlhttp=GetXmlHttpObject();
							if (xmlhttp==null)
							{
								alert ("Browser does not support HTTP Request");
								return;
							}
							var url="addshoppingcarttodatabase.php";
							url=url+"?sid="+Math.random();
							url=url+"&customer_name="+document.frmshipping.customer_name.value;
							url=url+"&customer_address_line_1="+document.frmshipping.customer_address_line_1.value;
							url=url+"&customer_address_line_2="+document.frmshipping.customer_address_line_2.value;
							url=url+"&customer_city="+document.frmshipping.customer_city.value;
							url=url+"&customer_state="+document.frmshipping.customer_state.value;
							url=url+"&customer_zip_code="+document.frmshipping.customer_zip_code.value;
							url=url+"&customer_email="+document.frmshipping.customer_email.value;
							url=url+"&customer_phone="+document.frmshipping.customer_phone.value;
							url=url+"&newsletter="+document.frmshipping.newsletter.checked;

							xmlhttp.onreadystatechange=addcartitemstodatabasestateChanged;
							xmlhttp.open("GET",url,true);
							xmlhttp.send(null);
						}
						else {
							alert("Please enter in your email address!");
						}
					}
					else {
						alert("Please enter in your zip code!");
					}
				}
				else {
					alert("Please enter in your state!");
				}

			}
			else {
				alert("Please enter in your city!");
			}
		}
		else {
			alert("Please enter in your address on line 1!");
		}
	}
	else {
		alert("Please enter in your full name!");
	}
}
function addcartitemstodatabasestateChanged() {
	if (xmlhttp.readyState==4) {
		document.body.style.cursor = "default";
		document.frmpaypal.submit();
	}
}

function showproduct(str) {
	document.body.style.cursor = "wait";
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="loadproducts.php";
	url=url+"?q="+str;
	url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function stateChanged() {
	if (xmlhttp.readyState==4) {
		document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
		document.body.style.cursor = "default";
	}
}

function addtocookie(str,qty) {
	document.body.style.cursor = "wait";

	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="addtocookie.php";
	url=url+"?q="+str;
	url=url+"&sid="+Math.random();
	url=url+"&qty="+qty;
	xmlhttp.onreadystatechange=cookiestateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}
function cookiestateChanged() {
	if (xmlhttp.readyState==4) {
		document.getElementById("addtocookie").innerHTML=xmlhttp.responseText;
		document.body.style.cursor = "default";
	}
}

function loadshoppingcart() {
	document.body.style.cursor = "wait";
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="displayshoppingcart.php";
	url=url+"?sid="+Math.random();
	xmlhttp.onreadystatechange=shoppingcartinformation;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function shoppingcartinformation() {
	if (xmlhttp.readyState==4) {
		document.getElementById("shoppingcartinformation").innerHTML=xmlhttp.responseText;
		document.body.style.cursor = "default";
	}
}

function loadproductdetail(id) {
	SetValues(0,0);

	document.body.style.cursor = "wait";
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="loadproductdetails.php";
	url=url+"?q="+id;
	url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=moreinformation;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function moreinformation() {
	if (xmlhttp.readyState==4) {
		document.getElementById("detailedinformationforproduct").innerHTML=xmlhttp.responseText;
		document.body.style.cursor = "default";
	}
}

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
	
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
   document.getElementById("MouseX").value = tempX
   document.getElementById("MouseY").value = tempY
  return true
}
function SetValues(x,y) {
	document.getElementById("detailedinformationforproduct").style.position = 'absolute';
	document.getElementById("detailedinformationforproduct").style.left=(document.getElementById("MouseX").value-x) + "px";
	document.getElementById("detailedinformationforproduct").style.top=(document.getElementById("MouseY").value-y) + "px";
}
function closeproductwindow() {
	document.getElementById("detailedinformationforproduct").innerHTML='';
}

function removecartitem(cartitem) {
	if (confirm("Do you want to delete the selected item?")==true) {
		document.body.style.cursor = "wait";
		xmlhttp=GetXmlHttpObject();
		if (xmlhttp==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}
		var url="removeitemfromshoppingcart.php";
		url=url+"?q="+cartitem;
		url=url+"&sid="+Math.random();
		xmlhttp.onreadystatechange=shoppingcartinformation;
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);
	}
}

var xmlhttp_newsletter;
function updatenumbernewslettersubscribers() {
	if (xmlhttp_newsletter.readyState==4) {
		document.getElementById("numbernewslettersubscribers").innerHTML=xmlhttp_newsletter.responseText;
		document.body.style.cursor = "default";
	}
}
function loadnumbernewslettersubscribers() {
	document.body.style.cursor = "wait";
	xmlhttp_newsletter=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="loadnumbernewslettersubscribers.php";
	url=url+"?sid="+Math.random();
	xmlhttp_newsletter.onreadystatechange=updatenumbernewslettersubscribers;
	xmlhttp_newsletter.open("GET",url,true);
	xmlhttp_newsletter.send(null);
}

// ************************************** ARTICLES ***************************************************************
var xmlhttp_articles;

function GetXmlHttpObjectarticles() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function updatearticles() {
	if (xmlhttp_articles.readyState==4) {
		document.getElementById("content").innerHTML=xmlhttp_articles.responseText;
		document.body.style.cursor = "default";
	}
}
function update_articles() {
	if (xmlhttp_articles.readyState==4) {
		document.getElementById("content").innerHTML=xmlhttp_articles.responseText;
		document.body.style.cursor = "default";
	}
}

function loadarticles() {
	document.body.style.cursor = "wait";
	xmlhttp_articles=GetXmlHttpObjectarticles();
	if (xmlhttp_articles==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="loadarticletitles.php";
	url=url+"?sid="+Math.random();
	xmlhttp_articles.onreadystatechange=updatearticles;
	xmlhttp_articles.open("GET",url,true);
	xmlhttp_articles.send(null);
}

function load_articles(id) {
	document.body.style.cursor = "wait";
	xmlhttp_articles=GetXmlHttpObjectarticles();
	if (xmlhttp_articles==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="load_articles.php";
	url=url+"?q="+id;
	url=url+"&sid="+Math.random();
	xmlhttp_articles.onreadystatechange=update_articles;
	xmlhttp_articles.open("GET",url,true);
	xmlhttp_articles.send(null);
}

//*****************************************************************************************************************
var xmlhttp_testimonials;
function GetXmlHttpObjecttestimonials() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function updatetestimonials() {
	if (xmlhttp_testimonials.readyState==4) {
		document.getElementById("div_testimonials").innerHTML=xmlhttp_testimonials.responseText;
		document.body.style.cursor = "default";
	}
}
function loadtestimonials() {
	document.body.style.cursor = "wait";
	xmlhttp_testimonials=GetXmlHttpObjecttestimonials();
	if (xmlhttp_testimonials==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="load_testimonials.php";
	url=url+"?limit=1";
	xmlhttp_testimonials.onreadystatechange=updatetestimonials;
	xmlhttp_testimonials.open("GET",url,true);
	xmlhttp_testimonials.send(null);
}
//*****************************************************************************************************************
var xmlhttp_twitter;

function GetXmlHttpObjecttwitter() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function updatetwitterfollowers() {
	if (xmlhttp_twitter.readyState==4) {
		document.getElementById("numberoftwitterfollowers").innerHTML=xmlhttp_twitter.responseText;
		document.body.style.cursor = "default";
	}
}
function loadtwitterfollowers() {
	document.body.style.cursor = "wait";
	xmlhttp_twitter=GetXmlHttpObjecttwitter();
	if (xmlhttp_twitter==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="loadnumberoftwitterfollowers.php";
	url=url+"?sid="+Math.random();
	xmlhttp_twitter.onreadystatechange=updatetwitterfollowers;
	xmlhttp_twitter.open("GET",url,true);
	xmlhttp_twitter.send(null);
}
function go_to_previous_podcast(){
	location=document.frmpreviouspodcasts.previous_podcasts.options[document.frmpreviouspodcasts.previous_podcasts.selectedIndex].value;
}
function go_to_how_to_articles(){
	location=document.frmhow_to_articles.how_to_articles.options[document.frmhow_to_articles.how_to_articles.selectedIndex].value;
}

var xmlhttp_coupon_code;
function GetXmlHttpObjectcoupon_code() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}
function checkcouponcode() {

	if (document.getElementById("coupon_name").value.length > 0) {
		document.body.style.cursor = "wait";
		xmlhttp_coupon_code=GetXmlHttpObjectcoupon_code();
		if (xmlhttp_coupon_code==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}
		var url="checkcouponcode.php";
		url=url+"?coupon_name="+document.getElementById("coupon_name").value;
		xmlhttp_coupon_code.onreadystatechange=updatecoupon_code;
		xmlhttp_coupon_code.open("GET",url,true);
		xmlhttp_coupon_code.send(null);
	}
	else {
		alert("Please enter a coupon code to check");
	}
}
function updatecoupon_code() {
	if (xmlhttp_coupon_code.readyState==4) {
		document.getElementById("coupon_code_result").innerHTML=xmlhttp_coupon_code.responseText;
		document.body.style.cursor = "default";
		window_change(4);
	}
}

function numbersonly(myfield, e, dec)
{
	var key;
	var keychar;

	if (window.event)
		key = window.event.keyCode;
	else if (e)
		key = e.which;
	else
   		return true;
	keychar = String.fromCharCode(key);

	// control keys
	if ((key==null) || (key==0) || (key==8) || 
	    (key==9) || (key==13) || (key==27) )
	   return true;

	// numbers
	else if ((("0123456789").indexOf(keychar) > -1))
	   return true;

	// decimal point jump
	else if (dec && (keychar == "."))
	   {
	   myfield.form.elements[dec].focus();
	   return false;
	   }
	else
	   return false;
}

// ************************************ COMMENTS ***********************************************
var xmlhttp_comments;
function GetXmlHttpObject_comments() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function update_comments() {
	if (xmlhttp_comments.readyState==4) {
		document.getElementById("divcomment").innerHTML=xmlhttp_comments.responseText;
		document.body.style.cursor = "default";
	}
}
function updateCOMMENTS() {

	if (document.getElementById("comments").value.length>0) {

		document.body.style.cursor = "wait";
		xmlhttp_comments=GetXmlHttpObject_comments();
		if (xmlhttp_comments==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}

		var url="save_comments.php";
		url=url+"?q="+document.getElementById("comments").value;
		url=url+"&r="+document.getElementById("article_index").value;
		url=url+"&s="+document.getElementById("first_name").value;
		url=url+"&sid="+Math.random();
		xmlhttp_comments.onreadystatechange=update_comments;
		xmlhttp_comments.open("GET",url,true);
		xmlhttp_comments.send(null);
	}
	else {
		alert('Please enter a valid comment!');
	}
}
// *********************************************************************************************

var xmlhttp_send_me_my_subscription_number;

function GetXmlHttpObject_send_me_my_subscription_number() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function update_send_me_my_subscription_number() {
	if (xmlhttp_send_me_my_subscription_number.readyState==4) {
		document.getElementById("divsendsubscriptionnumber").innerHTML=xmlhttp_send_me_my_subscription_number.responseText;
		document.body.style.cursor = "default";
	}
}
function get_send_me_my_subscription_number() {
	
	if (document.getElementById("txtsendsubscriptionumber").value.length>0) {

		document.body.style.cursor = "wait";
		xmlhttp_send_me_my_subscription_number=GetXmlHttpObject_send_me_my_subscription_number();
		if (xmlhttp_send_me_my_subscription_number==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}

		var url="load_send_me_my_subscription_number.php";
		url=url+"?q="+document.getElementById("txtsendsubscriptionumber").value;
		url=url+"&sid="+Math.random();
		xmlhttp_send_me_my_subscription_number.onreadystatechange=update_send_me_my_subscription_number;
		xmlhttp_send_me_my_subscription_number.open("GET",url,true);
		xmlhttp_send_me_my_subscription_number.send(null);
	}
	else {
		alert('Please enter a valid email address!');
	}
}
// *********************************************************************************************

var xmlhttp_growing_tips;
function GetXmlHttpObject_growing_tips() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function update_growing_tips() {
	if (xmlhttp_growing_tips.readyState==4) {
		document.getElementById("content").innerHTML=xmlhttp_growing_tips.responseText;
		document.body.style.cursor = "default";
	}
}
function getGROWINGTIPS() {
	
	if (document.getElementById("search_product_index").value.length>0) {

		document.body.style.cursor = "wait";
		xmlhttp_growing_tips=GetXmlHttpObject_growing_tips();
		if (xmlhttp_growing_tips==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}

		var url="load_growing_tips.php";
		url=url+"?q="+document.getElementById("search_product_index").value;
		url=url+"&sid="+Math.random();
		xmlhttp_growing_tips.onreadystatechange=update_growing_tips;
		xmlhttp_growing_tips.open("GET",url,true);
		xmlhttp_growing_tips.send(null);
	}
	else {
		alert('Please enter a valid product index!');
	}
}
// *********************************************************************************************

function backtooriginalcontent() {
	loadarticles();	
}	

// *********************************************************************************************
// ******************  ARTICLE SEARCH **********************************************************
// *********************************************************************************************
var xmlhttp_article_search;
function GetXmlHttpObject_article_search() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function update_article_search() {
	if (xmlhttp_article_search.readyState==4) {
		document.getElementById("content").innerHTML=xmlhttp_article_search.responseText;
		document.body.style.cursor = "default";
	}
}
function article_search_button_click() {
	if (document.getElementById("article_search_box").value.length>0) {
		document.body.style.cursor = "wait";
		xmlhttp_article_search=GetXmlHttpObject_article_search();
		if (xmlhttp_article_search==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}

		var url="load_article_search.php";
		url=url+"?q="+document.getElementById("article_search_box").value;
		url=url+"&sid="+Math.random();
		xmlhttp_article_search.onreadystatechange=update_article_search;
		xmlhttp_article_search.open("GET",url,true);
		xmlhttp_article_search.send(null);
	}
	else {
		alert('Please enter something into the search box!');
	}
}
// *********************************************************************************************
// ******************  END ARTICLE SEARCH ******************************************************
// *********************************************************************************************

// *********************************************************************************************
// ******************  START GET SPECIAL OF THE DAY ********************************************
// *********************************************************************************************
var xmlhttp_get_special_of_the_day;
function GetXmlHttpObject_get_special_of_the_day() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function update_get_special_of_the_day() {
	if (xmlhttp_get_special_of_the_day.readyState==4) {
		document.getElementById("get_special_of_the_day").innerHTML=xmlhttp_get_special_of_the_day.responseText;
		document.body.style.cursor = "default";
	}
}
function execute_special_of_the_day() {

		document.body.style.cursor = "wait";
		xmlhttp_get_special_of_the_day=GetXmlHttpObject_get_special_of_the_day();
		if (xmlhttp_get_special_of_the_day==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}

		var url="get_special_of_the_day.php";
		url=url+"?q="+Math.random();
		xmlhttp_get_special_of_the_day.onreadystatechange=update_get_special_of_the_day;
		xmlhttp_get_special_of_the_day.open("GET",url,true);
		xmlhttp_get_special_of_the_day.send(null);
}
// *********************************************************************************************
// ******************  END GET SPECIAL OF THE DAY  *********************************************
// *********************************************************************************************

// *********************************************************************************************
// ******************  START THUMBS UP *********************************************************
// *********************************************************************************************
var xmlhttp_get_thumbs_up_count;
function GetXmlHttpObject_get_thumbs_up_count() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function update_get_thumbs_up_count() {
	if (xmlhttp_get_thumbs_up_count.readyState==4) {
		document.getElementById("get_thumbs_up_count").innerHTML=xmlhttp_get_thumbs_up_count.responseText;
		document.body.style.cursor = "default";
	}
}
function execute_thumbs_up(id) {

		document.body.style.cursor = "wait";
		xmlhttp_get_thumbs_up_count=GetXmlHttpObject_get_thumbs_up_count();
		if (xmlhttp_get_thumbs_up_count==null)
		{
			alert ("Browser does not support HTTP Request");
			return;
		}

		var url="get_thumbs_up_count.php";
		url=url+"?q="+id;
		url=url+"&sid="+Math.random();
		xmlhttp_get_thumbs_up_count.onreadystatechange=update_get_thumbs_up_count;
		xmlhttp_get_thumbs_up_count.open("GET",url,true);
		xmlhttp_get_thumbs_up_count.send(null);
}
// *********************************************************************************************
// ******************  END ATHUMBS UP **********************************************************
// *********************************************************************************************

function closing_window() {
	var txt='';

	txt="<head><title>Leaving Mike the Gardener Enterprises, LLC so soon?</title></head><body bgcolor='white' text=black>";
	txt+="<img src='veggies2.jpg' border='0' alt='Mike the Gardener Enterprises, LLC'>";
	txt+="<table cellpadding=3 cellspacing=3 border=0>";
	txt+='<tr><td valign=top align=left colspan=2><font face="arial" color="#003399" size="4">Don`t forget to visit our website, follow us on Twitter and join our Vegetable Gardening Facebook Fan Page.</font></td></tr>';
	txt+="</table>";
	txt+="<table cellpadding=3 cellspacing=3 border=0>";
	txt+='<tr><td valign=top align=left></td><td valign=top align=left><font face="arial" size="2"><a href="http://www.averagepersongardening.com" target=new>Mike the Gardener Enterprises, LLC</a></font></td></tr>';
	txt+='<tr><td valign=top align=left><img src="article_twitter_icon.png" border="0" align="left"></td><td valign=top align=left><font face="arial" size="2"><a href="http://www.twitter.com/mikethegardener" target=new>Twitter</a></font></td></tr>';
	txt+='<tr><td valign=top align=left><img src="article_facebook_icon.png" border="0" align="left"></td><td valign=top align=left><font face="arial" size="2"><a href="http://www.facebook.com/pages/Vegetable-Gardening/88717240962" target=new>Facebook</a></font></td></tr>';
	txt+='</table>';

	windowLeaving=window.open("",'Leaving','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=1,width=700,height=420');
	windowLeaving.document.writeln(txt); 
}